// // Created by Wind on 2025/11/2. // #ifndef CLION_STM32_LED_H #define CLION_STM32_LED_H #include "main.h" #ifdef __cplusplus extern "C" { #endif typedef struct { GPIO_TypeDef *port; uint16_t pin; } led_t; void led_init(const led_t *led); void led_on(const led_t *led); void led_off(const led_t *led); void led_toggle(const led_t *led); #ifdef __cplusplus } #endif #endif //CLION_STM32_LED_H