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

Mapping from MCU pins to Arduino pins for Arduino Atmega boards. More...

Detailed Description

Mapping from MCU pins to Arduino pins for Arduino Atmega boards.

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

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Daniel Nordahl norda.nosp@m.hl.d.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
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_iomap.h.

#include "periph/adc.h"
#include "periph/gpio.h"
#include "periph/i2c.h"
#include "periph/pwm.h"
#include "periph/spi.h"
#include "periph/uart.h"
#include "periph_conf.h"
+ Include dependency graph for arduino_iomap.h:

Go to the source code of this file.

Arduino's UART devices

#define ARDUINO_UART_D0D1   UART_DEV(0)
 

Arduino's SPI buses

#define ARDUINO_SPI_ISP   SPI_DEV(0)
 The only hardware SPI is connected to the ISP header.
 

Arduino's I2C buses

#define ARDUINO_I2C_UNO   I2C_DEV(0)
 The only hardware I2C on ATmegas.
 

Mapping of Arduino pins to RIOT PWM dev and channel pairs

#define ARDUINO_PWM_FREQU   (490U)
 PWM frequency.
 

Macro Definition Documentation

◆ ARDUINO_I2C_UNO

#define ARDUINO_I2C_UNO   I2C_DEV(0)

The only hardware I2C on ATmegas.

Definition at line 67 of file arduino_iomap.h.

◆ ARDUINO_PWM_FREQU

#define ARDUINO_PWM_FREQU   (490U)

PWM frequency.

Definition at line 294 of file arduino_iomap.h.

◆ ARDUINO_SPI_ISP

#define ARDUINO_SPI_ISP   SPI_DEV(0)

The only hardware SPI is connected to the ISP header.

Definition at line 56 of file arduino_iomap.h.

◆ ARDUINO_UART_D0D1

#define ARDUINO_UART_D0D1   UART_DEV(0)

Definition at line 46 of file arduino_iomap.h.