diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-31 23:39:48 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-31 23:39:48 +0100 |
commit | 0e136bc41b1edcc146a075e0e1e41bfdbd37e572 (patch) | |
tree | 86b8e1428d1714ef7bd89b1a7cae4193aa45a679 | |
parent | f762c5c65ff9578e4c365320bd89deb34912a047 (diff) | |
download | rpi-MMU-example-0e136bc41b1edcc146a075e0e1e41bfdbd37e572.tar.gz rpi-MMU-example-0e136bc41b1edcc146a075e0e1e41bfdbd37e572.zip |
more uniqe function naming
-rw-r--r-- | bcmclock.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |