diff options
| author | iamcheeseman <[email protected]> | 2026-04-06 17:04:05 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-04-06 17:06:53 -0400 |
| commit | 957c64c7b8b5e98d8a03dd84c7e27e7991fb9dbc (patch) | |
| tree | f5fc230703791cee8d8e7851fb87eaef07ae63a2 /common/common.h | |
Initial commit
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__ |
