From 5b3ceca69d5432f976ac487c63a75f8c6275028b Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Tue, 11 Jan 2022 18:05:00 -0700 Subject: Memory freeing is optimized Fixed Uart Bug temporarily --- include/lib/mem.h | 5 +++++ include/sys/timer.h | 3 +++ 2 files changed, 8 insertions(+) (limited to 'include') 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 -- cgit v1.2.1