remove old openh743i, explicitly disable systick when using freertos for H7

This commit is contained in:
hathach
2021-08-29 21:26:47 +07:00
parent a9279ece33
commit 00e66cf2e0
8 changed files with 3 additions and 1217 deletions
+3
View File
@@ -80,6 +80,9 @@ void board_init(void)
SysTick_Config(SystemCoreClock / 1000);
#elif CFG_TUSB_OS == OPT_OS_FREERTOS
// Explicitly disable systick to prevent it is trigger before scheduler start
SysTick->CTRL &= ~1U;
// If freeRTOS is used, IRQ priority is limit by max syscall ( smaller is higher )
NVIC_SetPriority(OTG_FS_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );
NVIC_SetPriority(OTG_HS_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );