GPIO_PinInit

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GPIO_PinInit

1,854件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
1 返信

1,846件の閲覧回数
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 件の賞賛
返信