fix: defer ch390 exti until rtos is ready
This commit is contained in:
@@ -188,6 +188,8 @@ void ch390_interrupt_init(void)
|
||||
/* EXTI0 is configured in CubeMX for PB0 */
|
||||
/* NVIC priority should be >= configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY */
|
||||
/* for FreeRTOS compatibility */
|
||||
HAL_NVIC_DisableIRQ(EXTI0_IRQn);
|
||||
__HAL_GPIO_EXTI_CLEAR_IT(CH390_INT_PIN);
|
||||
HAL_NVIC_SetPriority(EXTI0_IRQn, 6, 0);
|
||||
HAL_NVIC_EnableIRQ(EXTI0_IRQn);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user