This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IWR6843AOP: Adding a 1 second timer to transmit other data via CLI port

Part Number: IWR6843AOP


I was trying to add another timer to provide additional data with the CLI port.

I tried just copying/pasting other sample code but perhaps this timer is interfering with the demo program?

Or perhaps there is another method for adding a 1 second timer?

Timer_Struct timer0;
Timer_Handle handle0;

interrupt Void myIsr()
{
// Periodic timer.
CLI_write ("%s\r\n", "Hello World");
Timer_ackInterrupt(handle0);
}

/**
* @b Description
* @n
* Entry point into the Millimeter Wave Demo
*
* @retval
* Not Applicable.
*/
int main (void)
{
Task_Params taskParams;
int32_t errCode;
SOC_Handle socHandle;
SOC_Cfg socCfg;

Timer_Params timerParams;
Hwi_Params hwiParams;
Error_Block eb;

Error_init(&eb);

// The interrupt number corresponding to a given Timer Id
// can be determined from the Timer Mapping table. A link
// to the table can be found in this document.
Hwi_Params_init(&hwiParams);
hwiParams.type = Hwi_Type_FIQ;
// Timer 0 is indeed interrupt 2
Hwi_create(2, (Hwi_FuncPtr)(&myIsr), &hwiParams, &eb);

Timer_Params_init(&timerParams);
timerParams.period = 2000000;
timerParams.runMode = Timer_RunMode_CONTINUOUS;
timerParams.periodType = Timer_PeriodType_MICROSECS;
timerParams.createHwi = FALSE;
Timer_construct(&timer0, 0, NULL, &timerParams, &eb);

handle0 = Timer_handle(&timer0);

...

/* Start BIOS */
BIOS_start();

}