cc51f89b31
This patch introduces an example application to demonstrate how to use GPIO driver APIs to manipulate output pins. The application sets the GPIO 4 pin as output pin and toggles its state at every half second.
17 lines
380 B
Makefile
17 lines
380 B
Makefile
KNOWN_EXAMPLES = gpio-output
|
|
|
|
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
|