aboutsummaryrefslogtreecommitdiff
path: root/fw/global.h
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2018-12-24 19:52:13 +0900
committerjaseg <git@jaseg.net>2018-12-24 19:55:28 +0900
commitc339384cbede3ddf3e88d27229baefd1d42daa86 (patch)
tree1ddb1f7da2afb3ddfca0463cb5fb716e8bdd9c5d /fw/global.h
parentf5d7b0428db5257d62c080daa2757199c27ef784 (diff)
download8seg-c339384cbede3ddf3e88d27229baefd1d42daa86.tar.gz
8seg-c339384cbede3ddf3e88d27229baefd1d42daa86.tar.bz2
8seg-c339384cbede3ddf3e88d27229baefd1d42daa86.zip
Pimp ADC measurements with voltage means
Diffstat (limited to 'fw/global.h')
-rw-r--r--fw/global.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/fw/global.h b/fw/global.h
index 03d3920..15a5e87 100644
--- a/fw/global.h
+++ b/fw/global.h
@@ -36,12 +36,15 @@
/* Microcontroller part number: STM32F030F4C6 */
/* Things used for module status reporting. */
-#define FIRMWARE_VERSION 2
-#define HARDWARE_VERSION 4
+#define FIRMWARE_VERSION 1
+#define HARDWARE_VERSION 0
#define TS_CAL1 (*(uint16_t *)0x1FFFF7B8)
#define VREFINT_CAL (*(uint16_t *)0x1FFFF7BA)
+#define VMEAS_R_HIGH 10000 /* kiloohms */
+#define VMEAS_R_LOW 3300 /* kiloohms */
+
extern volatile unsigned int sys_time;
extern volatile unsigned int sys_time_seconds;