Modify include of HAL, and remove CMSIS clock configuration code, and implement UART for STM32F407Disco

This commit is contained in:
Nathan Conrad
2020-03-25 23:52:40 -04:00
parent 435485b524
commit 705d43cda7
16 changed files with 90 additions and 88 deletions

View File

@@ -100,6 +100,9 @@ static void SystemClock_Config(void)
void board_init(void)
{
SystemClock_Config();
all_rcc_clk_enable();
#if CFG_TUSB_OS == OPT_OS_NONE
// 1ms tick timer
SysTick_Config(SystemCoreClock / 1000);
@@ -107,11 +110,7 @@ void board_init(void)
// If freeRTOS is used, IRQ priority is limit by max syscall ( smaller is higher )
//NVIC_SetPriority(USB0_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );
#endif
SystemClock_Config();
SystemCoreClockUpdate();
all_rcc_clk_enable();
GPIO_InitTypeDef GPIO_InitStruct;
// LED