![]() |
EVE 1.0
|
Driver for Leds. More...
#include <core/mwork.h>
Go to the source code of this file.
Data Structures | |
struct | led_counting_t |
struct | led_flash_t |
Enumerations |
Functions | |
Functions called from application programs | |
void | LedInit (void) |
Initialize LED driver. Must be called before LedSet() or LedCounting() can be called. | |
void | LedSet (uint32_t Leds, uint32_t Function) |
Sets LED(s) function (on/off/flash). More... | |
static void | LedCounting (uint32_t Leds, const struct led_counting_t *Function) |
Sets LED(s) to counting function. More... | |
Application' LED configuration and supplied functions. | |
The following is the LED driver setup for application's board.h and board.c files. | |
#define | LED_FLASHING_ENABLED true/false |
If true, LED driver supports flashing. | |
#define | LED_COUNTING_ENABLED true/false |
If true, LED driver supports sequence flashing. | |
#define | NUMBER_OF_FLASHING_PATTERN Number |
Number == How many flashing patterns defined? | |
const struct led_flash_t | LedFlashing [NUMBER_OF_FLASHING_PATTERN] |
User's array of led_flash_t defines flashing patterns. | |
static void | UpdateLeds (uint32_t BitLedOn) |
User supplied function to update LEDs. More... | |
Driver for Leds.
Definition in file led.h.