Example #1
0
void Timer_Test(void)
{
    timerhl = TimerSoft_Create("testtimer",2000*mS,test_timer_isr);
    TimerSoft_Ctrl(timerhl,EN_TIMER_STARTCOUNT,0);
    timerhl = TimerSoft_Create("testtimer0",3000*mS,test_timer_isr0);
    TimerSoft_Ctrl(timerhl,EN_TIMER_STARTCOUNT,0);
}
Example #2
0
void timertest(void)
{
	tagTimerSoft *timer;
	timer = TimerSoft_Create("Timer1",1000*mS,timerisr);
	if(NULL != timer)
	{
		TimerSoft_Ctrl(timer,EN_TIMER_STARTCOUNT,0);
	}

	timer = TimerSoft_Create("Timer2",2000*mS,timerisr);
	if(NULL != timer)
	{
		TimerSoft_Ctrl(timer,EN_TIMER_STARTCOUNT,0);
	}
	timer = TimerSoft_Create("Timer3",3000*mS,timerisr);
	if(NULL != timer)
	{
		TimerSoft_Ctrl(timer,EN_TIMER_STARTCOUNT,0);
	}
}