1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-25 18:57:11 +02:00

atusb/fw/board_app.c (INT0_vect): limit interrupt serials to 0x80-0xff

This leaves the range 0x00-0x7f for other uses.
This commit is contained in:
Werner Almesberger 2011-07-12 04:40:03 -03:00
parent 97604d70f2
commit 7cae01bc0e

View File

@ -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) | 0x80;
usb_send(&eps[1], &irq_serial, 1, done, NULL); usb_send(&eps[1], &irq_serial, 1, done, NULL);
} }
} }