43#include "system/pins.h"
51#define LED_STATE_OFF 0
53#define LED_STATE_BLINK 2
54#define LED_STATE_BLINK_SLOW 3
55#define LED_STATE_BLINK_FAST 4
56#define LED_STATE_BLINK_COUNT 5
106 default: Nop();
break;
130 default: Nop();
break;
149 default: Nop();
break;
229 for (led_index = 0; led_index <
NUM_OF_LEDS; led_index++)
239 if (++
ledTimer[led_index] >= timermax)
247 default: Nop();
break;
uint8_t ledTimer[NUM_OF_LEDS]
array that stores led blink times
uint8_t ledIterationsCounter[NUM_OF_LEDS]
uint8_t ledStates[NUM_OF_LEDS]
array that stores the led states
#define LED_PIM_RED
enumerating away
#define LED_DP_PIM_Toggle_State
#define LED_Board_Red_On
abstracting away led mcc function calls.
#define BLINK_SLOW_INTERVAL
#define BLINK_FAST_INTERVAL
#define LED_Board_Green_On
#define LED_Board_Green_Off
#define LED_Board_Green_Toggle_State
#define LED_Board_Red_Toggle_State
#define LED_Board_Red_Off
#define LED_STATE_BLINK_FAST
void Dev_LED_Initialize(void)
This function contains the LED initialization.
void Dev_LED_Blink_Slow(uint8_t led_id)
Set the LED in SLOW blinking mode.
void Dev_LED_Off(uint8_t led_id)
Switch off the LED.
void Dev_LED_On(uint8_t led_id)
Switch on the LED.
#define LED_STATE_OFF
These are the macros indicating the status of the LED.
void Dev_LED_Blink_Fast(uint8_t led_id)
Set the LED in FAST blinking mode.
#define LED_STATE_BLINK_COUNT
void Dev_LED_Blink_Iter(uint8_t led_id, uint8_t count)
Set the LED in blinking mode in number of LED iterations.
#define LED_STATE_BLINK_SLOW
void Dev_LED_Toggle(uint8_t led_id)
Toggles the LED state.
void Dev_LED_Task_100ms()
This function needs to be called every 100ms and contains the code to update the status of the LEDs.
void Dev_LED_Blink(uint8_t led_id)
Set the LED in blinking mode.