diff --git a/src/gpio.c b/src/gpio.c --- a/src/gpio.c +++ b/src/gpio.c @@ -1,6 +1,6 @@ #include "gpio.h" -void MX_GPIO_Init(void) +void gpio_init(void) { GPIO_InitTypeDef GPIO_InitStruct; @@ -53,3 +53,13 @@ void MX_GPIO_Init(void) } +void led_blink(uint8_t n) +{ + for(int i = 0; i < n; i++) + { + HAL_GPIO_WritePin(LED_BLUE, 1); + HAL_Delay(100); + HAL_GPIO_WritePin(LED_BLUE, 0); + HAL_Delay(100); + } +}