Hi,
We have a TSCH communication software developed for CC2652R launchpad based on Contiki NGs modules. The timer processes of contiki are slow, so we are trying to add a continuous callback based timer function based on Timer.c and Timer.h of the TI SDK.
Our software uses the older SDK version 4.40.
Even if I duplicate the example given in 'timerled' that blinks the LED for 1 second, there is actually a failure in the timer initialization itself. So, the MCU always hangs there when I add this part of the code.
I did some digging and found that there are many differences in the functions of Timer.c of SDK 4.40 and the latest SDK (say version 7.10).
One example is the Timer_Init() function. In our 4.40 SDK it is like this:
/*
* ======== Timer_init ========
*/
void Timer_init(void)
{
uint_least8_t i;
uint_fast32_t key;
key = HwiP_disable();
if (!isInitialized) {
isInitialized = (bool) true;
/* Call each driver's init function */
for (i = 0; i < Timer_count; i++) {
Timer_config[i].fxnTablePtr->initFxn((Timer_Handle) &(Timer_config[i]));
}
}
HwiP_restore(key);
}
However, in the latest SDK, the function is actually blank as below:
/*
* ======== Timer_init ========
*/
void Timer_init(void)
{
/* Do nothing */
}
My question is: Was there any problem with previous implementations? Is it why I cannot get this simple example running?
Also, should I just replace the header and c files of Timer.c, Timer.h in my SDK? I wanted some assurance about if something was wrong so the SDK got updated else I might change two important files and still not get any result.
Looking forward to your help,
Abhijit