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

drivers/lpd8808: use new driver params scheme

This commit is contained in:
Alexandre Abadie 2018-02-28 16:52:31 +01:00
parent 2e066e8693
commit 0c8b7e4825

View File

@ -39,9 +39,11 @@ extern "C" {
#define LPD8808_PARAM_PIN_DAT (GPIO_PIN(0, 1))
#endif
#define LPD8808_PARAMS_DEFAULT {.led_cnt = LPD8808_PARAM_LED_CNT, \
.pin_clk = LPD8808_PARAM_PIN_CLK, \
.pin_dat = LPD8808_PARAM_PIN_DAT }
#ifndef LPD8808_PARAMS
#define LPD8808_PARAMS { .led_cnt = LPD8808_PARAM_LED_CNT, \
.pin_clk = LPD8808_PARAM_PIN_CLK, \
.pin_dat = LPD8808_PARAM_PIN_DAT }
#endif
/**@}*/
/**
@ -49,11 +51,7 @@ extern "C" {
*/
static const lpd8808_params_t lpd8808_params[] =
{
#ifdef LPD8808_PARAMS_BOARD
LPD8808_PARAMS_BOARD,
#else
LPD8808_PARAMS_DEFAULT,
#endif
LPD8808_PARAMS
};
#ifdef __cplusplus