1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

sys/auto_init: update tmp006 auto_init

This commit is contained in:
Alexandre Abadie 2018-02-28 17:16:57 +01:00
parent f54b90b184
commit 5c4e402de8

View File

@ -42,6 +42,11 @@ static tmp006_t tmp006_devs[TMP006_NUM];
*/
static saul_reg_t saul_entries[TMP006_NUM];
/**
* @brief Define the number of saul info
*/
#define TMP006_INFO_NUM (sizeof(tmp006_saul_info) / sizeof(tmp006_saul_info[0]))
/**
* @brief Reference the driver struct
*/
@ -49,6 +54,8 @@ extern const saul_driver_t tmp006_saul_driver;
void auto_init_tmp006(void)
{
assert(TMP006_NUM == TMP006_INFO_NUM);
for (unsigned i = 0; i < TMP006_NUM; i++) {
LOG_DEBUG("[auto_init_saul] initializing tmp006 #%u\n", i);