1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/remote: provide custom led_init()

This commit is contained in:
Benjamin Valentin 2022-02-18 12:51:09 +01:00
parent d6035fe247
commit de0eed384d
3 changed files with 15 additions and 26 deletions

View File

@ -22,11 +22,8 @@
#include "cpu.h"
#include "fancy_leds.h"
static inline void leds_init(void);
void board_init(void)
{
leds_init();
}
/**
@ -35,7 +32,7 @@ void board_init(void)
* The LED initialization is hard-coded in this function. As the LED (RGB) are
* soldered onto the board they are fixed to their CPU pins.
*/
static inline void leds_init(void)
void led_init(void)
{
/* Shoot rainbows */
LED_RAINBOW();

View File

@ -24,23 +24,13 @@
#include "cpu.h"
#include "fancy_leds.h"
static inline void leds_init(void);
static inline void rf_switch_init(void);
void board_init(void)
{
leds_init();
/* initialize the 2.4GHz RF switch */
rf_switch_init();
}
/**
* @brief Initialize the boards on-board LEDs
*
* The LED initialization is hard-coded in this function. As the LED (RGB) are
* soldered onto the board they are fixed to their CPU pins.
*/
static inline void leds_init(void)
void led_init(void)
{
/* Shoot rainbows */
LED_RAINBOW();
@ -60,3 +50,9 @@ static void rf_switch_init(void)
gpio_init(RF_SWITCH_GPIO, GPIO_OUT);
RF_SWITCH_2_4_GHZ;
}
void board_init(void)
{
/* initialize the 2.4GHz RF switch */
rf_switch_init();
}

View File

@ -24,23 +24,13 @@
#include "cpu.h"
#include "fancy_leds.h"
static inline void leds_init(void);
static inline void rf_switch_init(void);
void board_init(void)
{
leds_init();
/* initialize the 2.4GHz RF switch */
rf_switch_init();
}
/**
* @brief Initialize the boards on-board LEDs
*
* The LED initialization is hard-coded in this function. As the LED (RGB) are
* soldered onto the board they are fixed to their CPU pins.
*/
static inline void leds_init(void)
void led_init(void)
{
/* Shoot rainbows */
@ -61,3 +51,9 @@ static void rf_switch_init(void)
gpio_init(RF_SWITCH_GPIO, GPIO_OUT);
RF_SWITCH_2_4_GHZ;
}
void board_init(void)
{
/* initialize the 2.4GHz RF switch */
rf_switch_init();
}