mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
boards: add LED_PANIC to atmega based boards
This adds a LED_PANIC macro which defines which LED, or combination of LEDs should notify a panic error. This is currently used to signal BADISR_vect errors.
This commit is contained in:
parent
b2fc9b197e
commit
5823f69123
@ -59,6 +59,13 @@ extern "C" {
|
||||
#define LED0_TOGGLE (PORTB ^= LED0_MASK)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name Usage of LED to turn on when a kernel panic occurs.
|
||||
* @{
|
||||
*/
|
||||
#define LED_PANIC LED0_ON
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name xtimer configuration values
|
||||
* @{
|
||||
|
||||
@ -73,6 +73,13 @@ extern "C" {
|
||||
#define LED2_TOGGLE (LED_PORT ^= LED2_MASK)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name White LED light is used to signal ERROR.
|
||||
* @{
|
||||
*/
|
||||
#define LED_PANIC (LED_PORT |= LED2_MASK | LED1_MASK | LED0_MASK)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name xtimer configuration values
|
||||
* @{
|
||||
|
||||
@ -90,6 +90,13 @@ extern "C" {
|
||||
#define LED3_TOGGLE PORTB ^= LED3_PIN
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name Usage of LED to turn on when a kernel panic occurs.
|
||||
* @{
|
||||
*/
|
||||
#define LED_PANIC LED1_ON
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name Button pin configuration
|
||||
* @{
|
||||
|
||||
@ -78,6 +78,13 @@ extern "C" {
|
||||
#define LED_RED_TOGGLE LED0_TOGGLE
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name Usage of LED to turn on when a kernel panic occurs.
|
||||
* @{
|
||||
*/
|
||||
#define LED_PANIC LED_RED_ON
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name Macros for controlling the on-board MUXes.
|
||||
* @{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user