diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-02-09 20:51:32 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-02-09 20:51:32 +0000 |
commit | bbc2b91e9c2b438c97a2412b862f58a914d72394 (patch) | |
tree | ff3fad440a5d75932f21757b95f4d410dd27041c /os/hal/src | |
parent | 400bb2ae040d1b78f53bf7eb08f68c8b9d8c56c2 (diff) | |
download | ChibiOS-bbc2b91e9c2b438c97a2412b862f58a914d72394.tar.gz ChibiOS-bbc2b91e9c2b438c97a2412b862f58a914d72394.tar.bz2 ChibiOS-bbc2b91e9c2b438c97a2412b862f58a914d72394.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2726 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/serial_usb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/os/hal/src/serial_usb.c b/os/hal/src/serial_usb.c index 29aec2650..430218edb 100644 --- a/os/hal/src/serial_usb.c +++ b/os/hal/src/serial_usb.c @@ -124,6 +124,7 @@ static void inotify(GenericQueue *qp) { if (n != USB_ENDPOINT_BUSY) {
sdup->iqueue.q_rdptr = sdup->iqueue.q_buffer;
chSemSetCounterI(&sdup->iqueue.q_sem, n);
+ chIOAddFlagsI(sdup, IO_INPUT_AVAILABLE);
}
}
}
@@ -142,6 +143,7 @@ static void onotify(GenericQueue *qp) { if (n != USB_ENDPOINT_BUSY) {
sdup->oqueue.q_wrptr = sdup->oqueue.q_buffer;
chSemSetCounterI(&sdup->oqueue.q_sem, SERIAL_USB_BUFFERS_SIZE);
+ chIOAddFlagsI(sdup, IO_OUTPUT_EMPTY);
}
}
|