コード例 #1
0
ファイル: board.c プロジェクト: 304471720/rt-thread
void __ISR(_TIMER_1_VECTOR, ipl2) Timer1Handler(void)
{
    // clear the interrupt flag
    mT1ClearIntFlag();

    // .. things to do
    rt_hw_timer_handler();
}
コード例 #2
0
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);
			}
		}
	}
}
コード例 #3
0
void SysTick_Handler(void)
{
    extern void rt_hw_timer_handler(void);
    rt_hw_timer_handler();
}
コード例 #4
0
ファイル: stm32f10x_it.c プロジェクト: Manish-cimcon/micro
/*******************************************************************************
* 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();
}
コード例 #5
0
ファイル: stm32f10x_it.c プロジェクト: 1847123212/EasyFlash
/*******************************************************************************
* Function Name  : SysTickHandler
* Description    : This function handles SysTick Handler.
* Input          : None
* Output         : None
* Return         : None
*******************************************************************************/
 void SysTick_Handler(void)
{
    rt_hw_timer_handler();
}