summaryrefslogtreecommitdiff
path: root/kernel/old/include/clock.h
diff options
context:
space:
mode:
authorIan McFarlane <i.mcfarlane2002@gmail.com>2025-04-17 14:19:40 -0400
committerIan McFarlane <i.mcfarlane2002@gmail.com>2025-04-17 14:19:40 -0400
commit7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6 (patch)
treee99684b87952bded5e51c83848a5d35ab53d9ab0 /kernel/old/include/clock.h
parentstarting on ata (diff)
parentclang 18 in flake instead of zig (diff)
downloadcomus-7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6.tar.gz
comus-7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6.tar.bz2
comus-7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6.zip
Merge branch 'main' into ata
Diffstat (limited to '')
-rw-r--r--kernel/old/include/clock.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/kernel/old/include/clock.h b/kernel/old/include/clock.h
deleted file mode 100644
index 6eae41f..0000000
--- a/kernel/old/include/clock.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
-** @file clock.h
-**
-** @author CSCI-452 class of 20245
-**
-** @brief Clock module declarations
-*/
-
-#ifndef CLOCK_H_
-#define CLOCK_H_
-
-#include <common.h>
-
-/*
-** General (C and/or assembly) definitions
-*/
-
-// conversion functions for seconds, ms, and ticks
-// (SEC_TO_MS is defined in defs.h)
-#define MS_TO_TICKS(n) ((n))
-#define SEC_TO_TICKS(n) (MS_TO_TICKS(SEC_TO_MS(n)))
-#define TICKS_TO_SEC(n) ((n) / CLOCK_FREQ)
-#define TICKS_TO_SEC_ROUNDED(n) (((n)+(CLOCK_FREQ-1)) / CLOCK_FREQ)
-
-#ifndef ASM_SRC
-
-/*
-** Start of C-only definitions
-*/
-
-/*
-** Types
-*/
-
-/*
-** Globals
-*/
-
-// current system time
-extern uint32_t system_time;
-
-/*
-** Prototypes
-*/
-
-/**
-** Name: clk_init
-**
-** Clock module initialization
-*/
-void clk_init( void );
-
-#endif /* !ASM_SRC */
-
-#endif