Go to the source code of this file.
Defines | |
#define | LED_OFF 0 |
#define | LED_ON 1 |
#define | LED_FLIP 2 |
#define | LED_ONESHOT 3 |
#define | LED_BLINK 4 |
Functions | |
void | NutSetLed (HANDLE ledh, uint8_t tim, uint8_t state) |
sets state of a LED | |
int | NutRegisterLed (HANDLE *ledh, int port, int pin) |
register an LED for handling. | |
void | SetLedEvent (uint8_t led, uint32_t interval, uint32_t duration) |
#define LED_FLIP 2 |
#define LED_ONESHOT 3 |
#define LED_BLINK 4 |
sets state of a LED
ledh | the handle to the LED that should be controlled. | |||||||||||
tim,: | interval for blinking or time for oneshot. | |||||||||||
fxin,: | effect to set
|
Definition at line 153 of file led.c.
References GpioPinSet(), IOExpSetBit(), IOXP_PORT0, LED_BLINK, led_evt, LED_FLIP, LED_OFF, LED_ON, LED_ONESHOT, led_tmr, NutThreadCreate(), NutTimerStart(), sys_led(), and TimerCallback().
Referenced by sys_led().
int NutRegisterLed | ( | HANDLE * | ledh, | |
int | bank, | |||
int | pin | |||
) |
register an LED for handling.
ledh | the led-handle for accessing the LED through NutSetLed(). | |
bank,: | Port of CPU or IO-Expander the LED is connected to. | |
pin,: | Pin at the given port. |