feat: reformatted code base to be more standard

This commit is contained in:
2021-03-10 22:01:13 +01:00
parent dc4bf71b5a
commit 586b8191b4
81 changed files with 431 additions and 338 deletions

11
include/myke/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 <myke/attributes.h>
void noreturn power_shutdown();
#endif //NEW_KERNEL_POWER_H

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