Skip to content

Commit

Permalink
drivers/bh1750fvi: use new driver params scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed Feb 28, 2018
1 parent 2e066e8 commit ef95aff
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions drivers/bh1750fvi/include/bh1750fvi_params.h
Expand Up @@ -40,21 +40,19 @@ extern "C" {
#define BH1750FVI_PARAM_I2C_CLK (BH1750FVI_I2C_MAX_CLK)
#endif

#define BH1750FVI_PARAMS_DEFAULT {.i2c = BH1750FVI_PARAM_I2C, \
.addr = BH1750FVI_PARAM_ADDR, \
.clk = BH1750FVI_PARAM_I2C_CLK}
#ifndef BH1750FVI_PARAMS
#define BH1750FVI_PARAMS { .i2c = BH1750FVI_PARAM_I2C, \
.addr = BH1750FVI_PARAM_ADDR, \
.clk = BH1750FVI_PARAM_I2C_CLK }
#endif
/**@}*/

/**
* @brief BH1750FVI configuration
*/
static const bh1750fvi_params_t bh1750fvi_params[] =
{
#ifdef BH1750FVI_PARAMS_BOARD
BH1750FVI_PARAMS_BOARD,
#else
BH1750FVI_PARAMS_DEFAULT,
#endif
BH1750FVI_PARAMS
};

#ifdef __cplusplus
Expand Down

0 comments on commit ef95aff

Please sign in to comment.