From 957c64c7b8b5e98d8a03dd84c7e27e7991fb9dbc Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Mon, 6 Apr 2026 17:04:05 -0400 Subject: Initial commit --- common/common.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 common/common.h (limited to 'common/common.h') 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 +#include +#include + +#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__ -- cgit v1.3-2-g0d8e