From 0f9fa5956f178fd1762a699409ac7be702fe70ab Mon Sep 17 00:00:00 2001 From: "William D. Jones" Date: Fri, 11 Jan 2019 13:47:44 -0500 Subject: bsp.board_stm32f407g_disc1: Switch to external oscillator (more precise). --- src/portable/stm/stm32f4/dcd_stm32f4.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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) { -- cgit v1.3.1