aboutsummaryrefslogtreecommitdiffstats
path: root/src/rp2040
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-04-09 12:23:28 -0400
committerKevin O'Connor <kevin@koconnor.net>2025-04-16 13:54:44 -0400
commit868760f5b1013843aff7390bb94adfb4cb3fe679 (patch)
tree55b8cc20abcb408e91e3a1648718f4a1266799e5 /src/rp2040
parentb0fa36e221959ad88b005fca856adede82427321 (diff)
downloadkutter-868760f5b1013843aff7390bb94adfb4cb3fe679.tar.gz
kutter-868760f5b1013843aff7390bb94adfb4cb3fe679.tar.xz
kutter-868760f5b1013843aff7390bb94adfb4cb3fe679.zip
Kconfig: Add new WANT_SPI option to reduce code size
Make it possible to not compile in support for SPI on chips with small flash sizes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/rp2040')
-rw-r--r--src/rp2040/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rp2040/Makefile b/src/rp2040/Makefile
index 3acda535..e9884f0e 100644
--- a/src/rp2040/Makefile
+++ b/src/rp2040/Makefile
@@ -29,7 +29,7 @@ src-$(CONFIG_USBCANBUS) += rp2040/can.c rp2040/chipid.c ../lib/can2040/can2040.c
src-$(CONFIG_USBCANBUS) += generic/canserial.c generic/usb_canbus.c
src-$(CONFIG_USBCANBUS) += ../lib/fast-hash/fasthash.c rp2040/usbserial.c
src-$(CONFIG_WANT_HARD_PWM) += rp2040/hard_pwm.c
-src-$(CONFIG_HAVE_GPIO_SPI) += rp2040/spi.c
+src-$(CONFIG_WANT_SPI) += rp2040/spi.c
src-$(CONFIG_HAVE_GPIO_I2C) += rp2040/i2c.c
# rp2040 stage2 building