Ver Fonte

AT32 设置中断可抢占16个优先级

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui há 3 anos atrás
pai
commit
cef0bd05af
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      Applications/bsp/at32/bsp.c

+ 1 - 0
Applications/bsp/at32/bsp.c

@@ -11,6 +11,7 @@ void bsp_init(void){
 	system_clock_config();
 	wdog_enable();
 	debug_periph_mode_set(DEBUG_TMR1_PAUSE, TRUE);
+	nvic_priority_group_config(NVIC_PRIORITY_GROUP_4);
 	systick_open();
 	task_ticks_enable();
 	gpio_pin_init();