diff options
| author | hathach <[email protected]> | 2019-03-29 16:23:00 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-03-29 16:23:00 +0700 |
| commit | 1c2beba85c223bcf401f877b0c29025490fcdaa4 (patch) | |
| tree | b79e6cb6cfab2139a3894d46e4731ec81ce78318 /src/portable/st | |
| parent | 0bdd4bd55002c4563154214a4d57581433cae668 (diff) | |
working on suspend and resume
change dcd_init signature
Diffstat (limited to 'src/portable/st')
| -rw-r--r-- | src/portable/st/stm32f3/dcd_stm32f3.c | 4 | ||||
| -rw-r--r-- | src/portable/st/stm32f4/dcd_stm32f4.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/portable/st/stm32f3/dcd_stm32f3.c b/src/portable/st/stm32f3/dcd_stm32f3.c index 138c454a7..41f82891b 100644 --- a/src/portable/st/stm32f3/dcd_stm32f3.c +++ b/src/portable/st/stm32f3/dcd_stm32f3.c @@ -35,10 +35,8 @@ // MACRO TYPEDEF CONSTANT ENUM DECLARATION //--------------------------------------------------------------------+ - -bool dcd_init (uint8_t rhport) +void dcd_init (uint8_t rhport) { - return true; } // Enable device interrupt diff --git a/src/portable/st/stm32f4/dcd_stm32f4.c b/src/portable/st/stm32f4/dcd_stm32f4.c index db72f92d3..f0d6e7d58 100644 --- a/src/portable/st/stm32f4/dcd_stm32f4.c +++ b/src/portable/st/stm32f4/dcd_stm32f4.c @@ -128,7 +128,7 @@ static void end_of_reset(void) { /*------------------------------------------------------------------*/ /* Controller API *------------------------------------------------------------------*/ -bool dcd_init (uint8_t rhport) +void dcd_init (uint8_t rhport) { (void) rhport; @@ -161,8 +161,6 @@ bool dcd_init (uint8_t rhport) // Enable pullup, enable peripheral. USB_OTG_FS->GCCFG |= USB_OTG_GCCFG_VBUSBSEN | USB_OTG_GCCFG_PWRDWN; - - return true; } void dcd_int_enable (uint8_t rhport) |
