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 },
186 #define F_CPU CLOCK_CORECLOCK
static const arduino_pwm_t arduino_pwm_list[]
List of PWM GPIO mappings.
static const adc_t arduino_analog_map[]
Look-up table for the Arduino's analog pins.
static const gpio_t arduino_pinmap[]
Look-up table for the Arduino's digital pins.
#define ARDUINO_PIN_23
D23 (SPI MOSI)
#define ARDUINO_PIN_14
D14 (A0)
#define ARDUINO_PIN_20
D20 (I2C SDA)
#define ARDUINO_PIN_19
D19 (A5)
#define ARDUINO_PIN_21
D21 (I2C SCL)
#define ARDUINO_PIN_16
D16 (A2)
#define ARDUINO_PIN_24
D24 (SPI SCK)
#define ARDUINO_PIN_22
D22 (SPI MISO)
#define ARDUINO_PIN_18
D18 (A4)
#define ARDUINO_PIN_17
D17 (A3)
#define ARDUINO_PIN_15
D15 (A1)
uint_fast8_t adc_t
Define default ADC type identifier.
#define PWM_DEV(x)
Default PWM access macro.
Low-level PWM peripheral driver interface definitions.
Mapping from MCU pins to Arduino pins for Waspmote Pro board.