Go to the documentation of this file.
22 #ifndef ARDUINO_BOARD_H
23 #define ARDUINO_BOARD_H
35 #define ARDUINO_LED (13)
61 #if defined(CPU_ATMEGA2560) || defined(CPU_ATMEGA32U4)
75 #if defined(CPU_ATMEGA2560) || defined(CPU_ATMEGA32U4)
133 #ifdef CPU_ATMEGA2560
148 #define ARDUINO_PWM_FREQU (490U)
154 #if defined(CPU_ATMEGA2560)
155 { .pin = 13, .dev =
PWM_DEV(0), .chan = 0 },
156 { .pin = 4, .dev =
PWM_DEV(0), .chan = 1 },
157 #elif defined(CPU_ATMEGA32U4)
158 { .pin = 11, .dev =
PWM_DEV(0), .chan = 0 },
159 { .pin = 3, .dev =
PWM_DEV(0), .chan = 1 },
161 { .pin = 6, .dev =
PWM_DEV(0), .chan = 0 },
162 { .pin = 5, .dev =
PWM_DEV(0), .chan = 1 },
164 #if defined(CPU_ATMEGA2560)
165 { .pin = 10, .dev =
PWM_DEV(1), .chan = 0 },
166 { .pin = 9, .dev =
PWM_DEV(1), .chan = 1 },
168 { .pin = 11, .dev =
PWM_DEV(1), .chan = 0 },
169 { .pin = 3, .dev =
PWM_DEV(1), .chan = 1 },
Mapping from MCU pins to Arduino pins for Arduino Atmega boards.
unsigned int adc_t
Define default ADC type identifier.
#define PWM_DEV(x)
Default PWM access macro.
static const adc_t arduino_analog_map[]
Look-up table for the Arduino's analog pins.
static const arduino_pwm_t arduino_pwm_list[]
List of PWM GPIO mappings.
Low-level PWM peripheral driver interface definitions.
static const gpio_t arduino_pinmap[]
Look-up table for the Arduino's digital pins.