From ddbb807e54245bd5b6686096827f4124ef196957 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 17 Apr 2018 11:56:09 +0200 Subject: Move to new serial protocol. This code is tested. --- firmware/global.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 firmware/global.h (limited to 'firmware/global.h') 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__*/ -- cgit