The friendly Operating System for the Internet of Things
stm32f4discovery/include/arduino_board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef ARDUINO_BOARD_H
20 #define ARDUINO_BOARD_H
21 
22 #include "periph/gpio.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #define ARDUINO_LED (2)
29 
30 static const gpio_t arduino_pinmap[] = {
31  GPIO_PIN(PORT_D, 12),
32  GPIO_PIN(PORT_D, 13),
33  GPIO_PIN(PORT_D, 14),
34  GPIO_PIN(PORT_D, 15),
35  GPIO_PIN(PORT_A, 12),
36  GPIO_PIN(PORT_A, 15),
37  GPIO_PIN(PORT_B, 1),
38  GPIO_PIN(PORT_B, 2),
39 };
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #endif /* ARDUINO_BOARD_H */
46 
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Low-level GPIO peripheral driver interface definitions.