From 7e5196c770e6a229e00c849de4fe41b6d962a7ef Mon Sep 17 00:00:00 2001 From: Evan Lojewski Date: Sun, 5 May 2019 19:17:10 -0600 Subject: More cleanup - headers. --- include/types.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'include/types.h') diff --git a/include/types.h b/include/types.h index 64efd34..0b3baba 100644 --- a/include/types.h +++ b/include/types.h @@ -1,12 +1,11 @@ #ifndef TYPES_H #define TYPES_H +#define SECTION(__section__) __attribute__((section, __section__)) -#define SECTION(__section__) __attribute__((section, __section__)) +#define ARRAY_ELEMENTS(__array__) (sizeof(__array__) / sizeof(__array__[0])) -#define ARRAY_ELEMENTS(__array__) (sizeof(__array__)/sizeof(__array__[0])) - -#define DIVIDE_RND_UP(__value__, __round__) (((__value__) + (__round__) - 1) / (__round__)) +#define DIVIDE_RND_UP(__value__, __round__) (((__value__) + (__round__)-1) / (__round__)) #define DIVIDE_RND_DOWN(__value__, __round__) ((__value__) / (__round__)) typedef union { @@ -15,12 +14,12 @@ typedef union { struct { uint8_t pad[2]; - uint8_t u8[6]; + uint8_t u8[6]; } oct; struct { - uint32_t u32[2]; + uint32_t u32[2]; } word; } mac_t; -- cgit v1.2.1