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:
parent
b209fdd76c
commit
4f0f1be1d2
@ -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
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -56,7 +56,7 @@ extern "C" {
|
||||
/**
|
||||
* @brief The only configured I2C
|
||||
*/
|
||||
#define ARDUINO_I2C0 I2C_DEV(0)
|
||||
#define ARDUINO_I2C_UNO I2C_DEV(0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user