Skip to content
Snippets Groups Projects
Commit 761258cf authored by Hauke Petersen's avatar Hauke Petersen
Browse files

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

parent 1d38c7d9
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
......@@ -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)
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment