From f28775947625445b238d0d92202f7e1f9512c253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Thu, 25 Feb 2016 09:27:49 +0100 Subject: [PATCH] Add util.[ch] --- right/util.c | 0 right/util.h | 9 +++++++++ 2 files changed, 9 insertions(+) create mode 100644 right/util.c create mode 100644 right/util.h diff --git a/right/util.c b/right/util.c new file mode 100644 index 0000000..e69de29 diff --git a/right/util.h b/right/util.h new file mode 100644 index 0000000..37376f2 --- /dev/null +++ b/right/util.h @@ -0,0 +1,9 @@ +#ifndef __UTIL_H__ +#define __UTIL_H__ + +// Macros: + + #define GET_MSB_OF_WORD(word) ((uint8_t)(word >> 8)) + #define GET_LSB_OF_WORD(word) ((uint8_t)(word & 0xff)) + +#endif