mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
78 lines
1.4 KiB
C
78 lines
1.4 KiB
C
/*
|
|
* Copyright (C) 2021 Inria
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*/
|
|
|
|
/**
|
|
* @ingroup drivers_sgp30
|
|
*
|
|
* @{
|
|
* @file
|
|
* @brief Default configuration
|
|
*
|
|
* @author Francisco Molina <francois-xavier.molina@inria.fr>
|
|
*/
|
|
|
|
#ifndef SGP30_PARAMS_H
|
|
#define SGP30_PARAMS_H
|
|
|
|
#include "board.h"
|
|
#include "sgp30.h"
|
|
#include "sgp30_constants.h"
|
|
#include "saul_reg.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @name Set default configuration parameters
|
|
* @{
|
|
*/
|
|
#ifndef SGP30_PARAM_I2C_DEV
|
|
#define SGP30_PARAM_I2C_DEV (I2C_DEV(0))
|
|
#endif
|
|
#ifndef SGP30_PARAMS
|
|
#define SGP30_PARAMS { .i2c_dev = SGP30_PARAM_I2C_DEV }
|
|
#endif
|
|
#ifndef SGP30_SAUL_INFO
|
|
#define SGP30_SAUL_INFO { .name = "sgp30" }
|
|
#endif
|
|
/**@}*/
|
|
|
|
/**
|
|
* @brief SGP30 configuration
|
|
*/
|
|
static const sgp30_params_t sgp30_params[] =
|
|
{
|
|
SGP30_PARAMS
|
|
};
|
|
|
|
/**
|
|
* @brief Define the number of configured sensors
|
|
*/
|
|
#define SGP30_NUM ARRAY_SIZE(sgp30_params)
|
|
|
|
/**
|
|
* @brief Additional meta information to keep in the SAUL registry
|
|
*/
|
|
static const saul_reg_info_t sgp30_saul_info[] =
|
|
{
|
|
SGP30_SAUL_INFO
|
|
};
|
|
|
|
/**
|
|
* @brief Number of saul info structs
|
|
*/
|
|
#define SGP30_INFO_NUM ARRAY_SIZE(sgp30_saul_info)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* SGP30_PARAMS_H */
|
|
/** @} */
|