diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/buffer/ringbuffer.c | 1 | ||||
| -rw-r--r-- | lib/buffer/ringbuffer.h | 5 | ||||
| -rw-r--r-- | lib/logger/log.c | 1 | ||||
| -rw-r--r-- | lib/logger/log.h | 2 |
4 files changed, 9 insertions, 0 deletions
diff --git a/lib/buffer/ringbuffer.c b/lib/buffer/ringbuffer.c index cdb5fed..9e3adaf 100644 --- a/lib/buffer/ringbuffer.c +++ b/lib/buffer/ringbuffer.c @@ -5,6 +5,7 @@ #define FOOLOS_MODULE_NAME "ringbuffer" #include "lib/bool/bool.h" #include "lib/logger/log.h" +#include "kernel/spinlock.h" static volatile int front; static volatile int back; diff --git a/lib/buffer/ringbuffer.h b/lib/buffer/ringbuffer.h new file mode 100644 index 0000000..2bb6528 --- /dev/null +++ b/lib/buffer/ringbuffer.h @@ -0,0 +1,5 @@ +#include "lib/bool/bool.h" + +void ringbuffer_init(); +bool ringbuffer_put(char c); +bool ringbuffer_get(char *c); diff --git a/lib/logger/log.c b/lib/logger/log.c index 391fbcf..7bc1d82 100644 --- a/lib/logger/log.c +++ b/lib/logger/log.c @@ -4,6 +4,7 @@ #include <stdarg.h> #include "log.h" +#include "lib/printf/printf.h" #include "kernel/config.h" #include "lib/int/stdint.h" #include "kernel/time.h" diff --git a/lib/logger/log.h b/lib/logger/log.h index b00f462..1159d94 100644 --- a/lib/logger/log.h +++ b/lib/logger/log.h @@ -7,5 +7,7 @@ void log(char *module_name, int prio, char *format_string, ...); void panic(char *module_name, char *format_string); +void log_init(); +void log_log(); #endif |
