From b0a46c2eba99aea39bf966319230e37b2d265983 Mon Sep 17 00:00:00 2001 From: chrysn Date: Tue, 23 Jan 2024 00:39:03 +0100 Subject: [PATCH] boards/nrf52dk arduino: Declare SPI (side SPI) support --- boards/nrf52dk/Makefile.features | 1 + boards/nrf52dk/include/arduino_iomap.h | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/boards/nrf52dk/Makefile.features b/boards/nrf52dk/Makefile.features index 1bfb0157e6..823871f47f 100644 --- a/boards/nrf52dk/Makefile.features +++ b/boards/nrf52dk/Makefile.features @@ -1,6 +1,7 @@ CPU_MODEL = nrf52832xxaa FEATURES_PROVIDED += arduino_i2c +FEATURES_PROVIDED += arduino_spi FEATURES_PROVIDED += arduino_pins FEATURES_PROVIDED += arduino_shield_uno diff --git a/boards/nrf52dk/include/arduino_iomap.h b/boards/nrf52dk/include/arduino_iomap.h index f36753eaeb..77c9e27047 100644 --- a/boards/nrf52dk/include/arduino_iomap.h +++ b/boards/nrf52dk/include/arduino_iomap.h @@ -96,6 +96,15 @@ extern "C" { #define ARDUINO_I2C_UNO I2C_DEV(0) /** @} */ +/** + * @name Arduino's SPI buses + * @{ + */ +/** + * @brief D11..13 is 0.23..0.25, which is called SPI_DEV(0) here + */ +#define ARDUINO_SPI_D11D12D13 SPI_DEV(0) +/** @} */ #ifdef __cplusplus }