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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,125 次查看
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 项奖励
回复
1 解答
1,380 次查看
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 项奖励
回复
1 回复
1,381 次查看
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 项奖励
回复