arduino_board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 J. David Ibáñez <jdavid.ibp@gmail.com>
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 "arduino_pinmap.h"
23 #include "periph/pwm.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
35 #define ARDUINO_LED (13)
36 
40 static const gpio_t arduino_pinmap[] = {
41  ARDUINO_PIN_0,
42  ARDUINO_PIN_1,
43  ARDUINO_PIN_2,
44  ARDUINO_PIN_3,
45  ARDUINO_PIN_4,
46  ARDUINO_PIN_5,
47  ARDUINO_PIN_6,
48  ARDUINO_PIN_7,
49  ARDUINO_PIN_8,
50  ARDUINO_PIN_9,
51  ARDUINO_PIN_10,
52  ARDUINO_PIN_11,
53  ARDUINO_PIN_12,
54  ARDUINO_PIN_13,
55  ARDUINO_PIN_14,
56  ARDUINO_PIN_15,
57  ARDUINO_PIN_16,
58  ARDUINO_PIN_17,
59  ARDUINO_PIN_18,
60  ARDUINO_PIN_19,
61  ARDUINO_PIN_20,
62  ARDUINO_PIN_21,
63  ARDUINO_PIN_22,
64  ARDUINO_PIN_23,
65  ARDUINO_PIN_24,
66  ARDUINO_PIN_25,
67  ARDUINO_PIN_26,
68  ARDUINO_PIN_27,
69  ARDUINO_PIN_28,
70  ARDUINO_PIN_29,
71  ARDUINO_PIN_30,
72  ARDUINO_PIN_31,
73  ARDUINO_PIN_32,
74  ARDUINO_PIN_33,
75  ARDUINO_PIN_34,
76  ARDUINO_PIN_35,
77  ARDUINO_PIN_36,
78  ARDUINO_PIN_37,
79  ARDUINO_PIN_38,
80  ARDUINO_PIN_39,
81  ARDUINO_PIN_40,
82  ARDUINO_PIN_41,
83  ARDUINO_PIN_42,
84  ARDUINO_PIN_43,
85  ARDUINO_PIN_44,
86  ARDUINO_PIN_45,
87  ARDUINO_PIN_46,
88  ARDUINO_PIN_47,
89  ARDUINO_PIN_48,
90  ARDUINO_PIN_49,
91  ARDUINO_PIN_50,
92  ARDUINO_PIN_51,
93  ARDUINO_PIN_52,
94 };
95 
99 static const adc_t arduino_analog_map[] = {
100  ARDUINO_A0,
101  ARDUINO_A1,
102  ARDUINO_A2,
103  ARDUINO_A3,
104  ARDUINO_A4,
105  ARDUINO_A5,
106  ARDUINO_A6,
107  ARDUINO_A7,
108 };
109 
113 #define ARDUINO_PWM_FREQU (490U)
114 
118 static const arduino_pwm_t arduino_pwm_list[] = {
119 };
120 
121 #ifdef __cplusplus
122 }
123 #endif
124 
125 #endif /* ARDUINO_BOARD_H */
126 
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[]
Look-up table for the Arduino's analog pins.
Definition: arduino_board.h:99
arduino_pwm_list
static const arduino_pwm_t arduino_pwm_list[]
List of PWM GPIO mappings.
Definition: arduino_board.h:118
arduino_pinmap.h
Mapping from MCU pins to Arduino pins for Waspmote Pro board.
pwm.h
Low-level PWM peripheral driver interface definitions.
arduino_pinmap
static const gpio_t arduino_pinmap[]
Look-up table for the Arduino's digital pins.
Definition: arduino_board.h:40