GPIO control in MQX

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

GPIO control in MQX

2,395 Views
admin
Specialist II

Hi,

 

I would like to avoid that MQX RTOS controls all pins, I would like to control directly some pins without interacting of MQX. I have to control some pins immediately without wait fopen and ioctl. This venture is it too dangerous? Are there problems of MQX instability if I modify library for doing this operation?

 

Thanks

5 Replies

1,055 Views
admin
Specialist II

Hi JuroV !

for disabling the MQX command of a one port I have modify the structure gpio_global_pin_map. Is the right way or I have to modify the code in other locations ?

 

 

Thanks for the support

0 Kudos
Reply

1,055 Views
JuroV
NXP Employee
NXP Employee

Can you please explain, what does 'disabling the MQX command of a one port' mean?

You want GPIO driver not to control some port? If this is the case, then the answer is: forget about that, modifying pin_map structure is prohibited and can lead to unexpected results.

0 Kudos
Reply

1,055 Views
admin
Specialist II

I want GPIO driver  don't control some port ... I can't do this and if I have to control some port immediatly (microsec) ?!?!?

0 Kudos
Reply

1,055 Views
JuroV
NXP Employee
NXP Employee
You can't do that. Use your own direct GPIO register addressing in the application.

1,055 Views
JuroV
NXP Employee
NXP Employee

Hi. There is nothing to be dangerous, it is one of ways of handling pins in MQX with ColdFire.

0 Kudos
Reply