b82d92e373
This patch adds an example for I2C callbacks that is very similar to the i2c-LSM9DS0 example except that it uses a PWM device that is built into the platform.
19 lines
448 B
Makefile
19 lines
448 B
Makefile
TARGET=galileo
|
|
|
|
KNOWN_EXAMPLES = gpio-input gpio-output gpio-interrupt i2c-LSM9DS0 i2c-callbacks
|
|
|
|
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
|