LED driver and event handler. More...
#include <cfg/os.h>#include <compiler.h>#include <dev/board.h>#include <dev/gpio.h>#include <stdlib.h>#include <string.h>#include <sys/heap.h>#include <sys/event.h>#include <sys/timer.h>#include <sys/atom.h>#include <sys/nutdebug.h>#include <cfg/pca9555.h>#include "cfg/led.h"#include "dev/led.h"
Go to the source code of this file.
Data Structures | |
| struct | LEDEventT |
Defines | |
| #define | LED_IS_ON 0 |
| #define | LED_IS_OFF 1 |
Functions | |
| int | InitLED (LEDEventT *led) |
| Configures LED connection port. | |
| void | sys_led (void *arg) |
| Thread to control blinking and flashing of all registered LEDs. | |
| void | NutSetLed (HANDLE ledh, uint_fast8_t fxin, uint32_t timOn, uint32_t timOff) |
| sets state of a LED | |
| int | NutRegisterLed (HANDLE *ledh, int bank, int pin) |
| Register an LED for handling. | |
Variables | |
| LEDEventT * | first_led = NULL |
| HANDLE | led_tmr = NULL |
| HANDLE | led_evt = NULL |
LED driver and event handler.
This device driver provieds flexible handling of multiple LEDs
* $Log$ * * Revision 0.3 2009/09/17 ulrichprinz * Changed parameters and added more flexible functionalities by reducing * command tokens. * (currently SAM7X256 is tested only) * * Revision 0.2 2009/04/13 ulrichprinz * First checkin, led driver with extra functionality and variable io-access * (currently SAM7X256 is tested only) * *
Definition in file led.c.