From d4215e427b9f778dba0d58d468e2de68e82f7842 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Wed, 28 Feb 2018 16:35:10 +0100 Subject: [PATCH] drivers/ds1307: use new driver params scheme --- drivers/ds1307/include/ds1307_params.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/ds1307/include/ds1307_params.h b/drivers/ds1307/include/ds1307_params.h index e85d15c0d331..027e3b6d852e 100644 --- a/drivers/ds1307/include/ds1307_params.h +++ b/drivers/ds1307/include/ds1307_params.h @@ -34,10 +34,11 @@ extern "C" { #endif #ifndef DS1307_PARAM_I2C_CLK #define DS1307_PARAM_I2C_CLK (DS1307_I2C_MAX_CLK) +#endif -#define DS1307_PARAMS_DEFAULT { .i2c = DS1307_PARAM_I2C, \ +#ifndef DS1307_PARAMS +#define DS1307_PARAMS { .i2c = DS1307_PARAM_I2C, \ .clk = DS1307_PARAM_I2C_CLK } - #endif /** @} */ @@ -46,11 +47,7 @@ extern "C" { */ static const ds1307_params_t ds1307_params[] = { -#ifdef DS1307_PARAMS_BOARD - DS1307_PARAMS_BOARD, -#else - DS1307_PARAMS_DEFAULT, -#endif + DS1307_PARAMS }; #ifdef __cplusplus