aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-11 18:05:00 -0700
committerChristian Cunningham <cc@localhost>2022-01-11 18:05:00 -0700
commit5b3ceca69d5432f976ac487c63a75f8c6275028b (patch)
treec932890424d8e30ea61a7a406967f8d6e2daf39f /include
parent516df5812ac64d87ac2e32ebf0211534ea0abaa7 (diff)
Memory freeing is optimized
Fixed Uart Bug temporarily
Diffstat (limited to 'include')
-rw-r--r--include/lib/mem.h5
-rw-r--r--include/sys/timer.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/include/lib/mem.h b/include/lib/mem.h
index 5c5cc94..166dfdc 100644
--- a/include/lib/mem.h
+++ b/include/lib/mem.h
@@ -1,6 +1,11 @@
#ifndef LIB_MEM_H
#define LIB_MEM_H
+#define MEM_SIZE_OFFSET 0
+#define MEM_USE_OFFSET 1
+#define MEM_BASE_SIZE 2
+#define MEM_META_SIZE 3
+
struct MemTab {
unsigned char size;
unsigned char in_use;
diff --git a/include/sys/timer.h b/include/sys/timer.h
index 29dc2dd..f11fd17 100644
--- a/include/sys/timer.h
+++ b/include/sys/timer.h
@@ -1,6 +1,9 @@
#ifndef SYS_TIMER_H
#define SYS_TIMER_H
+/// Cycles Per Second
+#define CPS 100
+
#ifndef SYS_TIMER_C
extern struct Mutex exe_cnt_m;
#endif