mirror of
https://github.com/gosticks/RIOT.git
synced 2025-10-16 12:05:37 +00:00
drivers/mma8x5x: use new driver params scheme
This commit is contained in:
parent
8a6bed72bd
commit
cb93d684ff
@ -51,13 +51,16 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MMA8X5X_PARAMS
|
#ifndef MMA8X5X_PARAMS
|
||||||
#define MMA8X5X_PARAMS { .i2c = MMA8X5X_PARAM_I2C, \
|
#define MMA8X5X_PARAMS { .i2c = MMA8X5X_PARAM_I2C, \
|
||||||
.addr = MMA8X5X_PARAM_ADDR, \
|
.addr = MMA8X5X_PARAM_ADDR, \
|
||||||
.type = MMA8X5X_PARAM_TYPE, \
|
.type = MMA8X5X_PARAM_TYPE, \
|
||||||
.rate = MMA8X5X_PARAM_RATE, \
|
.rate = MMA8X5X_PARAM_RATE, \
|
||||||
.range = MMA8X5X_PARAM_RANGE, \
|
.range = MMA8X5X_PARAM_RANGE, \
|
||||||
.offset = MMA8X5X_PARAM_OFFSET }
|
.offset = MMA8X5X_PARAM_OFFSET }
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef MMA8X5X_SAUL_INFO
|
||||||
|
#define MMA8X5X_SAUL_INFO { .name = "mma8652" }
|
||||||
|
#endif
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -73,9 +76,7 @@ static const mma8x5x_params_t mma8x5x_params[] =
|
|||||||
*/
|
*/
|
||||||
static const saul_reg_info_t mma8x5x_saul_info[] =
|
static const saul_reg_info_t mma8x5x_saul_info[] =
|
||||||
{
|
{
|
||||||
{
|
MMA8X5X_SAUL_INFO
|
||||||
.name = "mma8652"
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user