summaryrefslogtreecommitdiff
path: root/kernel/old/include/clock.h
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-08 10:49:18 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-08 10:49:18 -0400
commitc8a1e0531d7ccdce5f76aec8a5b6147c686d3403 (patch)
tree2a68ab7da901a96fea975ca2ec02a9c77137686b /kernel/old/include/clock.h
parenttty => term (diff)
downloadcomus-c8a1e0531d7ccdce5f76aec8a5b6147c686d3403.tar.gz
comus-c8a1e0531d7ccdce5f76aec8a5b6147c686d3403.tar.bz2
comus-c8a1e0531d7ccdce5f76aec8a5b6147c686d3403.zip
fix old checkout
Diffstat (limited to 'kernel/old/include/clock.h')
-rw-r--r--kernel/old/include/clock.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/old/include/clock.h b/kernel/old/include/clock.h
index 674d799..6eae41f 100644
--- a/kernel/old/include/clock.h
+++ b/kernel/old/include/clock.h
@@ -17,10 +17,10 @@
// 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)
+#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
@@ -48,8 +48,8 @@ extern uint32_t system_time;
**
** Clock module initialization
*/
-void clk_init(void);
+void clk_init( void );
-#endif /* !ASM_SRC */
+#endif /* !ASM_SRC */
#endif