diff --git a/src/interrupts.c b/src/interrupts.c --- a/src/interrupts.c +++ b/src/interrupts.c @@ -6,8 +6,8 @@ #include "stm32f3xx.h" #include "interrupts.h" +#include "gpio.h" -#include "gpio.h" // Systick interrupt void SysTick_Handler(void) @@ -49,12 +49,17 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPI { case SW_BTN_Pin: { - if(HAL_GetTick() > last_button_press + 100) - { - HAL_GPIO_TogglePin(LED_RED); - HAL_GPIO_TogglePin(GATE_DRIVE); - last_button_press = HAL_GetTick(); - } +// if(HAL_GetTick() > last_button_press + 100) +// { +// HAL_GPIO_TogglePin(LED_RED); +// HAL_GPIO_TogglePin(GATE_DRIVE); +// last_button_press = HAL_GetTick(); +// } } break; } } + + + + +