arduino_board.h File Reference

Board specific configuration for the Arduino API. More...

Detailed Description

Board specific configuration for the Arduino API.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file arduino_board.h.

#include "arduino_pinmap.h"
#include "periph/pwm.h"
+ Include dependency graph for arduino_board.h:

Go to the source code of this file.

#define ARDUINO_LED   (20)
 The on-board LED is connected to Arduino pin 20 on this board.
 
#define ARDUINO_PWM_FREQU   (15625U)
 PWM frequency.
 
static const gpio_t arduino_pinmap []
 Look-up table for the Arduino's digital pins. More...
 
static const adc_t arduino_analog_map []
 Look-up table for the Arduino's analog pins. More...
 
static const arduino_pwm_t arduino_pwm_list []
 List of PWM GPIO mappings. More...
 

Variable Documentation

◆ arduino_analog_map

const adc_t arduino_analog_map[]
static
Initial value:
= {
ARDUINO_A0,
}
#define ARDUINO_A1
ADC 1.
#define ARDUINO_A2
ADC 2.
#define ARDUINO_A3
ADC 3.
#define ARDUINO_A4
ADC 4.
#define ARDUINO_A5
ADC 5.

Look-up table for the Arduino's analog pins.

Definition at line 71 of file arduino_board.h.

◆ arduino_pinmap

const gpio_t arduino_pinmap[]
static
Initial value:
= {
ARDUINO_PIN_0,
ARDUINO_PIN_1,
ARDUINO_PIN_2,
ARDUINO_PIN_3,
ARDUINO_PIN_4,
ARDUINO_PIN_5,
ARDUINO_PIN_6,
ARDUINO_PIN_7,
ARDUINO_PIN_8,
ARDUINO_PIN_9,
ARDUINO_PIN_10,
ARDUINO_PIN_11,
ARDUINO_PIN_12,
ARDUINO_PIN_13,
ARDUINO_PIN_A0,
ARDUINO_PIN_A1,
ARDUINO_PIN_A2,
ARDUINO_PIN_A3,
ARDUINO_PIN_A4,
ARDUINO_PIN_A5,
}
#define ARDUINO_PIN_23
D23 (SPI MOSI)
#define ARDUINO_PIN_20
D20 (I2C SDA)
#define ARDUINO_PIN_21
D21 (I2C SCL)
#define ARDUINO_PIN_22
D22 (SPI MISO)

Look-up table for the Arduino's digital pins.

Definition at line 41 of file arduino_board.h.

◆ arduino_pwm_list

const arduino_pwm_t arduino_pwm_list[]
static
Initial value:
= {
{ .pin = 3, .dev = PWM_DEV(0), .chan = 0 },
{ .pin = 5, .dev = PWM_DEV(0), .chan = 1 },
{ .pin = 6, .dev = PWM_DEV(0), .chan = 2 },
{ .pin = 9, .dev = PWM_DEV(0), .chan = 3 },
{ .pin = 20, .dev = PWM_DEV(1), .chan = 0 },
{ .pin = 21, .dev = PWM_DEV(1), .chan = 1 },
{ .pin = 22, .dev = PWM_DEV(1), .chan = 2 },
{ .pin = 23, .dev = PWM_DEV(1), .chan = 3 },
}
#define PWM_DEV(x)
Default PWM access macro.
Definition: pwm.h:78

List of PWM GPIO mappings.

Definition at line 88 of file arduino_board.h.