Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Hi:
I want to define two different timers to run two different functions in different timer settings. The code looks like:
Timer_Params_init(&timerParams1); timerParams1.period = 10000; timerParams1.periodType = Timer_PeriodType_MICROSECS; timerHandle = Timer_create(Timer_ANY,com_isr,&timerParams1,&eb); if(timerHandle == NULL){ System_printf("Create Timer Task Failed\n"); BIOS_exit(0); } Timer_Params_init(&timerParams2); timerParams2.period = 100000; timerParams2.periodType = Timer_PeriodType_MICROSECS; timerHandle = Timer_create((UInt)2,isr_100ms,&timerParams2,&eb); if(timerHandle == NULL){ System_printf("Create Timer2 Task Failed\n"); BIOS_exit(0); }
However, I am not sure about the "id" in the Timer_create. Based on the Bios_User_Guide, it said "The timerId can range from zero to a target/device-specific value determined by the TimerProxy".
What is this TimerProxy, how can I find it?
Thank you