summaryrefslogtreecommitdiffstats
path: root/main/debug-compile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/debug-compile.patch')
-rw-r--r--main/debug-compile.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/debug-compile.patch b/main/debug-compile.patch
new file mode 100644
index 0000000..838dce9
--- /dev/null
+++ b/main/debug-compile.patch
@@ -0,0 +1,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_