1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

baords/avsextrem: unified LED defines

This commit is contained in:
Hauke Petersen 2016-03-11 17:58:14 +01:00
parent 7c744fd4bb
commit ef627958aa

View File

@ -32,19 +32,22 @@ extern "C" {
#endif
/**
* @brief Board LED defines
* @brief LED pin definitions and handlers
* @{
*/
#define LED_RED_PIN (BIT25)
#define LED_GREEN_PIN (BIT26)
#define LED0_PIN GPIO_PIN(2, 25)
#define LED1_PIN GPIO_PIN(2, 26)
#define LED_GREEN_OFF (FIO3SET = LED_GREEN_PIN)
#define LED_GREEN_ON (FIO3CLR = LED_GREEN_PIN)
#define LED_GREEN_TOGGLE (FIO3PIN ^= LED_GREEN_PIN)
#define LED0_MASK (BIT25)
#define LED1_MASK (BIT26)
#define LED_RED_OFF (FIO3SET = LED_RED_PIN)
#define LED_RED_ON (FIO3CLR = LED_RED_PIN)
#define LED_RED_TOGGLE (FIO3PIN ^= LED_RED_PIN)
#define LED0_OFF (FIO3SET = LED0_MASK)
#define LED0_ON (FIO3CLR = LED0_MASK)
#define LED0_TOGGLE (FIO3PIN ^= LED0_MASK)
#define LED1_OFF (FIO3SET = LED1_MASK)
#define LED1_ON (FIO3CLR = LED1_MASK)
#define LED1_TOGGLE (FIO3PIN ^= LED1_MASK)
/** @} */
/**