mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-25 20:14:40 +02:00
atusb/fw/mac.c (handle_irq): only handle TRX_END; never fall back to seq ints
This commit is contained in:
parent
3e749c3140
commit
60ee82ba93
@ -70,6 +70,9 @@ static bool handle_irq(void)
|
||||
uint8_t size, i;
|
||||
|
||||
irq = reg_read(REG_IRQ_STATUS);
|
||||
if (!(irq & IRQ_TRX_END))
|
||||
return 1;
|
||||
|
||||
if (txing) {
|
||||
if (eps[1].state == EP_IDLE)
|
||||
usb_send(&eps[1], "", 1, rx_done, NULL);
|
||||
@ -79,11 +82,8 @@ static bool handle_irq(void)
|
||||
queued_tx_ack = 1;
|
||||
}
|
||||
txing = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!(irq & IRQ_TRX_END))
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* unlikely */
|
||||
if (eps[1].state != EP_IDLE)
|
||||
|
Loading…
Reference in New Issue
Block a user