From 0288997cc3eea0b252b748f8803171a0a4e986fc Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 19 Sep 2021 18:42:25 +0200 Subject: lora32u4ii: add spi driver --- src/arch/lora32u4ii/Makefile.inc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/arch/lora32u4ii/Makefile.inc') diff --git a/src/arch/lora32u4ii/Makefile.inc b/src/arch/lora32u4ii/Makefile.inc index 3aeefa8..f14bc8c 100644 --- a/src/arch/lora32u4ii/Makefile.inc +++ b/src/arch/lora32u4ii/Makefile.inc @@ -48,12 +48,20 @@ ifneq ($(findstring adc,${arch_drivers}), ) CONFIG_arch_lora32u4ii_driver_adc = y endif +ifneq ($(findstring spi,${arch_drivers}), ) + CONFIG_arch_lora32u4ii_driver_spi = y +endif + # Kconfig driver selection ifdef CONFIG_arch_lora32u4ii_driver_adc CXX_TARGETS += src/arch/lora32u4ii/driver/adc.cc endif +ifdef CONFIG_arch_lora32u4ii_driver_spi + CXX_TARGETS += src/arch/lora32u4ii/driver/spi.cc +endif + ifdef CONFIG_arch_lora32u4ii_driver_uptime COMMON_FLAGS += -DTIMER_S CXX_TARGETS += src/arch/lora32u4ii/driver/uptime.cc -- cgit v1.2.3