Hello everybody
I'm using KDS 3.0.0 with SDK 1.3. My application is using MQX Light out of Processor Expert. Processor Type MK02FN128VFM10.
I have a question regarding Sleep during Idle Task.
I'm a Little bit confused about the defines. One one Hand it is possible to enable Low Power Modes and on the other Hand it is not possible to enable the sleep during idle Task.
Please see the Pictures below.
I have enabled the MQX_ENALBE_LOW_POWER in the mqx_cnfg.h.
But I Need to Change the Parameter of the Idle Task. If i do it in the mqx.h it throws an error.
How do I pass a Parameter other than 0 to the Idle Task?
Is there any Driver available?
SDK/rtos/mqx/mqx/source/kernel/idletask.c
SDK/rtos/mqx/config/common/mqx_cnfg.h
SDK/rtos/mqx/mqx/source/include/mqx.h
Solved! Go to Solution.
I have fixed the issue. Did it like this.
uint32_t idleTaskParameter=1;
char* idleTaskName = MQX_IDLE_TASK_NAME;
_task_restart(_task_get_id_from_name(idleTaskName), &idleTaskParameter,0);
I have fixed the issue. Did it like this.
uint32_t idleTaskParameter=1;
char* idleTaskName = MQX_IDLE_TASK_NAME;
_task_restart(_task_get_id_from_name(idleTaskName), &idleTaskParameter,0);