aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-12-31 23:39:48 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-12-31 23:39:48 +0100
commit0e136bc41b1edcc146a075e0e1e41bfdbd37e572 (patch)
tree86b8e1428d1714ef7bd89b1a7cae4193aa45a679
parentf762c5c65ff9578e4c365320bd89deb34912a047 (diff)
downloadrpi-MMU-example-0e136bc41b1edcc146a075e0e1e41bfdbd37e572.tar.gz
rpi-MMU-example-0e136bc41b1edcc146a075e0e1e41bfdbd37e572.zip
more uniqe function naming
-rw-r--r--bcmclock.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/bcmclock.h b/bcmclock.h
index 345ff60..e4edb57 100644
--- a/bcmclock.h
+++ b/bcmclock.h
@@ -27,19 +27,19 @@
#define BCMCLK_DISABLE_BASIC_IRQS (ARM_BASE + 0x224)
-static inline void enable_timer_irq(void)
+static inline void bcmclk_enable_timer_irq(void)
{
*(uint32_t volatile*) BCMCLK_ENABLE_BASIC_IRQS = 1;
*(uint32_t volatile*) BCMCLK_ENABLE_IRQS_1 = 1 << 2;
}
-static inline void disable_timer_irq(void)
+static inline void bcmclk_disable_timer_irq(void)
{
*(uint32_t volatile*) BCMCLK_DISABLE_BASIC_IRQS = 1;
*(uint32_t volatile*) BCMCLK_DISABLE_IRQS_1 = 1 << 2;
}
-static inline void set_timer_match_timeout(uint32_t timeout)
+static inline void bcmclk_set_timer_match_timeout(uint32_t timeout)
{
uint32_t clock_now = *(uint32_t volatile*) ST_CLO;
*(uint32_t volatile*) ST_C2 = clock_now + timeout;