[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] how to set the link up

From: Noam Weissman
Subject: Re: [lwip-users] how to set the link up
Date: Wed, 5 Jul 2017 13:22:27 +0000


Yes this is what I did... created a task. I have attached it here, I hope it 
will give you a clue to what I did.


-----Original Message-----
From: lwip-users [mailto:address@hidden On Behalf Of massimiliano cialdi
Sent: Wednesday, July 05, 2017 4:02 PM
To: address@hidden
Subject: Re: [lwip-users] how to set the link up

On 05/07/2017 13:59, Noam Weissman wrote:
> >From what I have seen the KSZ8081RNACA is an IEEE compliant PHY... that 
> >means that the driver is standard.
> You need to read PHY_BSR register (1) and check bit 3 ... this is the link 
> status. This is what I am doing in a task.
> The reason for doing the above is that a PHY with RMII has no link 
> interrupt and the simplest way is to read the basic status register.
Yes, I know, but I wonder where, in the code, to poll that register. Do I need 
to provide a task as you do? And netif_set_link_up() has to be called only from 
this task?

> Do you have a fully functional driver and initialize code that works for you ?
I have an implementation... Is the sample code provided by NXP in
KSDK2.2 (our board is very similar to FRDM K64). They do some strange things, 
but they have provided a task that only deals with receiving the data from 
network. PHY polling is done in an high level (application) task that deal with 
UDP packets.

best regards

lwip-users mailing list

Attachment: ETH_LinkTask.c
Description: ETH_LinkTask.c

reply via email to

[Prev in Thread] Current Thread [Next in Thread]