Skip to content
Snippets Groups Projects
Unverified Commit a3bac82b authored by Martine Lenders's avatar Martine Lenders Committed by GitHub
Browse files

Merge pull request #8687 from aabadie/pr/drivers/params/bh1750fvi

drivers/bh1750fvi: use new driver params scheme
parents a9836ca9 ef95affe
No related branches found
No related tags found
No related merge requests found
...@@ -40,9 +40,11 @@ extern "C" { ...@@ -40,9 +40,11 @@ extern "C" {
#define BH1750FVI_PARAM_I2C_CLK (BH1750FVI_I2C_MAX_CLK) #define BH1750FVI_PARAM_I2C_CLK (BH1750FVI_I2C_MAX_CLK)
#endif #endif
#define BH1750FVI_PARAMS_DEFAULT {.i2c = BH1750FVI_PARAM_I2C, \ #ifndef BH1750FVI_PARAMS
.addr = BH1750FVI_PARAM_ADDR, \ #define BH1750FVI_PARAMS { .i2c = BH1750FVI_PARAM_I2C, \
.clk = BH1750FVI_PARAM_I2C_CLK} .addr = BH1750FVI_PARAM_ADDR, \
.clk = BH1750FVI_PARAM_I2C_CLK }
#endif
/**@}*/ /**@}*/
/** /**
...@@ -50,11 +52,7 @@ extern "C" { ...@@ -50,11 +52,7 @@ extern "C" {
*/ */
static const bh1750fvi_params_t bh1750fvi_params[] = static const bh1750fvi_params_t bh1750fvi_params[] =
{ {
#ifdef BH1750FVI_PARAMS_BOARD BH1750FVI_PARAMS
BH1750FVI_PARAMS_BOARD,
#else
BH1750FVI_PARAMS_DEFAULT,
#endif
}; };
#ifdef __cplusplus #ifdef __cplusplus
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment