1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

boards/nrf9160dk: fix LED macros

LED macros were inverted, so LEDn_ON would turn the LED off and LEDn_OFF
would turn it on.
This commit is contained in:
Leandro Lanzieri 2021-12-03 08:51:30 +01:00
parent 662aba4680
commit 228c90f6e1
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593

View File

@ -54,20 +54,20 @@ extern "C" {
#define LED_PORT (NRF_P0_S) /**< Default LED PORT */
#define LED0_ON (LED_PORT->OUTCLR = LED0_MASK) /**< LED0 ON macro */
#define LED0_OFF (LED_PORT->OUTSET = LED0_MASK) /**< LED0 OFF macro */
#define LED0_ON (LED_PORT->OUTSET = LED0_MASK) /**< LED0 ON macro */
#define LED0_OFF (LED_PORT->OUTCLR = LED0_MASK) /**< LED0 OFF macro */
#define LED0_TOGGLE (LED_PORT->OUT ^= LED0_MASK) /**< LED0 toggle macro */
#define LED1_ON (LED_PORT->OUTCLR = LED1_MASK) /**< LED1 ON macro */
#define LED1_OFF (LED_PORT->OUTSET = LED1_MASK) /**< LED1 OFF macro */
#define LED1_ON (LED_PORT->OUTSET = LED1_MASK) /**< LED1 ON macro */
#define LED1_OFF (LED_PORT->OUTCLR = LED1_MASK) /**< LED1 OFF macro */
#define LED1_TOGGLE (LED_PORT->OUT ^= LED1_MASK) /**< LED1 toggle macro */
#define LED2_ON (LED_PORT->OUTCLR = LED2_MASK) /**< LED2 ON macro */
#define LED2_OFF (LED_PORT->OUTSET = LED2_MASK) /**< LED2 OFF macro */
#define LED2_ON (LED_PORT->OUTSET = LED2_MASK) /**< LED2 ON macro */
#define LED2_OFF (LED_PORT->OUTCLR = LED2_MASK) /**< LED2 OFF macro */
#define LED2_TOGGLE (LED_PORT->OUT ^= LED2_MASK) /**< LED2 toggle macro */
#define LED3_ON (LED_PORT->OUTCLR = LED3_MASK) /**< LED3 ON macro */
#define LED3_OFF (LED_PORT->OUTSET = LED3_MASK) /**< LED3 OFF macro */
#define LED3_ON (LED_PORT->OUTSET = LED3_MASK) /**< LED3 ON macro */
#define LED3_OFF (LED_PORT->OUTCLR = LED3_MASK) /**< LED3 OFF macro */
#define LED3_TOGGLE (LED_PORT->OUT ^= LED3_MASK) /**< LED3 toggle macro */
/** @} */