static unsigned irq() { return 34; }
};
+// --------------------------------------------------------------------------
+INTERFACE [arm && realview_vexpress_a15 && arm_generic_timer]:
+
+EXTENSION class Timer
+{
+public:
+ static unsigned irq() { return 27; }
+};
+
// --------------------------------------------------------------------------
INTERFACE [arm && sp804 && !realview_vexpress_a15]:
sp804->enable(Timer_sp804::Ctrl_periodic | Timer_sp804::Ctrl_ie);
}
-static inline
-Unsigned64
-Timer::timer_to_us(Unsigned32 /*cr*/)
-{ return 0; }
-
-static inline
-Unsigned64
-Timer::us_to_timer(Unsigned64 us)
-{ (void)us; return 0; }
-
PUBLIC static inline
void
Timer::acknowledge()
else
return Kip::k()->clock;
}
+
+// --------------------------------------------------------------------------
+IMPLEMENTATION [arm && realview_vexpress_a15 && arm_generic_timer]:
+
+IMPLEMENT
+void Timer::bsp_init(Cpu_number)
+{}