1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/ds75lx/include/ds75lx_params.h

66 lines
1.3 KiB
C
Raw Normal View History

2019-05-09 16:12:02 +02:00
/*
* Copyright (C) 2019 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_ds75lx
*
* @{
* @file
* @brief Default configuration for DS75LX
*
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
*/
#ifndef DS75LX_PARAMS_H
#define DS75LX_PARAMS_H
#include "board.h"
#include "ds75lx.h"
#include "ds75lx_internals.h"
#include "saul_reg.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Set default configuration parameters for the DS75LX
* @{
*/
#ifndef DS75LX_PARAM_I2C_DEV
#define DS75LX_PARAM_I2C_DEV I2C_DEV(0)
#endif
#ifndef DS75LX_PARAM_I2C_ADDR
#define DS75LX_PARAM_I2C_ADDR DS75LX_ADDR
#endif
#ifndef DS75LX_PARAM_RESOLUTION
#define DS75LX_PARAM_RESOLUTION DS75LX_RESOLUTION_10
#endif
#ifndef DS75LX_PARAMS
#define DS75LX_PARAMS { .i2c = DS75LX_PARAM_I2C_DEV, \
.addr = DS75LX_PARAM_I2C_ADDR, \
.resolution = DS75LX_PARAM_RESOLUTION }
#endif
/**@}*/
/**
* @brief Configure DS75LX
*/
static const ds75lx_params_t ds75lx_params[] =
{
DS75LX_PARAMS
};
#ifdef __cplusplus
}
#endif
#endif /* DS75LX_PARAMS_H */
/** @} */