Change pin configuration during runtime

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

Change pin configuration during runtime

865 次查看
roman_g1
Contributor I

Hi,

i need to reconfigure my I2C clock and data line to GPIO during runtime.

How is it possible on imx8-m4?

Thanks

Roman

0 项奖励
回复
2 回复数

719 次查看
b36401
NXP Employee
NXP Employee

Unfortunately runtime pin configuration is not supported by the BSP.
However you can try to write to IOMUX registers directly from application.

0 项奖励
回复

719 次查看
roman_g1
Contributor I

Ok, thank you for your reply.

Is there a given sequence to write to register for changing the pin configuration?

For example if i want to write to MIPI_DSI1_GPIO0_00 register to set the mode to "000b".

Is the mux_mode field to set enough?

pastedImage_1.pngpastedImage_2.png

0 项奖励
回复