diff options
Diffstat (limited to 'include/platform/osal.h')
| -rw-r--r-- | include/platform/osal.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/platform/osal.h b/include/platform/osal.h new file mode 100644 index 0000000..8eee16b --- /dev/null +++ b/include/platform/osal.h @@ -0,0 +1,23 @@ +#ifndef OSAL_H +#define OSAL_H + +#include <stddef.h> +#include <stdint.h> + +void* mem_alloc(size_t s); +void mem_free(void *p); + +#define FILE_READ (uint8_t) 0b00000001 +#define FILE_WRITE (uint8_t) 0b00000010 + +struct file { + const char *path; + const char *buffer; + const size_t size; +}; + +struct file open_file(const char *path, int flags); + +void print(const char *fmt, ...); + +#endif |
