From 917c4c87de6f4361034c75306077704e858502e2 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Sun, 12 Nov 2017 11:57:53 +0000 Subject: [PATCH] Remove LED undefs --- arch/platform/cc2538dk/dev/board.h | 7 ------- arch/platform/openmote-cc2538/board.h | 7 ------- arch/platform/srf06-cc26xx/launchpad/cc1310/board.h | 7 ------- arch/platform/srf06-cc26xx/launchpad/cc1350/board.h | 7 ------- arch/platform/srf06-cc26xx/launchpad/cc2650/board.h | 7 ------- arch/platform/srf06-cc26xx/sensortag/cc1350/board.h | 7 ------- arch/platform/srf06-cc26xx/sensortag/cc2650/board.h | 7 ------- arch/platform/srf06-cc26xx/srf06/cc13xx/board.h | 7 ------- arch/platform/srf06-cc26xx/srf06/cc26xx/board.h | 7 ------- arch/platform/zoul/firefly-reva/board.h | 8 -------- arch/platform/zoul/firefly/board.h | 8 -------- arch/platform/zoul/orion/board.h | 8 -------- arch/platform/zoul/remote-reva/board.h | 8 -------- arch/platform/zoul/remote-revb/board.h | 6 ------ 14 files changed, 101 deletions(-) diff --git a/arch/platform/cc2538dk/dev/board.h b/arch/platform/cc2538dk/dev/board.h index 3b3836c58..6e3021ceb 100644 --- a/arch/platform/cc2538dk/dev/board.h +++ b/arch/platform/cc2538dk/dev/board.h @@ -71,13 +71,6 @@ * @{ */ /*---------------------------------------------------------------------------*/ -/* Some files include leds.h before us, so we need to get rid of defaults in - * leds.h before we provide correct definitions */ -#undef LEDS_GREEN -#undef LEDS_YELLOW -#undef LEDS_RED -#undef LEDS_CONF_ALL - #define LEDS_YELLOW 2 /**< LED2 (Yellow) -> PC1 */ #define LEDS_GREEN 4 /**< LED3 (Green) -> PC2 */ #define LEDS_ORANGE 8 /**< LED4 (Orange) -> PC3 */ diff --git a/arch/platform/openmote-cc2538/board.h b/arch/platform/openmote-cc2538/board.h index e3ce027f2..56724a753 100644 --- a/arch/platform/openmote-cc2538/board.h +++ b/arch/platform/openmote-cc2538/board.h @@ -63,13 +63,6 @@ * @{ */ /*---------------------------------------------------------------------------*/ -/* Some files include leds.h before us, so we need to get rid of defaults in - * leds.h before we provide correct definitions */ -#undef LEDS_GREEN -#undef LEDS_YELLOW -#undef LEDS_RED -#undef LEDS_CONF_ALL - #define LEDS_RED 16 /**< LED1 (Red) -> PC4 */ #define LEDS_YELLOW 64 /**< LED2 (Yellow) -> PC6 */ #define LEDS_GREEN 128 /**< LED3 (Green) -> PC7 */ diff --git a/arch/platform/srf06-cc26xx/launchpad/cc1310/board.h b/arch/platform/srf06-cc26xx/launchpad/cc1310/board.h index a4b2efbba..1d56d776a 100644 --- a/arch/platform/srf06-cc26xx/launchpad/cc1310/board.h +++ b/arch/platform/srf06-cc26xx/launchpad/cc1310/board.h @@ -60,13 +60,6 @@ * Those values are not meant to be modified by the user * @{ */ -/* Some files include leds.h before us, so we need to get rid of defaults in - * leds.h before we provide correct definitions */ -#undef LEDS_GREEN -#undef LEDS_YELLOW -#undef LEDS_RED -#undef LEDS_CONF_ALL - #define LEDS_RED 1 #define LEDS_GREEN 2 #define LEDS_YELLOW LEDS_GREEN diff --git a/arch/platform/srf06-cc26xx/launchpad/cc1350/board.h b/arch/platform/srf06-cc26xx/launchpad/cc1350/board.h index e645b8b0b..9b5019179 100644 --- a/arch/platform/srf06-cc26xx/launchpad/cc1350/board.h +++ b/arch/platform/srf06-cc26xx/launchpad/cc1350/board.h @@ -60,13 +60,6 @@ * Those values are not meant to be modified by the user * @{ */ -/* Some files include leds.h before us, so we need to get rid of defaults in - * leds.h before we provide correct definitions */ -#undef LEDS_GREEN -#undef LEDS_YELLOW -#undef LEDS_RED -#undef LEDS_CONF_ALL - #define LEDS_RED 1 #define LEDS_GREEN 2 #define LEDS_YELLOW LEDS_GREEN diff --git a/arch/platform/srf06-cc26xx/launchpad/cc2650/board.h b/arch/platform/srf06-cc26xx/launchpad/cc2650/board.h index 9b9d00bf0..65a5bb766 100644 --- a/arch/platform/srf06-cc26xx/launchpad/cc2650/board.h +++ b/arch/platform/srf06-cc26xx/launchpad/cc2650/board.h @@ -60,13 +60,6 @@ * Those values are not meant to be modified by the user * @{ */ -/* Some files include leds.h before us, so we need to get rid of defaults in - * leds.h before we provide correct definitions */ -#undef LEDS_GREEN -#undef LEDS_YELLOW -#undef LEDS_RED -#undef LEDS_CONF_ALL - #define LEDS_RED 1 #define LEDS_GREEN 2 #define LEDS_YELLOW LEDS_GREEN diff --git a/arch/platform/srf06-cc26xx/sensortag/cc1350/board.h b/arch/platform/srf06-cc26xx/sensortag/cc1350/board.h index 7db4c9357..dbd64e538 100644 --- a/arch/platform/srf06-cc26xx/sensortag/cc1350/board.h +++ b/arch/platform/srf06-cc26xx/sensortag/cc1350/board.h @@ -63,13 +63,6 @@ * Those values are not meant to be modified by the user * @{ */ -/* Some files include leds.h before us, so we need to get rid of defaults in - * leds.h before we provide correct definitions */ -#undef LEDS_GREEN -#undef LEDS_YELLOW -#undef LEDS_RED -#undef LEDS_CONF_ALL - #define LEDS_RED 1 #define LEDS_GREEN LEDS_RED #define LEDS_YELLOW LEDS_RED diff --git a/arch/platform/srf06-cc26xx/sensortag/cc2650/board.h b/arch/platform/srf06-cc26xx/sensortag/cc2650/board.h index 0cf828850..977712ef2 100644 --- a/arch/platform/srf06-cc26xx/sensortag/cc2650/board.h +++ b/arch/platform/srf06-cc26xx/sensortag/cc2650/board.h @@ -63,13 +63,6 @@ * Those values are not meant to be modified by the user * @{ */ -/* Some files include leds.h before us, so we need to get rid of defaults in - * leds.h before we provide correct definitions */ -#undef LEDS_GREEN -#undef LEDS_YELLOW -#undef LEDS_RED -#undef LEDS_CONF_ALL - #define LEDS_RED 1 #define LEDS_GREEN 2 #define LEDS_YELLOW LEDS_GREEN diff --git a/arch/platform/srf06-cc26xx/srf06/cc13xx/board.h b/arch/platform/srf06-cc26xx/srf06/cc13xx/board.h index 831c2ee33..e210d82d8 100644 --- a/arch/platform/srf06-cc26xx/srf06/cc13xx/board.h +++ b/arch/platform/srf06-cc26xx/srf06/cc13xx/board.h @@ -63,13 +63,6 @@ * Those values are not meant to be modified by the user * @{ */ -/* Some files include leds.h before us, so we need to get rid of defaults in - * leds.h before we provide correct definitions */ -#undef LEDS_GREEN -#undef LEDS_YELLOW -#undef LEDS_RED -#undef LEDS_CONF_ALL - #define LEDS_RED 1 /**< LED1 (Red) */ #define LEDS_YELLOW 2 /**< LED2 (Yellow) */ #define LEDS_GREEN 4 /**< LED3 (Green) */ diff --git a/arch/platform/srf06-cc26xx/srf06/cc26xx/board.h b/arch/platform/srf06-cc26xx/srf06/cc26xx/board.h index 35080aea9..99f97fbf2 100644 --- a/arch/platform/srf06-cc26xx/srf06/cc26xx/board.h +++ b/arch/platform/srf06-cc26xx/srf06/cc26xx/board.h @@ -63,13 +63,6 @@ * Those values are not meant to be modified by the user * @{ */ -/* Some files include leds.h before us, so we need to get rid of defaults in - * leds.h before we provide correct definitions */ -#undef LEDS_GREEN -#undef LEDS_YELLOW -#undef LEDS_RED -#undef LEDS_CONF_ALL - #define LEDS_RED 1 /**< LED1 (Red) */ #define LEDS_YELLOW 2 /**< LED2 (Yellow) */ #define LEDS_GREEN 4 /**< LED3 (Green) */ diff --git a/arch/platform/zoul/firefly-reva/board.h b/arch/platform/zoul/firefly-reva/board.h index fb72796c0..bea1fc746 100644 --- a/arch/platform/zoul/firefly-reva/board.h +++ b/arch/platform/zoul/firefly-reva/board.h @@ -98,14 +98,6 @@ * @{ */ /*---------------------------------------------------------------------------*/ -/* Some files include leds.h before us, so we need to get rid of defaults in - * leds.h before we provide correct definitions */ -#undef LEDS_GREEN -#undef LEDS_YELLOW -#undef LEDS_BLUE -#undef LEDS_RED -#undef LEDS_CONF_ALL - /* In leds.h the LEDS_BLUE is defined by LED_YELLOW definition */ #define LEDS_GREEN (1 << 4) /**< LED1 (Green) -> PD4 */ #define LEDS_BLUE (1 << 3) /**< LED2 (Blue) -> PD3 */ diff --git a/arch/platform/zoul/firefly/board.h b/arch/platform/zoul/firefly/board.h index 0d90e4369..4a58fc0cc 100644 --- a/arch/platform/zoul/firefly/board.h +++ b/arch/platform/zoul/firefly/board.h @@ -98,14 +98,6 @@ * @{ */ /*---------------------------------------------------------------------------*/ -/* Some files include leds.h before us, so we need to get rid of defaults in - * leds.h before we provide correct definitions */ -#undef LEDS_GREEN -#undef LEDS_YELLOW -#undef LEDS_BLUE -#undef LEDS_RED -#undef LEDS_CONF_ALL - /* In leds.h the LEDS_BLUE is defined by LED_YELLOW definition */ #define LEDS_GREEN (1 << 4) /**< LED1 (Green) -> PD4 */ #define LEDS_BLUE (1 << 3) /**< LED2 (Blue) -> PD3 */ diff --git a/arch/platform/zoul/orion/board.h b/arch/platform/zoul/orion/board.h index f0e7ba452..494d79372 100644 --- a/arch/platform/zoul/orion/board.h +++ b/arch/platform/zoul/orion/board.h @@ -67,14 +67,6 @@ * @{ */ /*---------------------------------------------------------------------------*/ -/* Some files include leds.h before us, so we need to get rid of defaults in - * leds.h before we provide correct definitions */ -#undef LEDS_GREEN -#undef LEDS_YELLOW -#undef LEDS_BLUE -#undef LEDS_RED -#undef LEDS_CONF_ALL - /* In leds.h the LEDS_BLUE is defined by LED_YELLOW definition */ #define LEDS_GREEN (1 << 4) /**< LED1 (Green) -> PD4 */ #define LEDS_BLUE (1 << 3) /**< LED2 (Blue) -> PD3 */ diff --git a/arch/platform/zoul/remote-reva/board.h b/arch/platform/zoul/remote-reva/board.h index efb516c31..70a8ffdab 100644 --- a/arch/platform/zoul/remote-reva/board.h +++ b/arch/platform/zoul/remote-reva/board.h @@ -102,14 +102,6 @@ * @{ */ /*---------------------------------------------------------------------------*/ -/* Some files include leds.h before us, so we need to get rid of defaults in - * leds.h before we provide correct definitions */ -#undef LEDS_GREEN -#undef LEDS_YELLOW -#undef LEDS_BLUE -#undef LEDS_RED -#undef LEDS_CONF_ALL - /* In leds.h the LEDS_BLUE is defined by LED_YELLOW definition */ #define LEDS_GREEN (1 << 4) /**< LED1 (Green) -> PD4 */ #define LEDS_BLUE (1 << 3) /**< LED2 (Blue) -> PD3 */ diff --git a/arch/platform/zoul/remote-revb/board.h b/arch/platform/zoul/remote-revb/board.h index fb50f13dc..432b4b062 100644 --- a/arch/platform/zoul/remote-revb/board.h +++ b/arch/platform/zoul/remote-revb/board.h @@ -105,12 +105,6 @@ * @{ */ /*---------------------------------------------------------------------------*/ -#undef LEDS_GREEN -#undef LEDS_YELLOW -#undef LEDS_BLUE -#undef LEDS_RED -#undef LEDS_CONF_ALL - #define LEDS_RED 1 /**< LED1 (Red) -> PD4 */ #define LEDS_RED_PIN_MASK (1 << 4) #define LEDS_RED_PORT_BASE GPIO_D_BASE