i.mx rt1020-evk:Why configure the pin GPIO1-4 in the enet driver ?

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

i.mx rt1020-evk:Why configure the pin GPIO1-4 in the enet driver ?

跳至解决方案
691 次查看
diangongcxq
Contributor II

I found a piece of code that confused me when I was using enet driver on the rt1020-evk.ALL SDKS about the enet have the following code:

GPIO_WritePinOutput(GPIO1, 22, 1);
GPIO_WritePinOutput(GPIO1, 4, 0);
delay();
GPIO_WritePinOutput(GPIO1, 4, 1);

 

what confuses me is that GPIO1-4 has nothing to do with phy chip (KSZ8081RNB).I hope you can help me solve my confusion.

Thanks!

标签 (4)
0 项奖励
1 解答
627 次查看
mjbcswitzerland
Specialist V

Hi

GPIO1-4 is the Ethernet Reset signal.

GPIO1-22 is the Ethernet interrupt signal

https://www.youtube.com/watch?v=SmFTi8hlba0


Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]

在原帖中查看解决方案

1 回复
628 次查看
mjbcswitzerland
Specialist V

Hi

GPIO1-4 is the Ethernet Reset signal.

GPIO1-22 is the Ethernet interrupt signal

https://www.youtube.com/watch?v=SmFTi8hlba0


Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]