HI, I am using a function in the idle task of TI-RTOS to flush text from a buffer to the UART. This is from an example that showed how to use this to handle System_printf. Here are the relevant lines from the configuration file:
System.SupportProxy = SysCallback;
SysCallback.putchFxn = "&uartPrintf_putch";
...
Idle.addFunc('&uartPrintf_flush');
This works fine but I am worried that it might cause too many wakeups and would influence power consumption.
My application wakes up periodically (I use an interrupt from the sensor controller to wake it up), transmits and does other things, and goes back to sleep. It's okay and good for the flush function to be called once when the burst of activity ends, but I worry that the power manager might wake it up periodically to give it an opportunity to do something.
Are functions in the idle task invoked only when something else wakes up the processor, or periodically?
The configuration of the power manager is the default from the empty project:
const PowerCC26XX_Config PowerCC26XX_config = {
.policyInitFxn = NULL,
.policyFxn = &PowerCC26XX_standbyPolicy,
.calibrateFxn = &PowerCC26XX_calibrate,
.enablePolicy = true,
.calibrateRCOSC_LF = true,
.calibrateRCOSC_HF = true,
};
Thanks, Sivan Toledo