mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/tcs37727: use new driver params scheme
This commit is contained in:
parent
219277e884
commit
a48a90f234
@ -28,7 +28,6 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "saul.h"
|
||||
#include "periph/i2c.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -46,6 +46,9 @@ extern "C" {
|
||||
.addr = TCS37727_PARAM_ADDR, \
|
||||
.atime = TCS37727_PARAM_ATIME }
|
||||
#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[] =
|
||||
{
|
||||
{ .name = "tcs37727" }
|
||||
TCS37727_SAUL_INFO
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
Reference in New Issue
Block a user