mirror of
https://github.com/gosticks/RIOT.git
synced 2025-10-16 12:05:37 +00:00
Merge pull request #8687 from aabadie/pr/drivers/params/bh1750fvi
drivers/bh1750fvi: use new driver params scheme
This commit is contained in:
commit
a3bac82bf3
@ -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
|
||||||
|
#define BH1750FVI_PARAMS { .i2c = BH1750FVI_PARAM_I2C, \
|
||||||
.addr = BH1750FVI_PARAM_ADDR, \
|
.addr = BH1750FVI_PARAM_ADDR, \
|
||||||
.clk = BH1750FVI_PARAM_I2C_CLK}
|
.clk = BH1750FVI_PARAM_I2C_CLK }
|
||||||
|
#endif
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user