mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-23 00:42:28 +02:00
atusb/fw/board_app.c (INT0_vect): limit interrupt serials to 0x00-0x7f
This leaves the range 0x80-0xff for other uses.
This commit is contained in:
parent
97604d70f2
commit
c47f52d6ca
@ -157,7 +157,7 @@ ISR(INT0_vect)
|
|||||||
{
|
{
|
||||||
if (eps[1].state == EP_IDLE) {
|
if (eps[1].state == EP_IDLE) {
|
||||||
led(1);
|
led(1);
|
||||||
irq_serial++;
|
irq_serial = (irq_serial+1) & 0x7f;
|
||||||
usb_send(&eps[1], &irq_serial, 1, done, NULL);
|
usb_send(&eps[1], &irq_serial, 1, done, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user