summaryrefslogtreecommitdiff
path: root/src/portable/st
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-03-29 16:23:00 +0700
committerhathach <[email protected]>2019-03-29 16:23:00 +0700
commit1c2beba85c223bcf401f877b0c29025490fcdaa4 (patch)
treeb79e6cb6cfab2139a3894d46e4731ec81ce78318 /src/portable/st
parent0bdd4bd55002c4563154214a4d57581433cae668 (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.c4
-rw-r--r--src/portable/st/stm32f4/dcd_stm32f4.c4
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)