summaryrefslogtreecommitdiff
path: root/common/common.h
blob: 7396f98761342797e9e401b5e1ebaaef72c42902 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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__