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

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

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

Jump to solution
666 Views
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!

Labels (4)
0 Kudos
1 Solution
602 Views
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]

View solution in original post

1 Reply
603 Views
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]