1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/veml6070: use new driver params scheme

This commit is contained in:
Alexandre Abadie 2018-02-28 16:53:35 +01:00
parent 2e066e8693
commit 2729d67be2

View File

@ -38,8 +38,13 @@ extern "C" {
#define VEML6070_PARAM_ITIME VEML6070_1_T
#endif
#define VEML6070_PARAMS_DEFAULT { .i2c_dev = VEML6070_PARAM_I2C_DEV, \
#ifndef VEML6070_PARAMS
#define VEML6070_PARAMS { .i2c_dev = VEML6070_PARAM_I2C_DEV, \
.itime = VEML6070_PARAM_ITIME }
#endif
#ifndef VEML6070_SAUL_INFO
#define VEML6070_SAUL_INFO { .name = "veml6070" }
#endif
/**@}*/
/**
@ -47,19 +52,15 @@ extern "C" {
*/
static const veml6070_params_t veml6070_params[] =
{
#ifdef VEML6070_PARAMS_BOARD
VEML6070_PARAMS_BOARD,
#else
VEML6070_PARAMS_DEFAULT,
#endif
VEML6070_PARAMS
};
/**
* @brief Configure SAUL registry entries
*/
static const saul_reg_info_t veml6070_saul_reg_info[] =
static const saul_reg_info_t veml6070_saul_info[] =
{
{ .name = "veml6070" }
VEML6070_SAUL_INFO
};
#ifdef __cplusplus