Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boards/adafruit-metro-m4-express: Minor improvements #21041

Merged
merged 2 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions boards/adafruit-metro-m4-express/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ FEATURES_PROVIDED += arduino_pins
FEATURES_PROVIDED += arduino_shield_isp
FEATURES_PROVIDED += arduino_shield_uno
FEATURES_PROVIDED += arduino_spi
FEATURES_PROVIDED += arduino_i2c
FEATURES_PROVIDED += arduino_uart
2 changes: 2 additions & 0 deletions boards/adafruit-metro-m4-express/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
CFLAGS += -DBOOTLOADER_UF2

PROG_TTY_BOARD_FILTER := --vendor 'Adafruit Industries' --model 'Metro M4 Express'

# Include all definitions for flashing with bossa other USB
include $(RIOTBOARD)/common/samdx1-arduino-bootloader/Makefile.include
# Include handling of serial and non-bossa programmers (if selected by user)
Expand Down
20 changes: 19 additions & 1 deletion boards/adafruit-metro-m4-express/include/arduino_iomap.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,28 @@ extern "C" {
* SPI bus.
*/
#if !MODULE_PERIPH_UART
# define ARDUINO_SPI_D11D12D13 SPI_DEV(1)
# define ARDUINO_SPI_D11D12D13 SPI_DEV(1)
#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
}
#endif
Expand Down
Loading