#ifndef __LEDS_H__ #define __LEDS_H__ #include "lib.h" typedef enum { LEDS_RED, LEDS_GREEN, LEDS_YELLOW, LEDS_ORANGE, LEDS_BLUE, LEDS_MAX, } leds_e; /** * @brief Initializes the LEDs. */ extern void leds_init(void); /** * @brief Deinitializes the LEDs. */ extern void leds_dinit(void); /** * @brief Turns on the specified LED. * * @param led The LED to turn on. */ extern void leds_on(leds_e led); /** * @brief Turns on all LEDs. */ extern void leds_on_all(void); /** * @brief Turns off the specified LED. * * @param led The LED to turn off. */ extern void leds_off(leds_e led); /** * @brief Turns off all LEDs. */ extern void leds_off_all(void); /** * @brief Toggles the state of the specified LED. * * @param led The LED to toggle. */ extern void leds_toggle(leds_e led); #endif ///< !__LEDS_H__