Example #1
0
void __ISR(_TIMER_1_VECTOR, ipl2) Timer1Handler(void)
{
    // clear the interrupt flag
    mT1ClearIntFlag();

    // .. things to do
    rt_hw_timer_handler();
}
void rt_interrupt_dispatch(void *ptreg)
{
    int i;
	rt_isr_handler_t irq_func;
	static rt_uint32_t status = 0;
	rt_uint32_t c0_status;

	/* check os timer */
	c0_status = read_c0_status();
	if (c0_status & 0x8000)
	{
		rt_hw_timer_handler();
	}

	if (c0_status & 0x0400)
	{
		/* the hardware interrupt */
		status |= INT_ISR;
		if (!status) return;

		for (i = MAX_INTR; i > 0; --i)
		{
			if ((status & (1<<i)))
			{
				status &= ~(1<<i);
				irq_func = irq_handle_table[i];

				/* do interrupt */
				(*irq_func)(i);

				/* ack interrupt */
				INT_CLR = (1 << i);
			}
		}
	}
}
Example #3
0
void SysTick_Handler(void)
{
    extern void rt_hw_timer_handler(void);
    rt_hw_timer_handler();
}
Example #4
0
/*******************************************************************************
* Function Name  : SysTickHandler
* Description    : This function handles SysTick Handler.
* Input          : None
* Output         : None
* Return         : None
*******************************************************************************/
void SysTickHandler(void)
{
    /* handle os tick */
    rt_hw_timer_handler();
}
Example #5
0
/*******************************************************************************
* Function Name  : SysTickHandler
* Description    : This function handles SysTick Handler.
* Input          : None
* Output         : None
* Return         : None
*******************************************************************************/
 void SysTick_Handler(void)
{
    rt_hw_timer_handler();
}