diff options
author | jaseg <git@jaseg.net> | 2020-01-25 11:53:44 +0100 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2020-01-25 11:53:44 +0100 |
commit | 966f104597275b29f41c06c4574d1bbe9ecde401 (patch) | |
tree | 56224782459e8b7983df5605809c7269539a7cb1 /gm_platform/fw/global.h | |
parent | 410e38651052038e34843b17269d61e75720f0ba (diff) | |
download | master-thesis-966f104597275b29f41c06c4574d1bbe9ecde401.tar.gz master-thesis-966f104597275b29f41c06c4574d1bbe9ecde401.tar.bz2 master-thesis-966f104597275b29f41c06c4574d1bbe9ecde401.zip |
serial wip
Diffstat (limited to 'gm_platform/fw/global.h')
-rw-r--r-- | gm_platform/fw/global.h | 2 |
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; |