Add support for Sensor Watch Pro (#412)
* Sensor Watch Pro board definition * Disable hot-plugging on SWCLK * Add rainbow test * Move interrupt mapping to board config * New color definition for Pro boards in makefile
This commit is contained in:
28
make.mk
28
make.mk
@@ -6,7 +6,19 @@ BUILD = ./build-sim
|
||||
endif
|
||||
BIN = watch
|
||||
|
||||
ifndef BOARD
|
||||
ifndef COLOR
|
||||
$(error Set the COLOR variable to RED, BLUE, GREEN or PRO depending on what board you have.)
|
||||
endif
|
||||
|
||||
COLOR_VALID := $(filter $(COLOR),RED BLUE GREEN PRO)
|
||||
|
||||
ifeq ($(COLOR_VALID),)
|
||||
$(error COLOR must be RED, BLUE, GREEN or PRO)
|
||||
endif
|
||||
|
||||
ifeq ($(COLOR), PRO)
|
||||
override BOARD = OSO-SWAT-C1-00
|
||||
else
|
||||
override BOARD = OSO-SWAT-A1-05
|
||||
endif
|
||||
|
||||
@@ -205,20 +217,6 @@ SRCS += \
|
||||
|
||||
endif
|
||||
|
||||
ifeq ($(LED), BLUE)
|
||||
CFLAGS += -DWATCH_IS_BLUE_BOARD
|
||||
endif
|
||||
|
||||
ifndef COLOR
|
||||
$(error Set the COLOR variable to RED, BLUE, or GREEN depending on what board you have.)
|
||||
endif
|
||||
|
||||
COLOR_VALID := $(filter $(COLOR),RED BLUE GREEN)
|
||||
|
||||
ifeq ($(COLOR_VALID),)
|
||||
$(error COLOR must be RED, BLUE, or GREEN)
|
||||
endif
|
||||
|
||||
ifeq ($(COLOR), BLUE)
|
||||
CFLAGS += -DWATCH_IS_BLUE_BOARD
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user