Commit d791c6679f1f1dc6396ef9ba2e63a16d3e443689
1 parent
e293e963
V0.1.2
FLASH校验和:0x00B30632 1、调整中断优先级,改回V0.1.0中断优先级数据,解决V0.1.1测验丢题漏题问题;
Showing
4 changed files
with
5 additions
and
5 deletions
Base_core/user_driver/HW_MCUIO.c
... | ... | @@ -86,7 +86,7 @@ void HW_GD_SPI0_Init(void) |
86 | 86 | spi_enable(SPI0); |
87 | 87 | |
88 | 88 | |
89 | - nvic_irq_enable(EXTI5_9_IRQn, 1U, 1U);//(EXTI5_9_IRQn, 3U, 0U); | |
89 | + nvic_irq_enable(EXTI5_9_IRQn, 3U, 0U);//(EXTI5_9_IRQn, 3U, 0U); | |
90 | 90 | gpio_exti_source_select(GPIO_PORT_SOURCE_GPIOC, GPIO_PIN_SOURCE_7); |
91 | 91 | exti_init(EXTI_7, EXTI_INTERRUPT, EXTI_TRIG_FALLING); |
92 | 92 | exti_interrupt_flag_clear(EXTI_7); | ... | ... |
Inc/base_config.h
... | ... | @@ -1152,7 +1152,7 @@ void operation_debug_io(unsigned char nbr);//debug only |
1152 | 1152 | // <o> SW2 |
1153 | 1153 | #define SW2 0 |
1154 | 1154 | // <o> SW3 |
1155 | - #define SW3 23 | |
1155 | + #define SW3 24 | |
1156 | 1156 | // #define DEBUG_IO 1//逻辑分析仪IO启用 |
1157 | 1157 | #endif |
1158 | 1158 | // </e> |
... | ... | @@ -1166,7 +1166,7 @@ void operation_debug_io(unsigned char nbr);//debug only |
1166 | 1166 | // <o> SW2 |
1167 | 1167 | #define SW2 1 |
1168 | 1168 | // <o> SW3 |
1169 | - #define SW3 1 | |
1169 | + #define SW3 2 | |
1170 | 1170 | #endif |
1171 | 1171 | // </e> |
1172 | 1172 | #endif | ... | ... |
Src/gd32f30x_hw.c
... | ... | @@ -126,7 +126,7 @@ void rcu_config(void) |
126 | 126 | void usb_intr_config(void) |
127 | 127 | { |
128 | 128 | nvic_priority_group_set(NVIC_PRIGROUP_PRE3_SUB1);//(NVIC_PRIGROUP_PRE2_SUB2);//(NVIC_PRIGROUP_PRE3_SUB1);// |
129 | - nvic_irq_enable((uint8_t)USBFS_IRQn, 2U, 1U);//nvic_irq_enable((uint8_t)USBFS_IRQn, 1U, 1U); | |
129 | + nvic_irq_enable((uint8_t)USBFS_IRQn, 1U, 0U); | |
130 | 130 | |
131 | 131 | //#ifdef USB_LOW_POWER |
132 | 132 | // /* enable the power module clock */ | ... | ... |
Src/main.c
... | ... | @@ -138,7 +138,7 @@ void TIMER1_Init(void) |
138 | 138 | initpara.repetitioncounter = 0; |
139 | 139 | timer_init(TIMER1, &initpara); |
140 | 140 | |
141 | - nvic_irq_enable(TIMER1_IRQn, 1U, 0U);//(TIMER1_IRQn, 3U, 0U); | |
141 | + nvic_irq_enable(TIMER1_IRQn, 3U, 0U);//(TIMER1_IRQn, 3U, 0U); | |
142 | 142 | |
143 | 143 | timer_counter_value_config(TIMER1, 0); |
144 | 144 | timer_prescaler_config(TIMER1, 1200 - 1, TIMER_PSC_RELOAD_NOW); | ... | ... |