diff --git a/boards/common/arduino-atmega/include/arduino_iomap.h b/boards/common/arduino-atmega/include/arduino_iomap.h index 74eec32453..e7b143357d 100644 --- a/boards/common/arduino-atmega/include/arduino_iomap.h +++ b/boards/common/arduino-atmega/include/arduino_iomap.h @@ -63,7 +63,11 @@ extern "C" { /** * @brief The only hardware I2C on ATmegas */ -#define ARDUINO_I2C0 I2C_DEV(0) +#ifndef BOARD_ARDUINO_NANO +#define ARDUINO_I2C_UNO I2C_DEV(0) +#else +#define ARDUINO_I2C_NANO I2C_DEV(0) +#endif /** @} */ /** diff --git a/boards/common/arduino-due/include/arduino_iomap.h b/boards/common/arduino-due/include/arduino_iomap.h index ac728680ba..0c14f6b96a 100644 --- a/boards/common/arduino-due/include/arduino_iomap.h +++ b/boards/common/arduino-due/include/arduino_iomap.h @@ -56,7 +56,7 @@ extern "C" { /** * @brief The only configured I2C */ -#define ARDUINO_I2C0 I2C_DEV(0) +#define ARDUINO_I2C_UNO I2C_DEV(0) /** @} */ /** diff --git a/makefiles/pseudomodules.inc.mk b/makefiles/pseudomodules.inc.mk index 8d0ecdb504..26a45f6e6e 100644 --- a/makefiles/pseudomodules.inc.mk +++ b/makefiles/pseudomodules.inc.mk @@ -33,6 +33,8 @@ PSEUDOMODULES += base64url ## be advertised in any other capacity, e.g. through @ref sys_auto_init_saul). PSEUDOMODULES += board_software_reset +PSEUDOMODULES += arduino_pwm +PSEUDOMODULES += arduino_serial_stdio PSEUDOMODULES += can_mbox PSEUDOMODULES += can_pm PSEUDOMODULES += can_raw diff --git a/sys/arduino/Makefile.include b/sys/arduino/Makefile.include index 4590b166d6..10a90bb5f1 100644 --- a/sys/arduino/Makefile.include +++ b/sys/arduino/Makefile.include @@ -19,6 +19,3 @@ endif # include the Arduino headers INCLUDES += -I$(RIOTBASE)/sys/arduino/include - -PSEUDOMODULES += arduino_pwm -PSEUDOMODULES += arduino_serial_stdio