summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWilliam D. Jones <[email protected]>2019-01-11 13:47:44 -0500
committerWilliam D. Jones <[email protected]>2019-01-11 13:47:44 -0500
commit0f9fa5956f178fd1762a699409ac7be702fe70ab (patch)
treec44adcc77f319ccf0827167e93b75d4a3adbb004 /src
parente73e016a8c4fd58cc0f6ba0dbd4c71472e87d403 (diff)
bsp.board_stm32f407g_disc1: Switch to external oscillator (more precise).
Diffstat (limited to 'src')
-rw-r--r--src/portable/stm/stm32f4/dcd_stm32f4.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/portable/stm/stm32f4/dcd_stm32f4.c b/src/portable/stm/stm32f4/dcd_stm32f4.c
index 3ec3c9e06..8aa95ac1d 100644
--- a/src/portable/stm/stm32f4/dcd_stm32f4.c
+++ b/src/portable/stm/stm32f4/dcd_stm32f4.c
@@ -71,17 +71,21 @@ bool dcd_init (uint8_t rhport)
void dcd_int_enable (uint8_t rhport)
{
-
+ (void) rhport;
+ NVIC_EnableIRQ(OTG_FS_IRQn);
}
+
void dcd_int_disable (uint8_t rhport)
{
-
+ (void) rhport;
+ NVIC_DisableIRQ(OTG_FS_IRQn);
}
void dcd_connect (uint8_t rhport)
{
}
+
void dcd_disconnect (uint8_t rhport)
{