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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
2,129件の閲覧回数
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,384件の閲覧回数
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,385件の閲覧回数
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 件の賞賛
返信