mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
61e06c632a
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.
19 lines
419 B
Makefile
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
|