GPIO latch in T1022

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

GPIO latch in T1022

跳至解决方案
1,223 次查看
hemwant
Contributor IV

I am having a T1022 processor based board, one of the gpio signal GPIO3_31 is by default configured as output , i wanted it to be configured as GPIO3_31 as input. I have made the changes via GPIO direction register. But on giving reset to processor the pin again gets configured as output. Is there some way i can latch the value of the respective pin or modify the default configuration of the pin so that after reboot/reset of the same , the port pin configuration remains same as done at time of reboot/reset.

0 项奖励
回复
1 解答
1,199 次查看
Bulat
NXP Employee
NXP Employee

As I wrote, all GPIO pins are configured as inputs at reset. This is a hardware feature and can not be changed. You can re-configure direction of GPIO pins in the boot code if you need.

Regards,

Bulat

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,217 次查看
Bulat
NXP Employee
NXP Employee

All GPIO direction registers of the T1022 are set to 0x0 at reset (default value), so all GPIO ports are set as inputs. If you see that GPIO3_31 is set as an output, it was configured somewhere in boot code or PBL.

Regards,

Bulat

 

0 项奖励
回复
1,208 次查看
hemwant
Contributor IV

@Bulatyes the GPIO3_31 is configured as input by default when processor is given reset. I want it to be in output mode when it gets reset from linux. Is there some way to do that, so that i can retain the state of GPIO3_31 after reset?

0 项奖励
回复
1,200 次查看
Bulat
NXP Employee
NXP Employee

As I wrote, all GPIO pins are configured as inputs at reset. This is a hardware feature and can not be changed. You can re-configure direction of GPIO pins in the boot code if you need.

Regards,

Bulat

 

0 项奖励
回复