feat: added cross compiler and moved headers to include dir

This commit is contained in:
2021-03-09 19:45:20 +01:00
parent cefdb8ed90
commit dc4bf71b5a
77 changed files with 180 additions and 45 deletions

11
include/util/power.h Normal file
View File

@@ -0,0 +1,11 @@
//
// Created by rick on 03-03-21.
//
#ifndef NEW_KERNEL_POWER_H
#define NEW_KERNEL_POWER_H
#include <attributes.h>
void noreturn power_shutdown();
#endif //NEW_KERNEL_POWER_H

26
include/util/stream.h Normal file
View File

@@ -0,0 +1,26 @@
//
// Created by rick on 02-03-21.
//
#ifndef NEW_KERNEL_STREAM_H
#define NEW_KERNEL_STREAM_H
#include <stdint.h>
typedef struct stream stream_t;
stream_t *stream_create(uint32_t size);
void stream_free(stream_t *strm);
void stream_wait(stream_t *stream);
uint32_t stream_read(stream_t *strm, uint8_t *target, uint32_t count);
uint32_t stream_write(stream_t *strm, const uint8_t *source, uint32_t count);
uint32_t stream_get_write_available(stream_t *stream);
uint32_t stream_get_read_available(stream_t *stream);
#endif //NEW_KERNEL_STREAM_H