aboutsummaryrefslogtreecommitdiffstats
path: root/src/avr
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-04-09 12:52:11 -0400
committerKevin O'Connor <kevin@koconnor.net>2025-04-16 13:54:44 -0400
commit8c67adc164d15d898b90fce6351190399f86d6f3 (patch)
tree74ba9ff80e4df242e5761d66c6dad0b98aee8c52 /src/avr
parent04e7eb20fd9b65addcbb4773fdb7b6be9dbf6195 (diff)
downloadkutter-8c67adc164d15d898b90fce6351190399f86d6f3.tar.gz
kutter-8c67adc164d15d898b90fce6351190399f86d6f3.tar.xz
kutter-8c67adc164d15d898b90fce6351190399f86d6f3.zip
Kconfig: Add new WANT_ADC option to reduce code size
Make it possible to not compile in support for ADC on chips with small flash sizes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/avr')
-rw-r--r--src/avr/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/avr/Makefile b/src/avr/Makefile
index f396f538..f667de3b 100644
--- a/src/avr/Makefile
+++ b/src/avr/Makefile
@@ -11,7 +11,7 @@ CFLAGS += $(CFLAGS-y) -mmcu=$(CONFIG_MCU)
# Add avr source files
src-y += avr/main.c avr/timer.c
src-$(CONFIG_HAVE_GPIO) += avr/gpio.c
-src-$(CONFIG_HAVE_GPIO_ADC) += avr/adc.c
+src-$(CONFIG_WANT_ADC) += avr/adc.c
src-$(CONFIG_WANT_SPI) += avr/spi.c
src-$(CONFIG_WANT_I2C) += avr/i2c.c
src-$(CONFIG_WANT_HARD_PWM) += avr/hard_pwm.c