[cpu arm_common hwtimer]

* declared inline function as static as linker cannot find it otherwise
This commit is contained in:
Oliver Hahm 2012-01-07 18:47:00 +01:00
parent 4870dc7be4
commit 09721a2230

View File

@ -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);
}