summaryrefslogtreecommitdiffstats
path: root/main/debug-compile.patch
blob: 838dce90f38025fe5373e938e908674ee8df6b27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/make.mk b/make.mk
index bb2d153..ee40100 100644
--- a/make.mk
+++ b/make.mk
@@ -58,11 +58,13 @@ CFLAGS += -fdata-sections -ffunction-sections
 CFLAGS += -funsigned-char -funsigned-bitfields
 CFLAGS += -mcpu=cortex-m0plus -mthumb
 CFLAGS += -MD -MP -MT $(BUILD)/$(*F).o -MF $(BUILD)/$(@F).d
+CFLAGS += -g
 
 LDFLAGS += -mcpu=cortex-m0plus -mthumb
 LDFLAGS += -Wl,--gc-sections
 LDFLAGS += -Wl,--script=$(TOP)/watch-library/hardware/linker/saml22j18.ld
 LDFLAGS += -Wl,--print-memory-usage
+LDFLAGS += -g
 
 LIBS += -lm
 
diff --git a/movement/movement.h b/movement/movement.h
index 1dabfbc..ffceae6 100644
--- a/movement/movement.h
+++ b/movement/movement.h
@@ -312,4 +312,6 @@ void movement_play_alarm_beeps(uint8_t rounds, BuzzerNote alarm_note);
 
 uint8_t movement_claim_backup_register(void);
 
+void set_time(void);
+
 #endif // MOVEMENT_H_