arduino_board.h File Reference

Configuration of the Arduino API for Arduino Atmega boards. More...

Detailed Description

Configuration of the Arduino API for Arduino Atmega boards.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Laurent Navet laure.nosp@m.nt.n.nosp@m.avet@.nosp@m.gmai.nosp@m.l.com
Thomas Perrot thoma.nosp@m.s.pe.nosp@m.rrot@.nosp@m.tupi.nosp@m..fr

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   (13)
 The on-board LED is connected to pin 13 on this board.
 
#define ARDUINO_PWM_FREQU   (490U)
 PWM frequency.
 
static const gpio_t arduino_pinmap []
 Look-up table for the Arduino's digital pins.
 
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,
ARDUINO_A1,
ARDUINO_A2,
ARDUINO_A3,
ARDUINO_A4,
ARDUINO_A5,
ARDUINO_A6,
ARDUINO_A7,
}

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

Definition at line 124 of file arduino_board.h.

◆ arduino_pwm_list

const arduino_pwm_t arduino_pwm_list[]
static
Initial value:
= {
{ .pin = 6, .dev = PWM_DEV(0), .chan = 0 },
{ .pin = 5, .dev = PWM_DEV(0), .chan = 1 },
{ .pin = 11, .dev = PWM_DEV(1), .chan = 0 },
{ .pin = 3, .dev = PWM_DEV(1), .chan = 1 },
}

List of PWM GPIO mappings.

Definition at line 153 of file arduino_board.h.

PWM_DEV
#define PWM_DEV(x)
Default PWM access macro.
Definition: pwm.h:78