boards/pca10005: unified LED defines
This commit is contained in:
parent
7feb44a26e
commit
e04a6266d7
@ -25,9 +25,6 @@
|
|||||||
|
|
||||||
void board_init(void)
|
void board_init(void)
|
||||||
{
|
{
|
||||||
/* setup led(s) for debugging */
|
|
||||||
NRF_GPIO->DIRSET = (LED_RED_MASK);
|
|
||||||
|
|
||||||
/* initialize the CPU */
|
/* initialize the CPU */
|
||||||
cpu_init();
|
cpu_init();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,24 +39,6 @@ extern "C" {
|
|||||||
#define XTIMER_BACKOFF (40)
|
#define XTIMER_BACKOFF (40)
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
|
||||||
* @name Macros for controlling the on-board LEDs.
|
|
||||||
* @{
|
|
||||||
*/
|
|
||||||
#define LED_RED_PIN (GPIO_PIN(0, 1))
|
|
||||||
#define LED_RED_MASK (1 << 1)
|
|
||||||
|
|
||||||
#define LED_RED_ON (NRF_GPIO->OUTSET = (1 << LED_RED_MASK))
|
|
||||||
#define LED_RED_OFF (NRF_GPIO->OUTCLR = (1 << LED_RED_MASK))
|
|
||||||
#define LED_RED_TOGGLE (NRF_GPIO->OUT ^= (1 << LED_RED_MASK))
|
|
||||||
#define LED_GREEN_ON /* not available */
|
|
||||||
#define LED_GREEN_OFF /* not available */
|
|
||||||
#define LED_GREEN_TOGGLE /* not available */
|
|
||||||
#define LED_BLUE_ON /* not available */
|
|
||||||
#define LED_BLUE_OFF /* not available */
|
|
||||||
#define LED_BLUE_TOGGLE /* not available */
|
|
||||||
/* @} */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
|
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user