mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
boards/airfy-beacon: cleaned up LED handling
This commit is contained in:
parent
1fe16507b4
commit
5ecb034f66
@ -24,7 +24,7 @@
|
||||
void board_init(void)
|
||||
{
|
||||
/* setup led(s) for debugging */
|
||||
NRF_GPIO->PIN_CNF[LED_RED_PIN] = GPIO_PIN_CNF_DIR_Output;
|
||||
NRF_GPIO->DIRSET = LED_RED_MASK;
|
||||
|
||||
/* initialize the CPU */
|
||||
cpu_init();
|
||||
|
||||
@ -42,12 +42,18 @@
|
||||
* @name Macros for controlling the on-board LEDs.
|
||||
* @{
|
||||
*/
|
||||
#define LED_RED_PIN 16
|
||||
|
||||
#define LED_RED_ON (NRF_GPIO->OUTSET = (1 << LED_RED_PIN))
|
||||
#define LED_RED_OFF (NRF_GPIO->OUTCLR = (1 << LED_RED_PIN))
|
||||
#define LED_RED_TOGGLE (NRF_GPIO->OUT ^= (1 << LED_RED_PIN))
|
||||
#define LED_RED_PIN (GPIO_PIN(0, 16))
|
||||
#define LED_RED_MASK (1 << 16)
|
||||
|
||||
#define LED_RED_ON (NRF_GPIO->OUTSET = LED_RED_MASK)
|
||||
#define LED_RED_OFF (NRF_GPIO->OUTCLR = LED_RED_MASK)
|
||||
#define LED_RED_TOGGLE (NRF_GPIO->OUT ^= LED_RED_MASK)
|
||||
#define LED_GREEN_ON /* not available */
|
||||
#define LED_GREEN_OFF /* not available */
|
||||
#define LED_GREEN_TOGGLE /* not available */
|
||||
#define LED_BLUE_ON /* not available */
|
||||
#define LED_BLUE_OFF /* not available */
|
||||
#define LED_BLUE_TOGGLE /* not available */
|
||||
/* @} */
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user