aboutsummaryrefslogtreecommitdiffstats
path: root/src/Kconfig
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-07-19 23:59:35 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-07-20 10:44:31 -0400
commit4a6254fac3ae27d5c17a7d0acb94a263aeed4da1 (patch)
tree03600085489176409f34d7f9e1ad7d51b18ec62d /src/Kconfig
parent649d26e093497991ebc1a89f4a5cfeb29d4602d4 (diff)
downloadkutter-4a6254fac3ae27d5c17a7d0acb94a263aeed4da1.tar.gz
kutter-4a6254fac3ae27d5c17a7d0acb94a263aeed4da1.tar.xz
kutter-4a6254fac3ae27d5c17a7d0acb94a263aeed4da1.zip
build: Allow boards to disable digital input/output support
Allow the micro-controller code to be built without support for regular gpio pins. In this case, the code for endstops, steppers, and gpiocmds will be disabled. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/Kconfig')
-rw-r--r--src/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Kconfig b/src/Kconfig
index 2d013c23..5515bdb5 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -21,6 +21,9 @@ 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
+ bool
+ default n
config HAVE_GPIO_ADC
bool
default n
@@ -41,4 +44,5 @@ config NO_UNSTEP_DELAY
config INLINE_STEPPER_HACK
# Enables gcc to inline stepper_event() into the main timer irq handler
bool
+ depends on HAVE_GPIO
default y