mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
77327181e0
This patch introduces an example application to demonstrate how to use GPIO driver APIs to manipulate interrupt pins. The application uses default galileo pinmux initialization and sets the GPIO 5 (IO2) as output pin and GPIO 6 (IO3) as interrupt. It toggles the output pin stat at every half second in order to emulate an interrupt. This triggers an interrupt and the application callback is called.
19 lines
434 B
Makefile
19 lines
434 B
Makefile
TARGET=galileo
|
|
|
|
KNOWN_EXAMPLES = gpio-input gpio-output gpio-interrupt 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
|