summaryrefslogtreecommitdiff
path: root/gm_platform/fw/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'gm_platform/fw/global.h')
-rw-r--r--gm_platform/fw/global.h2
1 files changed, 1 insertions, 1 deletions
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;