diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-06-08 19:32:06 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-06-13 23:18:59 -0400 |
commit | 71947d6beafe118259ca2805dbb21fac5ab3b165 (patch) | |
tree | 27e5aece7a81832d6512f0eefe6925dccf5e0ed4 /src/Kconfig | |
parent | 220a1e419760e4854f5b4ad9565f1c42e75f7bc2 (diff) | |
download | kutter-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/Kconfig | 6 |
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 |