Blame view

RIOT/drivers/bh1750fvi/include/bh1750fvi_params.h 1.37 KB
fb11e647   vrobic   reseau statique a...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
  /*
   * 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
  
  /**
   * @brief   Set default configuration parameters for BH1750FVI devices
   * @{
   */
  #ifndef BH1750FVI_PARAM_I2C
  #define BH1750FVI_PARAM_I2C         I2C_DEV(0)
  #endif
  #ifndef BH1750FVI_PARAM_ADDR
  #define BH1750FVI_PARAM_ADDR        (BH1750FVI_DEFAULT_ADDR)
  #endif
  #ifndef BH1750FVI_PARAM_I2C_CLK
  #define BH1750FVI_PARAM_I2C_CLK     (BH1750FVI_I2C_MAX_CLK)
  #endif
  
  #define BH1750FVI_PARAMS_DEFAULT    {.i2c = BH1750FVI_PARAM_I2C, \
                                       .addr = BH1750FVI_PARAM_ADDR, \
                                       .clk = BH1750FVI_PARAM_I2C_CLK}
  /**@}*/
  
  /**
   * @brief   BH1750FVI configuration
   */
  static const bh1750fvi_params_t bh1750fvi_params[] =
  {
  #ifdef BH1750FVI_PARAMS_BOARD
      BH1750FVI_PARAMS_BOARD,
  #else
      BH1750FVI_PARAMS_DEFAULT,
  #endif
  };
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* BH1750FVI_PARAMS_H */
  /** @} */