#ifndef _GPIO_H_ #define _GPIO_H_ #include "stm32f0xx_hal.h" #include #include #include #include #define GPIO_NUM_LEDS 3 typedef struct { uint16_t pin; GPIO_TypeDef* port; TIM_HandleTypeDef* timer; uint16_t channel; } gpio_led_t; void gpio_init(void); bool gpio_set_led(led_name_t led, bool value); bool gpio_toggle_led(led_name_t led); bool gpio_set_led_brightness(uint8_t brightness); #endif /*_GPIO_H_ */