Do I need to enable anyting to use Mutex component?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Do I need to enable anyting to use Mutex component?

Jump to solution
662 Views
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 Kudos
1 Solution
428 Views
KJFPE
Contributor III

 

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

 

View solution in original post

0 Kudos
4 Replies
429 Views
KJFPE
Contributor III

 

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

 

0 Kudos
428 Views
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 Kudos
428 Views
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 Kudos
428 Views
Weining
Contributor III

Thanks KJFPE again, I really appreciate your quick help.

0 Kudos