diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-03 12:29:48 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-03 12:29:48 -0400 |
commit | 33b9d606916f3847e0f754693ca49ce56175a330 (patch) | |
tree | eba26ad7722349ced40270f4a9a8083a58a7d453 /include/clock.h | |
parent | track changes (diff) | |
download | comus-33b9d606916f3847e0f754693ca49ce56175a330.tar.gz comus-33b9d606916f3847e0f754693ca49ce56175a330.tar.bz2 comus-33b9d606916f3847e0f754693ca49ce56175a330.zip |
refactor include
Diffstat (limited to 'include/clock.h')
-rw-r--r-- | include/clock.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/include/clock.h b/include/clock.h deleted file mode 100644 index 674d799..0000000 --- a/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 |