23 #ifndef ARDUINO_BOARD_PWM_H
24 #define ARDUINO_BOARD_PWM_H
26 #include "arduino_iomap.h"
37 #define ARDUINO_PWM_FREQU
39 # ifndef ARDUINO_PWM_FREQU
40 # define ARDUINO_PWM_FREQU (490U)
61 #ifdef ARDUINO_PIN_0_PWM_DEV
62 { .dev = ARDUINO_PIN_0_PWM_DEV, .chan = ARDUINO_PIN_0_PWM_CHAN, .pin = 0 },
64 #ifdef ARDUINO_PIN_1_PWM_DEV
65 { .dev = ARDUINO_PIN_1_PWM_DEV, .chan = ARDUINO_PIN_1_PWM_CHAN, .pin = 1 },
67 #ifdef ARDUINO_PIN_2_PWM_DEV
68 { .dev = ARDUINO_PIN_2_PWM_DEV, .chan = ARDUINO_PIN_2_PWM_CHAN, .pin = 2 },
70 #ifdef ARDUINO_PIN_3_PWM_DEV
71 { .dev = ARDUINO_PIN_3_PWM_DEV, .chan = ARDUINO_PIN_3_PWM_CHAN, .pin = 3 },
73 #ifdef ARDUINO_PIN_4_PWM_DEV
74 { .dev = ARDUINO_PIN_4_PWM_DEV, .chan = ARDUINO_PIN_4_PWM_CHAN, .pin = 4 },
76 #ifdef ARDUINO_PIN_5_PWM_DEV
77 { .dev = ARDUINO_PIN_5_PWM_DEV, .chan = ARDUINO_PIN_5_PWM_CHAN, .pin = 5 },
79 #ifdef ARDUINO_PIN_6_PWM_DEV
80 { .dev = ARDUINO_PIN_6_PWM_DEV, .chan = ARDUINO_PIN_6_PWM_CHAN, .pin = 6 },
82 #ifdef ARDUINO_PIN_7_PWM_DEV
83 { .dev = ARDUINO_PIN_7_PWM_DEV, .chan = ARDUINO_PIN_7_PWM_CHAN, .pin = 7 },
85 #ifdef ARDUINO_PIN_8_PWM_DEV
86 { .dev = ARDUINO_PIN_8_PWM_DEV, .chan = ARDUINO_PIN_8_PWM_CHAN, .pin = 8 },
88 #ifdef ARDUINO_PIN_9_PWM_DEV
89 { .dev = ARDUINO_PIN_9_PWM_DEV, .chan = ARDUINO_PIN_9_PWM_CHAN, .pin = 9 },
91 #ifdef ARDUINO_PIN_10_PWM_DEV
92 { .dev = ARDUINO_PIN_10_PWM_DEV, .chan = ARDUINO_PIN_10_PWM_CHAN, .pin = 10 },
94 #ifdef ARDUINO_PIN_11_PWM_DEV
95 { .dev = ARDUINO_PIN_11_PWM_DEV, .chan = ARDUINO_PIN_11_PWM_CHAN, .pin = 11 },
97 #ifdef ARDUINO_PIN_12_PWM_DEV
98 { .dev = ARDUINO_PIN_12_PWM_DEV, .chan = ARDUINO_PIN_12_PWM_CHAN, .pin = 12 },
100 #ifdef ARDUINO_PIN_13_PWM_DEV
101 { .dev = ARDUINO_PIN_13_PWM_DEV, .chan = ARDUINO_PIN_13_PWM_CHAN, .pin = 13 },
103 #ifdef ARDUINO_PIN_14_PWM_DEV
104 { .dev = ARDUINO_PIN_14_PWM_DEV, .chan = ARDUINO_PIN_14_PWM_CHAN, .pin = 14 },
106 #ifdef ARDUINO_PIN_15_PWM_DEV
107 { .dev = ARDUINO_PIN_15_PWM_DEV, .chan = ARDUINO_PIN_15_PWM_CHAN, .pin = 15 },
109 #ifdef ARDUINO_PIN_16_PWM_DEV
110 { .dev = ARDUINO_PIN_16_PWM_DEV, .chan = ARDUINO_PIN_16_PWM_CHAN, .pin = 16 },
112 #ifdef ARDUINO_PIN_17_PWM_DEV
113 { .dev = ARDUINO_PIN_17_PWM_DEV, .chan = ARDUINO_PIN_17_PWM_CHAN, .pin = 17 },
115 #ifdef ARDUINO_PIN_18_PWM_DEV
116 { .dev = ARDUINO_PIN_18_PWM_DEV, .chan = ARDUINO_PIN_18_PWM_CHAN, .pin = 18 },
118 #ifdef ARDUINO_PIN_19_PWM_DEV
119 { .dev = ARDUINO_PIN_19_PWM_DEV, .chan = ARDUINO_PIN_19_PWM_CHAN, .pin = 19 },
121 #ifdef ARDUINO_PIN_20_PWM_DEV
122 { .dev = ARDUINO_PIN_20_PWM_DEV, .chan = ARDUINO_PIN_20_PWM_CHAN, .pin = 20 },
124 #ifdef ARDUINO_PIN_21_PWM_DEV
125 { .dev = ARDUINO_PIN_21_PWM_DEV, .chan = ARDUINO_PIN_21_PWM_CHAN, .pin = 21 },
127 #ifdef ARDUINO_PIN_22_PWM_DEV
128 { .dev = ARDUINO_PIN_22_PWM_DEV, .chan = ARDUINO_PIN_22_PWM_CHAN, .pin = 22 },
130 #ifdef ARDUINO_PIN_23_PWM_DEV
131 { .dev = ARDUINO_PIN_23_PWM_DEV, .chan = ARDUINO_PIN_23_PWM_CHAN, .pin = 23 },
133 #ifdef ARDUINO_PIN_24_PWM_DEV
134 { .dev = ARDUINO_PIN_24_PWM_DEV, .chan = ARDUINO_PIN_24_PWM_CHAN, .pin = 24 },
136 #ifdef ARDUINO_PIN_25_PWM_DEV
137 { .dev = ARDUINO_PIN_25_PWM_DEV, .chan = ARDUINO_PIN_25_PWM_CHAN, .pin = 25 },
139 #ifdef ARDUINO_PIN_26_PWM_DEV
140 { .dev = ARDUINO_PIN_26_PWM_DEV, .chan = ARDUINO_PIN_26_PWM_CHAN, .pin = 26 },
142 #ifdef ARDUINO_PIN_27_PWM_DEV
143 { .dev = ARDUINO_PIN_27_PWM_DEV, .chan = ARDUINO_PIN_27_PWM_CHAN, .pin = 27 },
145 #ifdef ARDUINO_PIN_28_PWM_DEV
146 { .dev = ARDUINO_PIN_28_PWM_DEV, .chan = ARDUINO_PIN_28_PWM_CHAN, .pin = 28 },
148 #ifdef ARDUINO_PIN_29_PWM_DEV
149 { .dev = ARDUINO_PIN_29_PWM_DEV, .chan = ARDUINO_PIN_29_PWM_CHAN, .pin = 29 },
151 #ifdef ARDUINO_PIN_30_PWM_DEV
152 { .dev = ARDUINO_PIN_30_PWM_DEV, .chan = ARDUINO_PIN_30_PWM_CHAN, .pin = 30 },
154 #ifdef ARDUINO_PIN_31_PWM_DEV
155 { .dev = ARDUINO_PIN_31_PWM_DEV, .chan = ARDUINO_PIN_31_PWM_CHAN, .pin = 31 },
static const arduino_pwm_t arduino_pwm_list[]
List of PWM GPIO mappings.
Low-level PWM peripheral driver interface definitions.