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>
This commit is contained in:
Kevin O'Connor
2017-07-19 23:59:35 -04:00
parent 649d26e093
commit 4a6254fac3
6 changed files with 17 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
# Main code build rules
src-y += sched.c command.c stepper.c basecmd.c debugcmds.c gpiocmds.c endstop.c
src-y += sched.c command.c basecmd.c debugcmds.c
src-$(CONFIG_HAVE_GPIO) += gpiocmds.c stepper.c endstop.c
src-$(CONFIG_HAVE_GPIO_ADC) += adccmds.c
src-$(CONFIG_HAVE_GPIO_SPI) += spicmds.c
src-$(CONFIG_HAVE_GPIO_HARD_PWM) += pwmcmds.c