From 966f104597275b29f41c06c4574d1bbe9ecde401 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 25 Jan 2020 11:53:44 +0100 Subject: serial wip --- gm_platform/fw/global.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gm_platform/fw/global.h') diff --git a/gm_platform/fw/global.h b/gm_platform/fw/global.h index 5fedde7..7d33ca6 100644 --- a/gm_platform/fw/global.h +++ b/gm_platform/fw/global.h @@ -42,7 +42,7 @@ #define TS_CAL1 (*(uint16_t *)0x1FFFF7B8) #define VREFINT_CAL (*(uint16_t *)0x1FFFF7BA) -#define ADC_BUFSIZE 1024 +#define ARRAY_LEN(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x]))))) extern volatile unsigned int sys_time; extern volatile unsigned int sys_time_seconds; -- cgit