MQX Light - Sleep in Idle Task - How to enable properly?

cancel
Showing results for 
Search instead for 
Did you mean: 

MQX Light - Sleep in Idle Task - How to enable properly?

Jump to solution
1,108 Views
philipp_laemmle
Contributor II

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

pastedImage_5.png

SDK/rtos/mqx/config/common/mqx_cnfg.h

pastedImage_4.png

SDK/rtos/mqx/mqx/source/include/mqx.h

pastedImage_6.png

0 Kudos
1 Solution
363 Views
philipp_laemmle
Contributor II

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);

View solution in original post

0 Kudos
1 Reply
364 Views
philipp_laemmle
Contributor II

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);

0 Kudos