diff options
author | Niibe Yutaka <gniibe@fsij.org> | 2016-06-14 15:10:07 +0900 |
---|---|---|
committer | Niibe Yutaka <gniibe@fsij.org> | 2016-06-14 15:10:07 +0900 |
commit | 440188c3738562391ad77fcb4c93d941e0d39456 (patch) | |
tree | ecae119d33cd9731430d7107ff348bf510f658e7 /mcu | |
parent | a6541cbcc650e86c893e5de2a8ca8c5607939c55 (diff) |
Fix USB for STM32
Diffstat (limited to 'mcu')
-rw-r--r-- | mcu/usb-stm32f103.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mcu/usb-stm32f103.c b/mcu/usb-stm32f103.c index 347539f..a6e6850 100644 --- a/mcu/usb-stm32f103.c +++ b/mcu/usb-stm32f103.c @@ -1016,6 +1016,8 @@ int usb_lld_ctrl_recv (struct usb_dev *dev, void *p, size_t len) struct ctrl_data *data_p = &dev->ctrl_data; data_p->addr = p; data_p->len = len; + dev->state = OUT_DATA; + st103_ep_set_rx_status (ENDP0, EP_RX_VALID); return USB_EVENT_OK; } |