RTEMS
5.0.0
|
#include <stdint.h>
Go to the source code of this file.
Functions | |
uint32_t | LED_Configure (uint32_t dwLed) |
uint32_t | LED_Set (uint32_t dwLed) |
uint32_t | LED_Clear (uint32_t dwLed) |
uint32_t | LED_Toggle (uint32_t dwLed) |
Small set of functions for simple and portable LED usage.
LEDs are numbered starting from 0; the number of LEDs depend on the board being used. All the functions defined here will compile properly regardless of whether the LED is defined or not; they will simply return 0 when a LED which does not exist is given as an argument. Also, these functions take into account how each LED is connected on to board; thus, LED_Set might change the level on the corresponding pin to 0 or 1, but it will always light the LED on; same thing for the other methods.