Do I need to enable anyting to use Mutex component?

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

Do I need to enable anyting to use Mutex component?

ソリューションへジャンプ
1,593件の閲覧回数
Weining
Contributor III

Hi,

 

I am using M52259 CW7.2 and MQX3.8. right now i want to use Mutex in my applcation. I would like to know if i need to enable anything before I start using mutexes.

 

According to MQX user manual section 3.6.6 ,  the Mutex component is not compiled in the MQX kernel by default. so I should enable it in (config.h ?) and re-build the whole MQX before i use it in my application . But i have not done anything in config.h, and the the mutex works well so far.

 

could anybody advise?

 

Thank you,

 

Weining

 

0 件の賞賛
返信
1 解決策
1,359件の閲覧回数
KJFPE
Contributor III

 

By default MQX is set up to use Mutexes in the source look for MQX_USE_MUTEXES

 

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
1,360件の閲覧回数
KJFPE
Contributor III

 

By default MQX is set up to use Mutexes in the source look for MQX_USE_MUTEXES

 

0 件の賞賛
返信
1,359件の閲覧回数
Weining
Contributor III

Thank you KJFPE.

 

this answer solves my problem.

 

And could you please advise where I can find the key word MQX_USE_MUTEXES? I searched the whole MQX folder but did not find it

0 件の賞賛
返信
1,359件の閲覧回数
KJFPE
Contributor III

C:\Program Files\Freescale\Freescale MQX 3.X\mqx\source\include

C:\Program Files\Freescale\Freescale MQX 3.X\mqx\source\mutex

 

in the C:\Program Files\Freescale\Freescale MQX 3.X\mqx\source\include have a look in mqx_cnfg.h

 


0 件の賞賛
返信
1,359件の閲覧回数
Weining
Contributor III

Thanks KJFPE again, I really appreciate your quick help.

0 件の賞賛
返信