nes-proj/examples/galileo/Makefile
Ricardo de Almeida Gonzaga 61e06c632a galileo: Add GPIO input example
This patch introduces an example application to demonstrate how to use
GPIO driver APIs to manipulate input pins.

The application uses default galileo pinmux initialization and sets the
GPIO 5 (IO2) as output pin and GPIO 6 (IO3) as input. It toggles the
output pin state at every half second and checks the value on input pin.
2015-12-21 08:06:14 -02:00

19 lines
419 B
Makefile

TARGET=galileo
KNOWN_EXAMPLES = gpio-input gpio-output i2c-LSM9DS0
ifneq ($(filter $(EXAMPLE),$(KNOWN_EXAMPLES)),)
CONTIKI_PROJECT = $(EXAMPLE)
else
CONTIKI_PROJECT = help
endif
all: $(CONTIKI_PROJECT)
CONTIKI = ../..
include $(CONTIKI)/Makefile.include
help:
@echo -e "\nSet the variable EXAMPLE to one of the following Galileo-specific examples:"
@for EXAMPLE in $(KNOWN_EXAMPLES); do echo $$EXAMPLE; done