GPIO control in MQX

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

GPIO control in MQX

2,394 次查看
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 回复数

1,054 次查看
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 项奖励
回复

1,054 次查看
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 项奖励
回复

1,054 次查看
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 项奖励
回复

1,054 次查看
JuroV
NXP Employee
NXP Employee
You can't do that. Use your own direct GPIO register addressing in the application.

1,054 次查看
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 项奖励
回复