add debug info

This commit is contained in:
yelvlab 2024-09-24 23:26:13 +08:00
parent e3b6112411
commit f953864d11

View File

@ -154,11 +154,15 @@ void recevice_exti_config(void) {
rcu_periph_clock_enable(RCU_GPIOA);
rcu_periph_clock_enable(RCU_CFGCMP);
/*
* GPIO Init will be delete when the project is ready
*/
gpio_mode_set(GPIOA, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, GPIO_PIN_5);
gpio_output_options_set(GPIOA, GPIO_OTYPE_PP, GPIO_OSPEED_50MHZ, GPIO_PIN_5);
gpio_bit_write(GPIOA, GPIO_PIN_5, SET);
/******************************************/
exti_deinit();
// exti_deinit();
gpio_mode_set(GPIOA, GPIO_MODE_INPUT, GPIO_PUPD_NONE, GPIO_PIN_0);
nvic_irq_enable(EXTI0_1_IRQn, 1U);