I want to reverse Ethernet LEDs with each other?

Hi,

I would like to get access to eth_activity functions.
I want to connect green led to Eth_activity and orange one to eth_link.
In another world I want to swap this two LED with each other.
I checked eth_netos.c and found some function to control LED but I don’t know how to just change functionality of orange LED with green LED, Is there anywhere that they have been defined as GPIO and I can inverse them?
can anyone help me?
I am using connect core 9P 9215, Net+OS 7.5.

Thanks

I don’t think you can, atleast not easily. those LED’s are not controlled directly by CPU, instead, they are controlled by Erthernet PHY ICS1893CKILF on module -
P0AC (pin 49 of U10) = ETH_ACTIVITY
P2LI (pin 52 of U10) = ETH_LINK

you’d have to go through PHY’s HRM and figure out how those are programmed and if they can be changed. Quick look at the HRM here:

ICS1893CKILF HRM suggests that those might be hardcoded:
Table 8-10. ICS1893CK Multifunction Pins: PHY Address and LED Pins
Signal Name Pin No. Signals Description
P4RD 56 PHYAD[4] / Receive LED
P3TD 54 PHYAD[3] / Transmit LED
P2LI 52 PHYAD[2] / Link LED
P1CL 51 PHYAD[1] / Collision LED
[bgcolor=yellow]P0AC 49 PHYAD[0] / Activity LED[/bgcolor]

I don’t think you can, atleast not easily. those LED’s are not controlled directly by CPU, instead, they are controlled by Erthernet PHY ICS1893CKILF on module -
P0AC (pin 49 of U10) = ETH_ACTIVITY
P2LI (pin 52 of U10) = ETH_LINK

you’d have to go through PHY’s HRM and figure out how those are programmed and if they can be changed. Quick look at the HRM here:

ICS1893CKILF HRM suggests that those might be hardcoded:
Table 8-10. ICS1893CK Multifunction Pins: PHY Address and LED Pins
Signal Name Pin No. Signals Description
P4RD 56 PHYAD[4] / Receive LED
P3TD 54 PHYAD[3] / Transmit LED
[bgcolor=yellow]P2LI 52 PHYAD[2] / Link LED[/bgcolor]
P1CL 51 PHYAD[1] / Collision LED
[bgcolor=yellow]P0AC 49 PHYAD[0] / Activity LED[/bgcolor]