Blame view

RIOT/boards/arduino-due/include/board.h 1.05 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
  /*
   * Copyright (C) 2014 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_arduino-due Arduino Due
   * @ingroup     boards
   * @brief       Support for the Arduino Due board.
   * @{
   *
   * @file
   * @brief       Board specific definitions for the Arduino Due board.
   *
   * @author      Hauke Petersen <hauke.petersen@fu-berlin.de>
   */
  
  #ifndef BOARD_H_
  #define BOARD_H_
  
  #include "cpu.h"
  #include "arduino_pinmap.h"
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /**
   * @name LED pin definitions
   * @{
   */
  #define LED0_PIN            GPIO_PIN(PB, 27)
  
  #define LED0_ON             (PIOB->PIO_SODR  = PIO_PB27)
  #define LED0_OFF            (PIOB->PIO_CODR  = PIO_PB27)
  #define LED0_TOGGLE         (PIOB->PIO_ODSR ^= PIO_PB27)
  /** @} */
  
  /**
   * @brief Initialize board specific hardware, including clock, LEDs and std-IO
   */
  void board_init(void);
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* BOARD_H_ */
  /** @} */