aboutsummaryrefslogtreecommitdiff
path: root/src/util/time.h
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-05 14:27:09 -0800
committerChristian Cunningham <cc@localhost>2022-01-05 14:27:09 -0800
commit866a6ca0e749f4446b7fdc7579a6d553df85ec10 (patch)
treed259223d85c224d649c6c38675e99b155d50cf48 /src/util/time.h
parent3a8ed19bf83f11ff00c4904fab2cc083b7e33478 (diff)
Moved includes to its own directory
Diffstat (limited to 'src/util/time.h')
-rw-r--r--src/util/time.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/util/time.h b/src/util/time.h
deleted file mode 100644
index f6dacb0..0000000
--- a/src/util/time.h
+++ /dev/null
@@ -1,26 +0,0 @@
-#ifndef UTIL_TIME_H
-#define UTIL_TIME_H
-
-void routing_core0cntv_to_core0irq(void);
-unsigned long read_core0timer_pending(void);
-unsigned long long read_cntvct(void);
-unsigned long long read_cntvoff(void);
-unsigned long read_cntv_tval(void);
-void write_cntv_tval(unsigned long val);
-unsigned long read_cntfrq(void);
-
-static inline void enablecntv(void)
-{
- unsigned long cntv_ctl;
- cntv_ctl = 1;
- asm volatile ("mcr p15, 0, %0, c14, c3, 1" :: "r"(cntv_ctl) ); // write CNTV_CTL
-}
-
-static inline void disablecntv(void)
-{
- unsigned long cntv_ctl;
- cntv_ctl = 0;
- asm volatile ("mcr p15, 0, %0, c14, c3, 1" :: "r"(cntv_ctl) ); // write CNTV_CTL
-}
-
-#endif