Mapping from MCU pins to Arduino pins. More...
Mapping from MCU pins to Arduino pins.
You can use the defines in this file for simplified interaction with the Arduino specific pin numbers.
Definition in file arduino_iomap.h.
#include "periph/adc.h"
#include "periph/gpio.h"
#include "periph/i2c.h"
#include "periph/spi.h"
#include "periph/uart.h"
Go to the source code of this file.
Arduino's default UART device | |
#define | ARDUINO_UART_D0D1 UART_DEV(0) |
Arduino's default SPI device | |
#define | ARDUINO_SPI_ISP SPI_DEV(0) |
SPI_DEV(0) is connected to the ISP header. | |
Arduino's I2C buses | |
#define | ARDUINO_I2C_UNO I2C_DEV(0) |
The only configured I2C. | |
Aliases for analog pins | |
#define | ARDUINO_PIN_A0 ARDUINO_PIN_54 |
#define | ARDUINO_PIN_A1 ARDUINO_PIN_55 |
#define | ARDUINO_PIN_A2 ARDUINO_PIN_56 |
#define | ARDUINO_PIN_A3 ARDUINO_PIN_57 |
#define | ARDUINO_PIN_A4 ARDUINO_PIN_58 |
#define | ARDUINO_PIN_A5 ARDUINO_PIN_59 |
#define | ARDUINO_PIN_A6 ARDUINO_PIN_60 |
#define | ARDUINO_PIN_A7 ARDUINO_PIN_61 |
#define | ARDUINO_PIN_A8 ARDUINO_PIN_62 |
#define | ARDUINO_PIN_A9 ARDUINO_PIN_63 |
#define | ARDUINO_PIN_A10 ARDUINO_PIN_64 |
#define | ARDUINO_PIN_A11 ARDUINO_PIN_65 |
#define | ARDUINO_PIN_DAC0 ARDUINO_PIN_66 |
#define | ARDUINO_PIN_DAC1 ARDUINO_PIN_67 |
Mapping of Arduino analog pins to RIOT ADC lines | |
#define | ARDUINO_A0 ADC_LINE(7) |
#define | ARDUINO_A1 ADC_LINE(6) |
#define | ARDUINO_A2 ADC_LINE(5) |
#define | ARDUINO_A3 ADC_LINE(4) |
#define | ARDUINO_A4 ADC_LINE(3) |
#define | ARDUINO_A5 ADC_LINE(2) |
#define | ARDUINO_A6 ADC_LINE(1) |
#define | ARDUINO_A7 ADC_LINE(0) |
#define | ARDUINO_A8 ADC_LINE(10) |
#define | ARDUINO_A9 ADC_LINE(11) |
#define | ARDUINO_A10 ADC_LINE(12) |
#define | ARDUINO_A11 ADC_LINE(13) |
#define | ARDUINO_ANALOG_PIN_LAST 11 |
Mapping of Arduino DAC pins to RIOT DAC lines | |
#define | ARDUINO_DAC0 DAC_LINE(0) |
#define | ARDUINO_DAC1 DAC_LINE(1) |
#define | ARDUINO_DAC_PIN_LAST 1 |
DAC1 is the last DAC pin. | |
#define ARDUINO_A0 ADC_LINE(7) |
Definition at line 173 of file arduino_iomap.h.
#define ARDUINO_A1 ADC_LINE(6) |
Definition at line 174 of file arduino_iomap.h.
#define ARDUINO_A10 ADC_LINE(12) |
Definition at line 183 of file arduino_iomap.h.
#define ARDUINO_A11 ADC_LINE(13) |
Definition at line 184 of file arduino_iomap.h.
#define ARDUINO_A2 ADC_LINE(5) |
Definition at line 175 of file arduino_iomap.h.
#define ARDUINO_A3 ADC_LINE(4) |
Definition at line 176 of file arduino_iomap.h.
#define ARDUINO_A4 ADC_LINE(3) |
Definition at line 177 of file arduino_iomap.h.
#define ARDUINO_A5 ADC_LINE(2) |
Definition at line 178 of file arduino_iomap.h.
#define ARDUINO_A6 ADC_LINE(1) |
Definition at line 179 of file arduino_iomap.h.
#define ARDUINO_A7 ADC_LINE(0) |
Definition at line 180 of file arduino_iomap.h.
#define ARDUINO_A8 ADC_LINE(10) |
Definition at line 181 of file arduino_iomap.h.
#define ARDUINO_A9 ADC_LINE(11) |
Definition at line 182 of file arduino_iomap.h.
#define ARDUINO_ANALOG_PIN_LAST 11 |
Definition at line 186 of file arduino_iomap.h.
#define ARDUINO_DAC0 DAC_LINE(0) |
Definition at line 193 of file arduino_iomap.h.
#define ARDUINO_DAC1 DAC_LINE(1) |
Definition at line 194 of file arduino_iomap.h.
#define ARDUINO_DAC_PIN_LAST 1 |
DAC1 is the last DAC pin.
Definition at line 196 of file arduino_iomap.h.
#define ARDUINO_I2C_UNO I2C_DEV(0) |
The only configured I2C.
Definition at line 59 of file arduino_iomap.h.
Definition at line 66 of file arduino_iomap.h.
Definition at line 67 of file arduino_iomap.h.
Definition at line 76 of file arduino_iomap.h.
Definition at line 77 of file arduino_iomap.h.
Definition at line 78 of file arduino_iomap.h.
Definition at line 79 of file arduino_iomap.h.
Definition at line 80 of file arduino_iomap.h.
Definition at line 81 of file arduino_iomap.h.
Definition at line 82 of file arduino_iomap.h.
Definition at line 83 of file arduino_iomap.h.
Definition at line 84 of file arduino_iomap.h.
Definition at line 85 of file arduino_iomap.h.
Definition at line 68 of file arduino_iomap.h.
Definition at line 86 of file arduino_iomap.h.
Definition at line 87 of file arduino_iomap.h.
Definition at line 88 of file arduino_iomap.h.
Definition at line 89 of file arduino_iomap.h.
Definition at line 90 of file arduino_iomap.h.
Definition at line 91 of file arduino_iomap.h.
Definition at line 92 of file arduino_iomap.h.
Definition at line 93 of file arduino_iomap.h.
Definition at line 94 of file arduino_iomap.h.
Definition at line 95 of file arduino_iomap.h.
Definition at line 69 of file arduino_iomap.h.
Definition at line 96 of file arduino_iomap.h.
Definition at line 97 of file arduino_iomap.h.
Definition at line 98 of file arduino_iomap.h.
Definition at line 99 of file arduino_iomap.h.
Definition at line 100 of file arduino_iomap.h.
Definition at line 101 of file arduino_iomap.h.
Definition at line 102 of file arduino_iomap.h.
Definition at line 103 of file arduino_iomap.h.
Definition at line 104 of file arduino_iomap.h.
Definition at line 105 of file arduino_iomap.h.
Definition at line 70 of file arduino_iomap.h.
Definition at line 106 of file arduino_iomap.h.
Definition at line 107 of file arduino_iomap.h.
Definition at line 108 of file arduino_iomap.h.
Definition at line 109 of file arduino_iomap.h.
Definition at line 110 of file arduino_iomap.h.
Definition at line 111 of file arduino_iomap.h.
Definition at line 112 of file arduino_iomap.h.
Definition at line 113 of file arduino_iomap.h.
Definition at line 114 of file arduino_iomap.h.
Definition at line 115 of file arduino_iomap.h.
Definition at line 71 of file arduino_iomap.h.
Definition at line 116 of file arduino_iomap.h.
Definition at line 117 of file arduino_iomap.h.
Definition at line 118 of file arduino_iomap.h.
Definition at line 119 of file arduino_iomap.h.
Definition at line 120 of file arduino_iomap.h.
Definition at line 121 of file arduino_iomap.h.
Definition at line 122 of file arduino_iomap.h.
Definition at line 123 of file arduino_iomap.h.
Definition at line 124 of file arduino_iomap.h.
Definition at line 125 of file arduino_iomap.h.
Definition at line 72 of file arduino_iomap.h.
Definition at line 126 of file arduino_iomap.h.
Definition at line 127 of file arduino_iomap.h.
Definition at line 128 of file arduino_iomap.h.
Definition at line 129 of file arduino_iomap.h.
Definition at line 130 of file arduino_iomap.h.
Definition at line 131 of file arduino_iomap.h.
Definition at line 132 of file arduino_iomap.h.
Definition at line 133 of file arduino_iomap.h.
Definition at line 134 of file arduino_iomap.h.
Definition at line 135 of file arduino_iomap.h.
Definition at line 73 of file arduino_iomap.h.
Definition at line 136 of file arduino_iomap.h.
Definition at line 137 of file arduino_iomap.h.
Definition at line 138 of file arduino_iomap.h.
Definition at line 139 of file arduino_iomap.h.
Definition at line 140 of file arduino_iomap.h.
Definition at line 141 of file arduino_iomap.h.
Definition at line 142 of file arduino_iomap.h.
Definition at line 143 of file arduino_iomap.h.
Definition at line 144 of file arduino_iomap.h.
Definition at line 74 of file arduino_iomap.h.
Definition at line 75 of file arduino_iomap.h.
#define ARDUINO_PIN_A0 ARDUINO_PIN_54 |
Definition at line 153 of file arduino_iomap.h.
#define ARDUINO_PIN_A1 ARDUINO_PIN_55 |
Definition at line 154 of file arduino_iomap.h.
#define ARDUINO_PIN_A10 ARDUINO_PIN_64 |
Definition at line 163 of file arduino_iomap.h.
#define ARDUINO_PIN_A11 ARDUINO_PIN_65 |
Definition at line 164 of file arduino_iomap.h.
#define ARDUINO_PIN_A2 ARDUINO_PIN_56 |
Definition at line 155 of file arduino_iomap.h.
#define ARDUINO_PIN_A3 ARDUINO_PIN_57 |
Definition at line 156 of file arduino_iomap.h.
#define ARDUINO_PIN_A4 ARDUINO_PIN_58 |
Definition at line 157 of file arduino_iomap.h.
#define ARDUINO_PIN_A5 ARDUINO_PIN_59 |
Definition at line 158 of file arduino_iomap.h.
#define ARDUINO_PIN_A6 ARDUINO_PIN_60 |
Definition at line 159 of file arduino_iomap.h.
#define ARDUINO_PIN_A7 ARDUINO_PIN_61 |
Definition at line 160 of file arduino_iomap.h.
#define ARDUINO_PIN_A8 ARDUINO_PIN_62 |
Definition at line 161 of file arduino_iomap.h.
#define ARDUINO_PIN_A9 ARDUINO_PIN_63 |
Definition at line 162 of file arduino_iomap.h.
#define ARDUINO_PIN_DAC0 ARDUINO_PIN_66 |
Definition at line 165 of file arduino_iomap.h.
#define ARDUINO_PIN_DAC1 ARDUINO_PIN_67 |
Definition at line 166 of file arduino_iomap.h.
#define ARDUINO_PIN_LAST 78 |
Definition at line 146 of file arduino_iomap.h.
#define ARDUINO_SPI_ISP SPI_DEV(0) |
SPI_DEV(0) is connected to the ISP header.
Definition at line 49 of file arduino_iomap.h.
#define ARDUINO_UART_D0D1 UART_DEV(0) |
Definition at line 39 of file arduino_iomap.h.