diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-02-09 19:56:01 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-02-09 19:56:01 +0000 |
commit | 3c6e54a52eff84bebce23f3d933c1de425a7b428 (patch) | |
tree | fc8cd95b67d57c7816fcf9a8b30b066dff2bc9c7 /os/hal/platforms/STM32 | |
parent | 77934792d53efe99678286bab123c42c546478a7 (diff) | |
download | ChibiOS-3c6e54a52eff84bebce23f3d933c1de425a7b428.tar.gz ChibiOS-3c6e54a52eff84bebce23f3d933c1de425a7b428.tar.bz2 ChibiOS-3c6e54a52eff84bebce23f3d933c1de425a7b428.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2724 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32')
-rw-r--r-- | os/hal/platforms/STM32/usb_lld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/usb_lld.c b/os/hal/platforms/STM32/usb_lld.c index 62e7caa82..fa78879c6 100644 --- a/os/hal/platforms/STM32/usb_lld.c +++ b/os/hal/platforms/STM32/usb_lld.c @@ -208,7 +208,7 @@ CH_IRQ_HANDLER(USB_LP_IRQHandler) { if (epr & EPR_CTR_RX) {
EPR_CLEAR_CTR_RX(ep);
/* OUT endpoint, receive.*/
- if (epcp->flags & USB_EP_FLAGS_IN_PACKET_MODE) {
+ if (epcp->flags & USB_EP_FLAGS_OUT_PACKET_MODE) {
/* Packet mode, just invokes the callback.*/
(usbp)->ep[ep]->receiving = FALSE;
epcp->out_cb(usbp, ep);
@@ -397,7 +397,7 @@ void usb_lld_init_endpoint(USBDriver *usbp, usbep_t ep) { /* OUT endpoint settings. If the endpoint is in packet mode then it must
start ready to accept data else it must start in NAK mode.*/
if (epcp->out_cb) {
- if (epcp->flags & USB_EP_FLAGS_IN_PACKET_MODE) {
+ if (epcp->flags & USB_EP_FLAGS_OUT_PACKET_MODE) {
usbp->ep[ep]->receiving = TRUE;
epr |= EPR_STAT_RX_VALID;
}
|