diff options
Diffstat (limited to 'controller/fw/src/sr_global.h')
-rw-r--r-- | controller/fw/src/sr_global.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/controller/fw/src/sr_global.h b/controller/fw/src/sr_global.h index 8aa219d..abbad93 100644 --- a/controller/fw/src/sr_global.h +++ b/controller/fw/src/sr_global.h @@ -2,6 +2,7 @@ #define __SR_GLOBAL_H__ #define UNUSED(x) ((void) x) +#define ARRAY_LENGTH(x) (sizeof(x) / sizeof(x[0])) static inline uint16_t htole(uint16_t val) { return val; } |