arduino_board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Federico Pellegrin
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 
17 #ifndef ARDUINO_BOARD_H
18 #define ARDUINO_BOARD_H
19 
20 #include "arduino_pinmap.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
29 static const gpio_t arduino_pinmap[] = {
30  ARDUINO_PIN_0,
31  ARDUINO_PIN_1
32 };
33 
37 static const adc_t arduino_analog_map[] = {
38  ARDUINO_A0,
39  ARDUINO_A1,
40  ARDUINO_A2
41 };
42 
46 #define ARDUINO_LED (0)
47 
51 #define ARDUINO_UART_DEV UART_DEV(0)
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif /* ARDUINO_BOARD_H */
58 
adc_t
unsigned int adc_t
Define default ADC type identifier.
Definition: adc.h:72
arduino_analog_map
static const adc_t arduino_analog_map[]
Arduino's analog pins mappings.
Definition: arduino_board.h:37
arduino_pinmap.h
Mapping from board pins to Arduino pins.
arduino_pinmap
static const gpio_t arduino_pinmap[]
Arduino's digital pins mappings.
Definition: arduino_board.h:29