1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards: Fix I2C Arduino mapping

The correct macro name is `ARDUINO_I2C_UNO` for Arduino UNO compatible
I2C bus location, or `ARDUINO_I2C_NANO` for Arduino Nano compatible
I2C bus location.
This commit is contained in:
Marian Buschsieweke 2023-06-27 21:39:41 +02:00
parent b209fdd76c
commit 4f0f1be1d2
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94
2 changed files with 6 additions and 2 deletions

View File

@ -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
/** @} */
/**

View File

@ -56,7 +56,7 @@ extern "C" {
/**
* @brief The only configured I2C
*/
#define ARDUINO_I2C0 I2C_DEV(0)
#define ARDUINO_I2C_UNO I2C_DEV(0)
/** @} */
/**