GPIO_PinInit

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

GPIO_PinInit

753 Views
davidzhu
Contributor III

Hi

 

In SDK_2.10_RT1060,  lwip_tcpecho_bm.c, I can see below 4  GPIO_PinInits at line 137

GPIO_PinInit(GPIO1, 9, &gpio_config);
GPIO_PinInit(GPIO1, 10, &gpio_config);
/* pull up the ENET_INT before RESET. */
GPIO_WritePinOutput(GPIO1, 10, 1);
GPIO_WritePinOutput(GPIO1, 9, 0);
delay();
GPIO_WritePinOutput(GPIO1, 9, 1);

 

Could somebody let me know the meaning?

 

Thank you very much.

Labels (1)
0 Kudos
1 Reply

745 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @davidzhu ,

   Please check the MIMXRT1060-EVK schematic:

kerryzhou_0-1634890973472.png

kerryzhou_1-1634890986089.png

kerryzhou_2-1634890993387.png

So,  the code function is also in the comment:

/* pull up the ENET_INT before RESET. */
GPIO_WritePinOutput(GPIO1, 10, 1);
GPIO_WritePinOutput(GPIO1, 9, 0);
delay();
GPIO_WritePinOutput(GPIO1, 9, 1);

It is used to configure the external PHY.

 

Wish it helps you!

Best Regards,

Kerry

 

 

 

0 Kudos