1
µTasker general / How do we re-initalise the ethernet phy
« on: July 28, 2009, 03:09:24 PM »
How do you re-initalise the ethernet connection ?
I can see that the fnTaskEthernet function creates a local instance of the ETHTABLE structure called ethernet, its loads it up then 'opens' the device returning a handle thats used from then on ...
My PHY is attached to a reset line which other IC's are attached to, occasionally we want to reset these other IC's so the PHY gets reset, not ideal. Using utasker whats the best way of re-initalising the PHY/ethernet connection with out restarting utasker.
do i just clear the Ethernet_handle and let the ethernet task re-init or ... is there away of closing an open handle?
Thanks
Carl
I can see that the fnTaskEthernet function creates a local instance of the ETHTABLE structure called ethernet, its loads it up then 'opens' the device returning a handle thats used from then on ...
My PHY is attached to a reset line which other IC's are attached to, occasionally we want to reset these other IC's so the PHY gets reset, not ideal. Using utasker whats the best way of re-initalising the PHY/ethernet connection with out restarting utasker.
do i just clear the Ethernet_handle and let the ethernet task re-init or ... is there away of closing an open handle?
Thanks
Carl