Blame view

RIOT/boards/calliope-mini/include/board.h 2.13 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
87
88
89
90
91
92
93
  /*
   * 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.
   */
  
  /**
   * @defgroup    boards_mini Calliope mini
   * @ingroup     boards
   * @brief       Board specific files for the Calliope mini
   * @{
   *
   * @file
   * @brief       Board specific configuration for the Calliope mini
   *
   * @author      Hauke Petersen <hauke.petersen@fu-berlin.de>
   */
  
  #ifndef BOARD_H
  #define BOARD_H
  
  #include "cpu.h"
  #include "periph_conf.h"
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /**
   * @brief   Xtimer configuration
   * @{
   */
  #define XTIMER_DEV                  (0)
  #define XTIMER_CHAN                 (0)
  #define XTIMER_WIDTH                (24)
  #define XTIMER_BACKOFF              (40)
  /** @} */
  
  /**
   * @brief   LED matrix pin configuration
   * @{
   */
  #define MINI_LED_COL1               GPIO_PIN(0,  4)
  #define MINI_LED_COL2               GPIO_PIN(0,  5)
  #define MINI_LED_COL3               GPIO_PIN(0,  6)
  #define MINI_LED_COL4               GPIO_PIN(0,  7)
  #define MINI_LED_COL5               GPIO_PIN(0,  8)
  #define MINI_LED_COL6               GPIO_PIN(0,  9)
  #define MINI_LED_COL7               GPIO_PIN(0, 10)
  #define MINI_LED_COL8               GPIO_PIN(0, 11)
  #define MINI_LED_COL9               GPIO_PIN(0, 12)
  #define MINI_LED_ROW1               GPIO_PIN(0, 13)
  #define MINI_LED_ROW2               GPIO_PIN(0, 14)
  #define MINI_LED_ROW3               GPIO_PIN(0, 15)
  /** @} */
  
  /**
   * @brief   Button configuration
   * @{
   */
  #define BTN0_PIN                    GPIO_PIN(0, 17)
  #define BTN1_PIN                    GPIO_PIN(0, 26)
  /** @} */
  
  /**
   * @brief   MMA8653 accelerometer configuration
   * @{
   */
  #define MMA8653_PARAM_I2C           I2C_0,
  #define MMA8653_PARAM_ADDR          0x1d
  /** @} */
  
  /**
   * @brief   MAG3110 magnetometer configuration
   * @{
   */
  #define MAG3110_PARAM_I2C           I2C_0,
  #define MAG3110_PARAM_ADDR          0x0e
  /** @} */
  
  /**
   * @brief   Initialize the board, also triggers the CPU initialization
   */
  void board_init(void);
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /** BOARD_H */
  /** @} */