Loading...
Searching...
No Matches
arduino_iomap.h File Reference

Mapping from MCU pins to Arduino pins. More...

Detailed Description

Mapping from MCU pins to Arduino pins.

You can use the defines in this file for simplified interaction with the Arduino specific pin numbers.

Author
Sebastian Meiling s@mln.nosp@m.g.ne.nosp@m.t

Definition in file arduino_iomap.h.

#include "periph/gpio.h"
#include "periph/adc.h"
+ Include dependency graph for arduino_iomap.h:

Go to the source code of this file.

Mapping of MCU pins to Arduino pins

#define ARDUINO_PIN_0   GPIO_PIN(PORT_D, 12)
 
#define ARDUINO_PIN_1   GPIO_PIN(PORT_D, 13)
 
#define ARDUINO_PIN_2   GPIO_PIN(PORT_D, 14)
 
#define ARDUINO_PIN_3   GPIO_PIN(PORT_D, 15)
 
#define ARDUINO_PIN_4   GPIO_PIN(PORT_A, 12)
 
#define ARDUINO_PIN_5   GPIO_PIN(PORT_A, 15)
 
#define ARDUINO_PIN_6   GPIO_PIN(PORT_B, 1)
 
#define ARDUINO_PIN_7   GPIO_PIN(PORT_B, 2)
 
#define ARDUINO_PIN_LAST   7
 

Mapping of Arduino analog pins to RIOT ADC lines

#define ARDUINO_A0   ADC_LINE(0)
 
#define ARDUINO_A1   ADC_LINE(1)
 
#define ARDUINO_A2   ADC_LINE(2)
 
#define ARDUINO_A3   ADC_LINE(3)
 
#define ARDUINO_ANALOG_PIN_LAST   3
 

Macro Definition Documentation

◆ ARDUINO_A0

#define ARDUINO_A0   ADC_LINE(0)

Definition at line 52 of file arduino_iomap.h.

◆ ARDUINO_A1

#define ARDUINO_A1   ADC_LINE(1)

Definition at line 53 of file arduino_iomap.h.

◆ ARDUINO_A2

#define ARDUINO_A2   ADC_LINE(2)

Definition at line 54 of file arduino_iomap.h.

◆ ARDUINO_A3

#define ARDUINO_A3   ADC_LINE(3)

Definition at line 55 of file arduino_iomap.h.

◆ ARDUINO_ANALOG_PIN_LAST

#define ARDUINO_ANALOG_PIN_LAST   3

Definition at line 57 of file arduino_iomap.h.

◆ ARDUINO_PIN_0

#define ARDUINO_PIN_0   GPIO_PIN(PORT_D, 12)

Definition at line 36 of file arduino_iomap.h.

◆ ARDUINO_PIN_1

#define ARDUINO_PIN_1   GPIO_PIN(PORT_D, 13)

Definition at line 37 of file arduino_iomap.h.

◆ ARDUINO_PIN_2

#define ARDUINO_PIN_2   GPIO_PIN(PORT_D, 14)

Definition at line 38 of file arduino_iomap.h.

◆ ARDUINO_PIN_3

#define ARDUINO_PIN_3   GPIO_PIN(PORT_D, 15)

Definition at line 39 of file arduino_iomap.h.

◆ ARDUINO_PIN_4

#define ARDUINO_PIN_4   GPIO_PIN(PORT_A, 12)

Definition at line 40 of file arduino_iomap.h.

◆ ARDUINO_PIN_5

#define ARDUINO_PIN_5   GPIO_PIN(PORT_A, 15)

Definition at line 41 of file arduino_iomap.h.

◆ ARDUINO_PIN_6

#define ARDUINO_PIN_6   GPIO_PIN(PORT_B, 1)

Definition at line 42 of file arduino_iomap.h.

◆ ARDUINO_PIN_7

#define ARDUINO_PIN_7   GPIO_PIN(PORT_B, 2)

Definition at line 43 of file arduino_iomap.h.

◆ ARDUINO_PIN_LAST

#define ARDUINO_PIN_LAST   7

Definition at line 45 of file arduino_iomap.h.