From d998d4548975fadb002008950507900402dd9b36 Mon Sep 17 00:00:00 2001 From: Tim Broenink Date: Mon, 22 Feb 2021 15:39:52 +0000 Subject: [PATCH] boards/nrf52840dongle: Add spi feature and default pins The chip supports spi on most pins. The default pins are in a bit of a wierd location, but accessible. --- boards/nrf52840dongle/Kconfig | 1 + boards/nrf52840dongle/Makefile.features | 1 + boards/nrf52840dongle/include/periph_conf.h | 1 + 3 files changed, 3 insertions(+) diff --git a/boards/nrf52840dongle/Kconfig b/boards/nrf52840dongle/Kconfig index 4bc6cae0ce..a1252a996f 100644 --- a/boards/nrf52840dongle/Kconfig +++ b/boards/nrf52840dongle/Kconfig @@ -14,6 +14,7 @@ config BOARD_NRF52840DONGLE select CPU_MODEL_NRF52840XXAA select HAS_PERIPH_PWM select HAS_PERIPH_UART + select HAS_PERIPH_SPI select HAS_PERIPH_USBDEV select HAS_HIGHLEVEL_STDIO select HAS_VDD_LC_FILTER_REG0 diff --git a/boards/nrf52840dongle/Makefile.features b/boards/nrf52840dongle/Makefile.features index 64d19406c7..22f0a1bed4 100644 --- a/boards/nrf52840dongle/Makefile.features +++ b/boards/nrf52840dongle/Makefile.features @@ -4,6 +4,7 @@ CPU_MODEL = nrf52840xxaa FEATURES_PROVIDED += periph_pwm FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev +FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += vdd_lc_filter_reg0 FEATURES_PROVIDED += vdd_lc_filter_reg1 diff --git a/boards/nrf52840dongle/include/periph_conf.h b/boards/nrf52840dongle/include/periph_conf.h index 3840c52ce1..2289bafc79 100644 --- a/boards/nrf52840dongle/include/periph_conf.h +++ b/boards/nrf52840dongle/include/periph_conf.h @@ -24,6 +24,7 @@ #include "cfg_clock_32_1.h" #include "cfg_rtt_default.h" #include "cfg_timer_default.h" +#include "cfg_spi_default.h" #ifdef __cplusplus extern "C" {