mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
stm32/powerctrlboot: Fix config of systick IRQ priority on F0/L0/WB MCU.
Prior to this commit the systick IRQ priority was set at lowest priority on F0/L0/WB MCUs, because it was left at the default and never configured. This commit ensures the priority is configured and sets it to the highest priority.
This commit is contained in:
@@ -120,7 +120,7 @@ MP_DECLARE_CONST_FUN_OBJ_0(pyb_irq_stats_obj);
|
||||
|
||||
#if __CORTEX_M == 0
|
||||
|
||||
//#def IRQ_PRI_SYSTICK 0
|
||||
#define IRQ_PRI_SYSTICK 0
|
||||
#define IRQ_PRI_UART 1
|
||||
#define IRQ_PRI_SDIO 1
|
||||
#define IRQ_PRI_DMA 1
|
||||
@@ -136,7 +136,7 @@ MP_DECLARE_CONST_FUN_OBJ_0(pyb_irq_stats_obj);
|
||||
|
||||
#else
|
||||
|
||||
//#def IRQ_PRI_SYSTICK NVIC_EncodePriority(NVIC_PRIORITYGROUP_4, 0, 0)
|
||||
#define IRQ_PRI_SYSTICK NVIC_EncodePriority(NVIC_PRIORITYGROUP_4, 0, 0)
|
||||
|
||||
// The UARTs have no FIFOs, so if they don't get serviced quickly then characters
|
||||
// get dropped. The handling for each character only consumes about 0.5 usec
|
||||
|
||||
Reference in New Issue
Block a user