summaryrefslogtreecommitdiff
path: root/firmware/global.h
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2018-04-17 11:56:09 +0200
committerjaseg <git@jaseg.net>2018-04-17 11:56:09 +0200
commitddbb807e54245bd5b6686096827f4124ef196957 (patch)
tree1643ca05e0b3cf7c06fbf743627f620290ebb4d3 /firmware/global.h
parent545abc6b6fccd1de4c8e4b95b83a453ce31c90ac (diff)
downloadolsndot-ddbb807e54245bd5b6686096827f4124ef196957.tar.gz
olsndot-ddbb807e54245bd5b6686096827f4124ef196957.tar.bz2
olsndot-ddbb807e54245bd5b6686096827f4124ef196957.zip
Move to new serial protocol.
This code is tested.
Diffstat (limited to 'firmware/global.h')
-rw-r--r--firmware/global.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/global.h b/firmware/global.h
new file mode 100644
index 0000000..6116adc
--- /dev/null
+++ b/firmware/global.h
@@ -0,0 +1,13 @@
+#ifndef __GLOBAL_H__
+#define __GLOBAL_H__
+
+#define FIRMWARE_VERSION 2
+#define HARDWARE_VERSION 2
+
+#define TS_CAL1 (*(uint16_t *)0x1FFFF7B8)
+#define VREFINT_CAL (*(uint16_t *)0x1FFFF7BA)
+
+extern uint32_t sys_time;
+extern uint32_t sys_time_seconds;
+
+#endif/*__GLOBAL_H__*/