From a67c2cb7070922381c205a89b895b4f7f42a40b7 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Wed, 28 Feb 2018 16:18:22 +0100 Subject: [PATCH] drivers/apa102: use new driver params scheme --- drivers/apa102/include/apa102_params.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/apa102/include/apa102_params.h b/drivers/apa102/include/apa102_params.h index d160eda84f..7a6526d114 100644 --- a/drivers/apa102/include/apa102_params.h +++ b/drivers/apa102/include/apa102_params.h @@ -39,9 +39,11 @@ extern "C" { #define APA102_PARAM_CLK_PIN (GPIO_PIN(0, 1)) #endif -#define APA102_PARAMS_DEFAULT { .led_numof = APA102_PARAM_LED_NUMOF, \ +#ifndef APA102_PARAMS +#define APA102_PARAMS { .led_numof = APA102_PARAM_LED_NUMOF, \ .data_pin = APA102_PARAM_DATA_PIN, \ .clk_pin = APA102_PARAM_CLK_PIN } +#endif /**@}*/ /** @@ -49,11 +51,7 @@ extern "C" { */ static const apa102_params_t apa102_params[] = { -#ifdef APA102_PARAMS_BOARD - APA102_PARAMS_BOARD, -#else - APA102_PARAMS_DEFAULT, -#endif + APA102_PARAMS }; #ifdef __cplusplus