Start clock on F0 and F0, and handle USB interrupts.

This commit is contained in:
Nathan Conrad
2019-09-09 19:20:26 -04:00
parent d1976a30b3
commit f7b0aeec52
4 changed files with 44 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ CFLAGS += \
-DSTM32F070xB \
-mthumb \
-mabi=aapcs-linux \
-mcpu=cortex-m4 \
-mcpu=cortex-m0 \
-mfloat-abi=soft \
-nostdlib -nostartfiles \
-DCFG_TUSB_MCU=OPT_MCU_STM32_FSDEV
@@ -91,6 +91,14 @@ void board_init(void)
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init(BUTTON_PORT, &GPIO_InitStruct);
// Start USB clock
__HAL_RCC_USB_CLK_ENABLE();
}
void dcd_fs_irqHandler(void);
void USB_IRQHandler(void)
{
dcd_fs_irqHandler();
}
//--------------------------------------------------------------------+