diff options
Diffstat (limited to 'bcmclock.h')
-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; |