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

drivers/grove_ledbar: use new driver params scheme

This commit is contained in:
Alexandre Abadie 2018-02-28 16:51:05 +01:00
parent 8a6bed72bd
commit ddbbf71c49

View File

@ -54,23 +54,24 @@ extern "C"
/**
* @brief Default parameter settings
*/
#define GROVE_LEDBAR_PARAMS { \
.leds = 10, \
.dir = GROVE_LEDBAR_DIR, \
.clk = GROVE_LEDBAR_CLK, \
.dat = GROVE_LEDBAR_DAT, \
}
#ifndef GROVE_LEDBAR_PARAMS
#define GROVE_LEDBAR_PARAMS { .leds = 10, \
.dir = GROVE_LEDBAR_DIR, \
.clk = GROVE_LEDBAR_CLK, \
.dat = GROVE_LEDBAR_DAT }
#endif
/**
* @brief SAUL info
*/
#define GROVE_LEDBAR_SAUL_INFO { .name = "Grove LED bar" }
/**
* @brief Grove LED bar configuration
*/
static const grove_ledbar_params_t grove_ledbar_params[] =
{
#ifdef GROVE_LEDBAR_CUSTOM
GROVE_LEDBAR_CUSTOM,
#else
GROVE_LEDBAR_PARAMS,
#endif
};
/**
@ -78,9 +79,7 @@ static const grove_ledbar_params_t grove_ledbar_params[] =
*/
static const saul_reg_info_t grove_ledbar_saul_info[] =
{
{
.name = "Grove LED bar"
}
GROVE_LEDBAR_SAUL_INFO
};
#ifdef __cplusplus