Blame view

RIOT/boards/slwstk6220a/include/board.h 1.88 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
  /*
   * Copyright (C) 2015 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.
   */
  
  /**
   * @defgroup    boards_wstk6220 Silicon Labs WSTK6220 Eval Kit
   * @ingroup     boards
   * @brief       Support for the Silicon Labs WSTK6220 evaluation kit
   * @{
   *
   * @file
   * @brief       Board specific definitions for the WSTK6220 evaluation kit
   *
   * @author      Hauke Petersen <hauke.petersen@fu-berlin.de>
   */
  
  #ifndef BOARD_H
  #define BOARD_H
  
  #include "cpu.h"
  #include "periph_conf.h"
  #include "periph_cpu.h"
  #include "periph/gpio.h"
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /**
   * @brief   Assign the hardware timer
   */
  #define HW_TIMER            TIMER_DEV(0)
  
  /**
   * @brief   Connection to the on-board temperature/humidity sensor (Si7021)
   * @{
   */
  #define SI7021_I2C          (I2C_0)
  #define SI7021_ADDR         (0)     /* TODO */
  #define SI7021_EN_PIN       GPIO_PIN(PF,8)
  /** @} */
  
  /**
   * @brief   GPIO pin for enabling communication through the board controller
   */
  #define BC_PIN              GPIO_PIN(PA,12)
  
  /**
   * @brief   User button pin definitions
   * @{
   */
  #define PB0_PIN             GPIO_PIN(PE,3)
  #define PB1_PIN             GPIO_PIN(PE,2)
  /** @} */
  
  /**
   * @brief   LED pin definitions
   * @{
   */
  #define LED0_PIN            GPIO_PIN(PF, 6)
  #define LED1_PIN            GPIO_PIN(PF, 7)
  
  #define LED0_ON             gpio_set(LED0_PIN)
  #define LED0_OFF            gpio_clear(LED0_PIN)
  #define LED0_TOGGLE         gpio_toggle(LED0_PIN)
  
  #define LED1_ON             gpio_set(LED1_PIN)
  #define LED1_OFF            gpio_clear(LED1_PIN)
  #define LED1_TOGGLE         gpio_toggle(LED1_PIN)
  /** @} */
  
  /**
   * @brief Initialize board specific hardware, including clock, LEDs and std-IO
   */
  void board_init(void);
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* BOARD_H */
  /** @} */