diff --git a/Base_core/user_driver/HW_MCUIO.c b/Base_core/user_driver/HW_MCUIO.c index 35d6c54..37d7701 100644 --- a/Base_core/user_driver/HW_MCUIO.c +++ b/Base_core/user_driver/HW_MCUIO.c @@ -86,7 +86,7 @@ void HW_GD_SPI0_Init(void) spi_enable(SPI0); - nvic_irq_enable(EXTI5_9_IRQn, 1U, 1U);//(EXTI5_9_IRQn, 3U, 0U); + nvic_irq_enable(EXTI5_9_IRQn, 3U, 0U);//(EXTI5_9_IRQn, 3U, 0U); gpio_exti_source_select(GPIO_PORT_SOURCE_GPIOC, GPIO_PIN_SOURCE_7); exti_init(EXTI_7, EXTI_INTERRUPT, EXTI_TRIG_FALLING); exti_interrupt_flag_clear(EXTI_7); diff --git a/Inc/base_config.h b/Inc/base_config.h index 75c4d76..26a9cab 100644 --- a/Inc/base_config.h +++ b/Inc/base_config.h @@ -1152,7 +1152,7 @@ void operation_debug_io(unsigned char nbr);//debug only // SW2 #define SW2 0 // SW3 - #define SW3 23 + #define SW3 24 // #define DEBUG_IO 1//逻辑分析仪IO启用 #endif // @@ -1166,7 +1166,7 @@ void operation_debug_io(unsigned char nbr);//debug only // SW2 #define SW2 1 // SW3 - #define SW3 1 + #define SW3 2 #endif // #endif diff --git a/Src/gd32f30x_hw.c b/Src/gd32f30x_hw.c index 1fe021b..e435cf3 100644 --- a/Src/gd32f30x_hw.c +++ b/Src/gd32f30x_hw.c @@ -126,7 +126,7 @@ void rcu_config(void) void usb_intr_config(void) { nvic_priority_group_set(NVIC_PRIGROUP_PRE3_SUB1);//(NVIC_PRIGROUP_PRE2_SUB2);//(NVIC_PRIGROUP_PRE3_SUB1);// - nvic_irq_enable((uint8_t)USBFS_IRQn, 2U, 1U);//nvic_irq_enable((uint8_t)USBFS_IRQn, 1U, 1U); + nvic_irq_enable((uint8_t)USBFS_IRQn, 1U, 0U); //#ifdef USB_LOW_POWER // /* enable the power module clock */ diff --git a/Src/main.c b/Src/main.c index 90fa8bb..07f7724 100644 --- a/Src/main.c +++ b/Src/main.c @@ -138,7 +138,7 @@ void TIMER1_Init(void) initpara.repetitioncounter = 0; timer_init(TIMER1, &initpara); - nvic_irq_enable(TIMER1_IRQn, 1U, 0U);//(TIMER1_IRQn, 3U, 0U); + nvic_irq_enable(TIMER1_IRQn, 3U, 0U);//(TIMER1_IRQn, 3U, 0U); timer_counter_value_config(TIMER1, 0); timer_prescaler_config(TIMER1, 1200 - 1, TIMER_PSC_RELOAD_NOW);