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

boards/common/nrf52xxxdk: move LED mask to board.h

This commit is contained in:
Hauke Petersen 2018-01-12 23:27:19 +01:00
parent 1d38c7d939
commit 761258cf3a
3 changed files with 4 additions and 2 deletions

View File

@ -24,8 +24,8 @@
void board_init(void)
{
/* initialize the boards LEDs */
LED_PORT->DIRSET = (LED0_MASK | LED1_MASK | LED2_MASK | LED3_MASK);
LED_PORT->OUTSET = (LED0_MASK | LED1_MASK | LED2_MASK | LED3_MASK);
LED_PORT->DIRSET = (LED_MASK);
LED_PORT->OUTSET = (LED_MASK);
/* initialize the CPU */
cpu_init();

View File

@ -42,6 +42,7 @@ extern "C" {
#define LED1_MASK (1 << 14)
#define LED2_MASK (1 << 15)
#define LED3_MASK (1 << 16)
#define LED_MASK (LED0_MASK | LED1_MASK | LED2_MASK | LED3_MASK)
#define LED0_ON (LED_PORT->OUTCLR = LED0_MASK)
#define LED0_OFF (LED_PORT->OUTSET = LED0_MASK)

View File

@ -42,6 +42,7 @@ extern "C" {
#define LED1_MASK (1 << 18)
#define LED2_MASK (1 << 19)
#define LED3_MASK (1 << 20)
#define LED_MASK (LED0_MASK | LED1_MASK | LED2_MASK | LED3_MASK)
#define LED0_ON (LED_PORT->OUTCLR = LED0_MASK)
#define LED0_OFF (LED_PORT->OUTSET = LED0_MASK)