diff options
Diffstat (limited to 'common/common.h')
| -rw-r--r-- | common/common.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/common/common.h b/common/common.h new file mode 100644 index 0000000..7396f98 --- /dev/null +++ b/common/common.h @@ -0,0 +1,25 @@ +#ifndef __MICRO_COMMON_H__ +#define __MICRO_COMMON_H__ + +#include <stdbool.h> +#include <stdint.h> +#include <stdlib.h> + +#include "log.h" +#include "mem.h" + +#define PI 3.14 +#define DEG2RAD (180 / PI) + +typedef int8_t i8; +typedef uint8_t u8; +typedef int16_t i16; +typedef uint16_t u16; +typedef int32_t i32; +typedef uint32_t u32; +typedef int64_t i64; +typedef uint64_t u64; + +char *read_file(const char *path, size_t *size_out); + +#endif // __MICRO_COMMON_H__ |
