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:
parent
1d38c7d939
commit
761258cf3a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user