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.

Author
Christian Amsüss chrys.nosp@m.n@fs.nosp@m.fe.or.nosp@m.g

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.

#define ARDUINO_PIN_0   GPIO_PIN(0, 11)
 Mapping of MCU pins to Arduino pins.
 
#define ARDUINO_PIN_1   GPIO_PIN(0, 12)
 
#define ARDUINO_PIN_2   GPIO_PIN(0, 13)
 
#define ARDUINO_PIN_3   GPIO_PIN(0, 14)
 
#define ARDUINO_PIN_4   GPIO_PIN(0, 15)
 
#define ARDUINO_PIN_5   GPIO_PIN(0, 16)
 
#define ARDUINO_PIN_6   GPIO_PIN(0, 17)
 
#define ARDUINO_PIN_7   GPIO_PIN(0, 18)
 
#define ARDUINO_PIN_8   GPIO_PIN(0, 19)
 
#define ARDUINO_PIN_9   GPIO_PIN(0, 20)
 
#define ARDUINO_PIN_10   GPIO_PIN(0, 22)
 
#define ARDUINO_PIN_11   GPIO_PIN(0, 23)
 
#define ARDUINO_PIN_12   GPIO_PIN(0, 24)
 
#define ARDUINO_PIN_13   GPIO_PIN(0, 25)
 
#define ARDUINO_PIN_14   GPIO_PIN(0, 0)
 
#define ARDUINO_PIN_15   GPIO_PIN(0, 1)
 
#define ARDUINO_PIN_16   GPIO_PIN(0, 21)
 
#define ARDUINO_PIN_17   GPIO_PIN(0, 5)
 
#define ARDUINO_PIN_18   GPIO_PIN(0, 6)
 
#define ARDUINO_PIN_19   GPIO_PIN(0, 7)
 
#define ARDUINO_PIN_20   GPIO_PIN(0, 8)
 
#define ARDUINO_PIN_21   GPIO_PIN(0, 9)
 
#define ARDUINO_PIN_22   GPIO_PIN(0, 10)
 
#define ARDUINO_PIN_LAST   22
 

Aliases for analog pins

#define ARDUINO_PIN_A0   GPIO_PIN(0, 3)
 
#define ARDUINO_PIN_A1   GPIO_PIN(0, 4)
 
#define ARDUINO_PIN_A2   GPIO_PIN(0, 28)
 
#define ARDUINO_PIN_A3   GPIO_PIN(0, 29)
 
#define ARDUINO_PIN_A4   GPIO_PIN(0, 30)
 
#define ARDUINO_PIN_A5   GPIO_PIN(0, 31)
 

Arduino's I2C buses

#define ARDUINO_I2C_UNO   I2C_DEV(0)
 The only configured I2C.
 

Arduino's SPI buses

#define ARDUINO_SPI_D11D12D13   SPI_DEV(0)
 D11..13 is 0.23..0.25, which is called SPI_DEV(0) here.
 

Macro Definition Documentation

◆ ARDUINO_I2C_UNO

#define ARDUINO_I2C_UNO   I2C_DEV(0)

The only configured I2C.

Definition at line 96 of file arduino_iomap.h.

◆ ARDUINO_PIN_0

#define ARDUINO_PIN_0   GPIO_PIN(0, 11)

Mapping of MCU pins to Arduino pins.

For reference, see schematic file nRF52 Development Kit - Hardware files 3_0_0/PCA10040-nRF52832 Development Board 3_0_0/Schematic_Layout pdf files/PCA10040_Schematic_And_PCB.pdf in nrf52-development-kit---hardware-files-3_0_0.zip from https://www.nordicsemi.com/Products/Development-hardware/nRF52-DK/Download?lang=en#infotabs, page 2 areas CD123

Definition at line 42 of file arduino_iomap.h.

◆ ARDUINO_PIN_1

#define ARDUINO_PIN_1   GPIO_PIN(0, 12)

Definition at line 43 of file arduino_iomap.h.

◆ ARDUINO_PIN_10

#define ARDUINO_PIN_10   GPIO_PIN(0, 22)

Definition at line 56 of file arduino_iomap.h.

◆ ARDUINO_PIN_11

#define ARDUINO_PIN_11   GPIO_PIN(0, 23)

Definition at line 57 of file arduino_iomap.h.

◆ ARDUINO_PIN_12

#define ARDUINO_PIN_12   GPIO_PIN(0, 24)

Definition at line 58 of file arduino_iomap.h.

◆ ARDUINO_PIN_13

#define ARDUINO_PIN_13   GPIO_PIN(0, 25)

Definition at line 59 of file arduino_iomap.h.

◆ ARDUINO_PIN_14

#define ARDUINO_PIN_14   GPIO_PIN(0, 0)

Definition at line 60 of file arduino_iomap.h.

◆ ARDUINO_PIN_15

#define ARDUINO_PIN_15   GPIO_PIN(0, 1)

Definition at line 61 of file arduino_iomap.h.

◆ ARDUINO_PIN_16

#define ARDUINO_PIN_16   GPIO_PIN(0, 21)

Definition at line 63 of file arduino_iomap.h.

◆ ARDUINO_PIN_17

#define ARDUINO_PIN_17   GPIO_PIN(0, 5)

Definition at line 66 of file arduino_iomap.h.

◆ ARDUINO_PIN_18

#define ARDUINO_PIN_18   GPIO_PIN(0, 6)

Definition at line 67 of file arduino_iomap.h.

◆ ARDUINO_PIN_19

#define ARDUINO_PIN_19   GPIO_PIN(0, 7)

Definition at line 68 of file arduino_iomap.h.

◆ ARDUINO_PIN_2

#define ARDUINO_PIN_2   GPIO_PIN(0, 13)

Definition at line 45 of file arduino_iomap.h.

◆ ARDUINO_PIN_20

#define ARDUINO_PIN_20   GPIO_PIN(0, 8)

Definition at line 69 of file arduino_iomap.h.

◆ ARDUINO_PIN_21

#define ARDUINO_PIN_21   GPIO_PIN(0, 9)

Definition at line 71 of file arduino_iomap.h.

◆ ARDUINO_PIN_22

#define ARDUINO_PIN_22   GPIO_PIN(0, 10)

Definition at line 72 of file arduino_iomap.h.

◆ ARDUINO_PIN_3

#define ARDUINO_PIN_3   GPIO_PIN(0, 14)

Definition at line 46 of file arduino_iomap.h.

◆ ARDUINO_PIN_4

#define ARDUINO_PIN_4   GPIO_PIN(0, 15)

Definition at line 47 of file arduino_iomap.h.

◆ ARDUINO_PIN_5

#define ARDUINO_PIN_5   GPIO_PIN(0, 16)

Definition at line 48 of file arduino_iomap.h.

◆ ARDUINO_PIN_6

#define ARDUINO_PIN_6   GPIO_PIN(0, 17)

Definition at line 51 of file arduino_iomap.h.

◆ ARDUINO_PIN_7

#define ARDUINO_PIN_7   GPIO_PIN(0, 18)

Definition at line 52 of file arduino_iomap.h.

◆ ARDUINO_PIN_8

#define ARDUINO_PIN_8   GPIO_PIN(0, 19)

Definition at line 53 of file arduino_iomap.h.

◆ ARDUINO_PIN_9

#define ARDUINO_PIN_9   GPIO_PIN(0, 20)

Definition at line 54 of file arduino_iomap.h.

◆ ARDUINO_PIN_A0

#define ARDUINO_PIN_A0   GPIO_PIN(0, 3)

Definition at line 81 of file arduino_iomap.h.

◆ ARDUINO_PIN_A1

#define ARDUINO_PIN_A1   GPIO_PIN(0, 4)

Definition at line 82 of file arduino_iomap.h.

◆ ARDUINO_PIN_A2

#define ARDUINO_PIN_A2   GPIO_PIN(0, 28)

Definition at line 83 of file arduino_iomap.h.

◆ ARDUINO_PIN_A3

#define ARDUINO_PIN_A3   GPIO_PIN(0, 29)

Definition at line 84 of file arduino_iomap.h.

◆ ARDUINO_PIN_A4

#define ARDUINO_PIN_A4   GPIO_PIN(0, 30)

Definition at line 85 of file arduino_iomap.h.

◆ ARDUINO_PIN_A5

#define ARDUINO_PIN_A5   GPIO_PIN(0, 31)

Definition at line 86 of file arduino_iomap.h.

◆ ARDUINO_PIN_LAST

#define ARDUINO_PIN_LAST   22

Definition at line 74 of file arduino_iomap.h.

◆ ARDUINO_SPI_D11D12D13

#define ARDUINO_SPI_D11D12D13   SPI_DEV(0)

D11..13 is 0.23..0.25, which is called SPI_DEV(0) here.

Definition at line 106 of file arduino_iomap.h.