The LED device layer is the proprietary user code used to configure and drive the on-board debugging LED.
More...
|
file | dev_led.c |
| Contains LED initialization and execution functions.
|
|
file | dev_led.h |
| led device driver
|
|
◆ LED_STATE_BLINK
#define LED_STATE_BLINK 2 |
◆ LED_STATE_BLINK_COUNT
#define LED_STATE_BLINK_COUNT 5 |
◆ LED_STATE_BLINK_FAST
#define LED_STATE_BLINK_FAST 4 |
◆ LED_STATE_BLINK_SLOW
#define LED_STATE_BLINK_SLOW 3 |
◆ LED_STATE_OFF
◆ LED_STATE_ON
◆ Dev_LED_Blink()
void Dev_LED_Blink |
( |
uint8_t |
led_id | ) |
|
- Parameters
-
- Returns
- void
This function makes the LED blink.
Definition at line 161 of file dev_led.c.
◆ Dev_LED_Blink_Fast()
void Dev_LED_Blink_Fast |
( |
uint8_t |
led_id | ) |
|
- Parameters
-
- Returns
- void
This function makes the LED blink in fast mode.
Definition at line 207 of file dev_led.c.
◆ Dev_LED_Blink_Iter()
void Dev_LED_Blink_Iter |
( |
uint8_t |
led_id, |
|
|
uint8_t |
count |
|
) |
| |
- Parameters
-
- Returns
- void
This function blinks the LED instance in a particular number of blink counts
Definition at line 176 of file dev_led.c.
◆ Dev_LED_Blink_Slow()
void Dev_LED_Blink_Slow |
( |
uint8_t |
led_id | ) |
|
- Parameters
-
- Returns
- void
This function makes the LED blink in slow mode.
Definition at line 192 of file dev_led.c.
◆ Dev_LED_Initialize()
void Dev_LED_Initialize |
( |
void |
| ) |
|
- Returns
- void
This function initializes the LED to normal blink interval.
- Note
- Not really needed to be called at startup, but its nice be consistent
Definition at line 78 of file dev_led.c.
◆ Dev_LED_Off()
void Dev_LED_Off |
( |
uint8_t |
led_id | ) |
|
- Parameters
-
- Returns
- void
This function turns off the led with the ID defined in the header file
Definition at line 118 of file dev_led.c.
◆ Dev_LED_On()
void Dev_LED_On |
( |
uint8_t |
led_id | ) |
|
- Parameters
-
- Returns
- void
This function turns on the led with the ID defined in the header file
Definition at line 94 of file dev_led.c.
◆ Dev_LED_Task_100ms()
void Dev_LED_Task_100ms |
( |
| ) |
|
- Returns
- void
This function needs to be called every 100ms. This updates the status of the LED. The intervals defined in the header file are used to determine the frequency of blinky LED.
Definition at line 224 of file dev_led.c.
◆ Dev_LED_Toggle()
void Dev_LED_Toggle |
( |
uint8_t |
led_id | ) |
|
- Parameters
-
- Returns
- void
This function toggles the led with the ID defined in the header file
Definition at line 142 of file dev_led.c.