aboutsummaryrefslogtreecommitdiffstats
path: root/src/Kconfig
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-06-08 19:32:06 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-06-13 23:18:59 -0400
commit71947d6beafe118259ca2805dbb21fac5ab3b165 (patch)
tree27e5aece7a81832d6512f0eefe6925dccf5e0ed4 /src/Kconfig
parent220a1e419760e4854f5b4ad9565f1c42e75f7bc2 (diff)
downloadkutter-71947d6beafe118259ca2805dbb21fac5ab3b165.tar.gz
kutter-71947d6beafe118259ca2805dbb21fac5ab3b165.tar.xz
kutter-71947d6beafe118259ca2805dbb21fac5ab3b165.zip
gpiocmds: Add Kconfig option to allow boards to disable ADC commands
Some boards may not support the ADC hardware. Update the build so that those commands do not need to be compiled if they are not available. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/Kconfig')
-rw-r--r--src/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Kconfig b/src/Kconfig
index e7460cce..ac9322ee 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -13,6 +13,12 @@ endchoice
source "src/avr/Kconfig"
source "src/simulator/Kconfig"
+# The HAVE_GPIO_x options allow boards to disable support for some
+# commands if the hardware does not support the feature.
+config HAVE_GPIO_ADC
+ bool
+ default n
+
config INLINE_STEPPER_HACK
# Enables gcc to inline stepper_event() into the main timer irq handler
bool