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

Merge pull request #21041 from maribu/boards/adafruit-metro-m4/improvements

boards/adafruit-metro-m4-express: Minor improvements
This commit is contained in:
Marian Buschsieweke 2024-11-26 15:48:00 +00:00 committed by GitHub
commit 1f624ad883
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 23 additions and 1 deletions

View File

@ -19,3 +19,5 @@ FEATURES_PROVIDED += arduino_pins
FEATURES_PROVIDED += arduino_shield_isp FEATURES_PROVIDED += arduino_shield_isp
FEATURES_PROVIDED += arduino_shield_uno FEATURES_PROVIDED += arduino_shield_uno
FEATURES_PROVIDED += arduino_spi FEATURES_PROVIDED += arduino_spi
FEATURES_PROVIDED += arduino_i2c
FEATURES_PROVIDED += arduino_uart

View File

@ -1,5 +1,7 @@
CFLAGS += -DBOOTLOADER_UF2 CFLAGS += -DBOOTLOADER_UF2
PROG_TTY_BOARD_FILTER := --vendor 'Adafruit Industries' --model 'Metro M4 Express'
# Include all definitions for flashing with bossa other USB # Include all definitions for flashing with bossa other USB
include $(RIOTBOARD)/common/samdx1-arduino-bootloader/Makefile.include include $(RIOTBOARD)/common/samdx1-arduino-bootloader/Makefile.include
# Include handling of serial and non-bossa programmers (if selected by user) # Include handling of serial and non-bossa programmers (if selected by user)

View File

@ -110,6 +110,24 @@ extern "C" {
#endif #endif
/** @} */ /** @} */
/**
* @name Arduino's UART devices
* @{
*/
#define ARDUINO_UART_D0D1 UART_DEV(0)
/** @} */
/**
* @name Arduino's I2C buses
* @{
*/
/**
* @brief The first I2C bus is where shields for the Arduino UNO/Mega expect
* it
*/
#define ARDUINO_I2C_UNO I2C_DEV(0)
/** @} */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif