Add a function to allow checking if the timer interrupt is pending for
the m68knommu/5206 CPU. This is used by the architecture timer code for
microsecond accurate time calculations.
/***************************************************************************/
+int mcf_timerirqpending(int timer)
+{
+ unsigned int imr = 0;
+
+ switch (timer) {
+ case 1: imr = MCFSIM_IMR_TIMER1; break;
+ case 2: imr = MCFSIM_IMR_TIMER2; break;
+ default: break;
+ }
+ return (mcf_getipr() & imr);
+}
+
+/***************************************************************************/
+
void config_BSP(char *commandp, int size)
{
mcf_setimr(MCFSIM_IMR_MASKALL);