diff options
author | Amir Hammad <amir.hammad@hotmail.com> | 2015-04-01 18:23:59 +0200 |
---|---|---|
committer | Amir Hammad <amir.hammad@hotmail.com> | 2015-04-01 18:23:59 +0200 |
commit | e9c2632a199e26e9dac54984bf5e2b25bf13738c (patch) | |
tree | 2d0ebe1c356b9c139f75c7d08de3932ddda4a0ec /src | |
parent | c6aa4d99c23c605b116ffa6492852f953e717705 (diff) | |
download | secure-hid-e9c2632a199e26e9dac54984bf5e2b25bf13738c.tar.gz secure-hid-e9c2632a199e26e9dac54984bf5e2b25bf13738c.tar.bz2 secure-hid-e9c2632a199e26e9dac54984bf5e2b25bf13738c.zip |
lld: stm32f4: poll(): fix return value
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/usbh_lld_stm32f4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usbh_lld_stm32f4.c b/src/usbh_lld_stm32f4.c index 6cf6015..ad14d2e 100644 --- a/src/usbh_lld_stm32f4.c +++ b/src/usbh_lld_stm32f4.c @@ -903,12 +903,11 @@ static void poll_reset(usbh_lld_stm32f4_driver_data_t *dev) static enum USBH_POLL_STATUS stm32f4_usbh_poll(void *drvdata, uint32_t time_curr_us)
{
-
(void)time_curr_us;
+
usbh_lld_stm32f4_driver_data_t *dev = drvdata;
- uint32_t ret = ret = USBH_POLL_STATUS_NONE;
+ enum USBH_POLL_STATUS ret = USBH_POLL_STATUS_NONE;
- // TODO: Check overflow case
dev->time_curr_us = time_curr_us;
switch (dev->state) {
@@ -923,6 +922,7 @@ static enum USBH_POLL_STATUS stm32f4_usbh_poll(void *drvdata, uint32_t time_curr case DEVICE_STATE_RESET:
poll_reset(dev);
break;
+
default:
break;
}
|