Add util.[ch]

This commit is contained in:
László Monda
2016-02-25 09:27:49 +01:00
parent cea9182113
commit f287759476
2 changed files with 9 additions and 0 deletions

0
right/util.c Normal file
View File

9
right/util.h Normal file
View File

@@ -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