drivers/tcs37727: use new driver params scheme
This commit is contained in:
parent
219277e884
commit
a48a90f234
@ -28,7 +28,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "saul.h"
|
|
||||||
#include "periph/i2c.h"
|
#include "periph/i2c.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@ -46,6 +46,9 @@ extern "C" {
|
|||||||
.addr = TCS37727_PARAM_ADDR, \
|
.addr = TCS37727_PARAM_ADDR, \
|
||||||
.atime = TCS37727_PARAM_ATIME }
|
.atime = TCS37727_PARAM_ATIME }
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef TCS37727_SAUL_INFO
|
||||||
|
#define TCS37727_SAUL_INFO { .name = "tcs37727" }
|
||||||
|
#endif
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -61,7 +64,7 @@ static const tcs37727_params_t tcs37727_params[] =
|
|||||||
*/
|
*/
|
||||||
static const saul_reg_info_t tcs37727_saul_info[] =
|
static const saul_reg_info_t tcs37727_saul_info[] =
|
||||||
{
|
{
|
||||||
{ .name = "tcs37727" }
|
TCS37727_SAUL_INFO
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user