Other Parts Discussed in Thread: TIMAC, SYSBIOS
Hi,
I would like to know if its fine to use multiples of Timer_construct() function of timer.h.
in the 15.4 stack, the function Ssf_initializeReadingClock(); is used to initialize a timer for the stack activities.
I would like to know, if I initialize a second timer parallel to the one used in the stack using a new handle and a structure, if it will be fine.
Ex: The stack uses,
void Ssf_initializeReadingClock(void)
{
/* Initialize the timers needed for this application */
readingClkHandle = Timer_construct(&readingClkStruct,
processReadingTimeoutCallback,
READING_INIT_TIMEOUT_VALUE,
0,
false,
0);
}
If I have my function as below with the above.
void Ssf_initializeSavingClock(void)
{
/* Initialize the timers needed for this application */
savingClkHandle = Timer_construct(&savingClkStruct,
processSavingTimeoutCallback,
SAVING_INIT_TIMEOUT_VALUE,
0,
false,
0);
}
Will these 2 initialization use the same timer hardware or different ones?
Can one hardware timer be used for multiple timer instances running in parallel?
Thank you in advance.
Abrar