7#include "leds_driver.h"
39 GPIO_InitTypeDef led_init = {0};
43 led_init.Mode = GPIO_MODE_OUTPUT_PP;
44 led_init.Pull = GPIO_NOPULL;
45 led_init.Speed = GPIO_SPEED_FREQ_LOW;
58static void _leds_driver_manage(
void *arg){
61 switch(this.leds[i].state){
92 this.leds[i] = _leds_driver_init_led(LED_PINS[i]);
95 osThreadNew(_leds_driver_manage, NULL, NULL);
111 this.leds[led].state = state;
void leds_driver_init(void)
LED Driver initialisation.
led_driver_pin_e
defines the driver's LED pin numbers
void leds_driver_set(led_driver_led_e led, led_driver_led_state_e state)
Assigns a state to a driver's led.
led_driver_led_e
defines index of the driver's LED to be used to select a specific led from the driver's led pool
#define LED_DRIVER_DEFAULT
leds driver instance default values
#define LED_DRIVER_BLINK_RATE
led_driver_led_state_e
defines the running mode of one of the driver's LED instance
@ LED_DRIVER_UNINITIALISED
Defines a driver's LED instance.
Defines the leds driver instance.