summaryrefslogtreecommitdiffstats
path: root/make.mk
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-10-25 14:52:40 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-10-25 14:52:40 -0400
commit22c072ac3f4fb450315b204dc4a6f2644c8665a7 (patch)
tree340cedd1875e873448449a868bf9c937cece881f /make.mk
parent24e160611e12df8d31edc02af21ce07ad0929e1b (diff)
parentbadb4ba9090c6228738a555b82c988aafbe72fec (diff)
downloadSensor-Watch-22c072ac3f4fb450315b204dc4a6f2644c8665a7.tar.gz
Sensor-Watch-22c072ac3f4fb450315b204dc4a6f2644c8665a7.tar.bz2
Sensor-Watch-22c072ac3f4fb450315b204dc4a6f2644c8665a7.zip
Merge branch 'main' into more-asf-files
Diffstat (limited to 'make.mk')
-rw-r--r--make.mk23
1 files changed, 16 insertions, 7 deletions
diff --git a/make.mk b/make.mk
index 461bef79..c9ef6534 100644
--- a/make.mk
+++ b/make.mk
@@ -31,8 +31,6 @@ LDFLAGS += -mcpu=cortex-m0plus -mthumb
LDFLAGS += -Wl,--gc-sections
LDFLAGS += -Wl,--script=$(TOP)//watch-library/linker/saml22j18.ld
-# If you add any additional directories with headers, add them to this list, e.g.
-# ../drivers/
INCLUDES += \
-I$(TOP)/tinyusb/src \
-I$(TOP)/boards/$(BOARD) \
@@ -54,7 +52,6 @@ INCLUDES += \
-I$(TOP)/watch-library/hpl/oscctrl/ \
-I$(TOP)/watch-library/hpl/pm/ \
-I$(TOP)/watch-library/hpl/port/ \
- -I$(TOP)/watch-library/hpl/rtc/ \
-I$(TOP)/watch-library/hpl/sercom/ \
-I$(TOP)/watch-library/hpl/slcd/ \
-I$(TOP)/watch-library/hpl/systick/ \
@@ -64,8 +61,6 @@ INCLUDES += \
-I$(TOP)/watch-library/watch/ \
-I$(TOP)/watch-library
-# If you add any additional C files to your project, add them each to this list, e.g.
-# ../drivers/st25dv.c
SRCS += \
$(TOP)/tinyusb/src/tusb.c \
$(TOP)/tinyusb/src/common/tusb_fifo.c \
@@ -76,9 +71,20 @@ SRCS += \
$(TOP)/watch-library/main.c \
$(TOP)/watch-library/startup_saml22.c \
$(TOP)/watch-library/hw/driver_init.c \
+ $(TOP)/watch-library/watch/watch_rtc.c \
+ $(TOP)/watch-library/watch/watch_slcd.c \
+ $(TOP)/watch-library/watch/watch_extint.c \
+ $(TOP)/watch-library/watch/watch_led.c \
+ $(TOP)/watch-library/watch/watch_buzzer.c \
+ $(TOP)/watch-library/watch/watch_adc.c \
+ $(TOP)/watch-library/watch/watch_gpio.c \
+ $(TOP)/watch-library/watch/watch_i2c.c \
+ $(TOP)/watch-library/watch/watch_uart.c \
+ $(TOP)/watch-library/watch/watch_deepsleep.c \
+ $(TOP)/watch-library/watch/watch_utility.c \
+ $(TOP)/watch-library/watch/watch_private.c \
$(TOP)/watch-library/watch/watch.c \
$(TOP)/watch-library/hal/src/hal_atomic.c \
- $(TOP)/watch-library/hal/src/hal_calendar.c \
$(TOP)/watch-library/hal/src/hal_delay.c \
$(TOP)/watch-library/hal/src/hal_ext_irq.c \
$(TOP)/watch-library/hal/src/hal_gpio.c \
@@ -100,7 +106,6 @@ SRCS += \
$(TOP)/watch-library/hpl/osc32kctrl/hpl_osc32kctrl.c \
$(TOP)/watch-library/hpl/oscctrl/hpl_oscctrl.c \
$(TOP)/watch-library/hpl/pm/hpl_pm.c \
- $(TOP)/watch-library/hpl/rtc/hpl_rtc.c \
$(TOP)/watch-library/hpl/sercom/hpl_sercom.c \
$(TOP)/watch-library/hpl/slcd/hpl_slcd.c \
$(TOP)/watch-library/hpl/systick/hpl_systick.c \
@@ -112,3 +117,7 @@ DEFINES += \
ifeq ($(LED), BLUE)
CFLAGS += -DWATCH_SWAP_LED_PINS
endif
+
+ifeq ($(BOARD), OSO-FEAL-A1-00)
+CFLAGS += -DCRYSTALLESS
+endif