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:
Jose Castillo
2024-07-06 11:07:02 -04:00
committed by GitHub
parent 89a2af92ef
commit d98d14d236
15 changed files with 282 additions and 38 deletions

28
make.mk
View File

@@ -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