1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/tmp00x/include/tmp00x_params.h
Marian Buschsieweke fabb47bb93
drivers/tmp00x: Add missing doc and fix doccheck
This commits add documentation to the TMP00X params and adds generic
exclude patters to the doc check, so that when boards provide custom
TMP00X params they do not need to document them again. The reasoning is
that the documentation in the central place is sufficient.
2023-01-05 14:25:19 +01:00

95 lines
1.9 KiB
C

/*
* Copyright (C) 2017 - 2019 HAW Hamburg
*
* 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_tmp00x
*
* @{
* @file
* @brief Default configuration for TMP00X (TMP006 and TMP007) devices
*
* @author Sebastian Meiling <s@mlng.net>
*/
#ifndef TMP00X_PARAMS_H
#define TMP00X_PARAMS_H
#include "board.h"
#include "tmp00x.h"
#include "saul_reg.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Set default configuration parameters for the TMP00X driver
* @ingroup config
* @{
*/
#ifndef TMP00X_PARAM_I2C
/**
* @brief The I2C bus the TMP00X device is connected to
*/
#define TMP00X_PARAM_I2C I2C_DEV(0)
#endif
#ifndef TMP00X_PARAM_ADDR
/**
* @brief The I2C address of the TMP00X device
*/
#define TMP00X_PARAM_ADDR (CONFIG_TMP00X_I2C_ADDRESS)
#endif
#ifndef TMP00X_PARAM_RATE
/**
* @brief The conversion rate to configure the TMP00X device with
*/
#define TMP00X_PARAM_RATE TMP00X_CONFIG_CR_DEF
#endif
#ifndef TMP00X_PARAMS
/**
* @brief The parameters to initialize the TMP00X device driver with
*/
#define TMP00X_PARAMS { .i2c = TMP00X_PARAM_I2C, \
.addr = TMP00X_PARAM_ADDR, \
.rate = TMP00X_PARAM_RATE }
#endif
#ifndef TMP00X_SAUL_INFO
/**
* @brief The SAUL info to register the TMP00x device driver instances with
*/
#define TMP00X_SAUL_INFO { .name = "tmp00x" }
#endif
/**@}*/
/**
* @brief TMP00X configuration
*/
static const tmp00x_params_t tmp00x_params[] =
{
TMP00X_PARAMS
};
/**
* @brief Additional meta information to keep in the SAUL registry
*/
static const saul_reg_info_t tmp00x_saul_info[] =
{
TMP00X_SAUL_INFO
};
#ifdef __cplusplus
}
#endif
#endif /* TMP00X_PARAMS_H */
/** @} */