2016-01-13 15:11:26 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Freie Universität Berlin
|
|
|
|
*
|
|
|
|
* 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_bh1750fvi
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
* @file
|
|
|
|
* @brief Default configuration for BH1750FVI devices
|
|
|
|
*
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BH1750FVI_PARAMS_H
|
|
|
|
#define BH1750FVI_PARAMS_H
|
|
|
|
|
|
|
|
#include "board.h"
|
|
|
|
#include "bh1750fvi.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2017-08-29 18:00:46 +02:00
|
|
|
* @name Set default configuration parameters for BH1750FVI devices
|
2016-01-13 15:11:26 +01:00
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#ifndef BH1750FVI_PARAM_I2C
|
|
|
|
#define BH1750FVI_PARAM_I2C I2C_DEV(0)
|
|
|
|
#endif
|
|
|
|
#ifndef BH1750FVI_PARAM_ADDR
|
|
|
|
#define BH1750FVI_PARAM_ADDR (BH1750FVI_DEFAULT_ADDR)
|
|
|
|
#endif
|
|
|
|
|
2018-02-28 18:00:58 +01:00
|
|
|
#ifndef BH1750FVI_PARAMS
|
|
|
|
#define BH1750FVI_PARAMS { .i2c = BH1750FVI_PARAM_I2C, \
|
2018-07-04 11:08:12 +02:00
|
|
|
.addr = BH1750FVI_PARAM_ADDR }
|
2018-02-28 18:00:58 +01:00
|
|
|
#endif
|
2016-01-13 15:11:26 +01:00
|
|
|
/**@}*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief BH1750FVI configuration
|
|
|
|
*/
|
|
|
|
static const bh1750fvi_params_t bh1750fvi_params[] =
|
|
|
|
{
|
2018-02-28 18:00:58 +01:00
|
|
|
BH1750FVI_PARAMS
|
2016-01-13 15:11:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* BH1750FVI_PARAMS_H */
|
|
|
|
/** @} */
|