[cpu arm_common hwtimer]

* declared inline function as static as linker cannot find it otherwise
dev/timer
Oliver Hahm 12 years ago
parent 4870dc7be4
commit 09721a2230

@ -24,7 +24,7 @@ static void (*int_handler)(int);
/// Timer 0-3 interrupt handler
static void timer_irq(void) __attribute__((interrupt("IRQ")));
inline unsigned long get_base_address(short timer) {
inline static unsigned long get_base_address(short timer) {
return (volatile unsigned long)(TMR0_BASE_ADDR + (timer / 8) * 0x6C000 + (timer/4 - (timer/8)*2) * 0x4000);
}

Loading…
Cancel
Save