From c339384cbede3ddf3e88d27229baefd1d42daa86 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 24 Dec 2018 19:52:13 +0900 Subject: Pimp ADC measurements with voltage means --- fw/global.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'fw/global.h') 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; -- cgit