Add ability to assign a name to a port

This commit is contained in:
feelfree69
2026-04-13 14:55:10 +02:00
parent d4d12fe3b4
commit 41f0dad49d
10 changed files with 79 additions and 27 deletions
+8 -5
View File
@@ -367,12 +367,15 @@ void phy_show(uint8_t port) __banked
print_string("5G");
break;
default:
print_string("10M");
print_string("Down");
}
if ( (((v & 0x0600) >> 7) | ((v & 0x0030) >> 4)) <= 6) { // Link is up
if (v & 0x8)
print_string(" full duplex");
else
print_string(" half duplex");
}
if (v & 0x8)
print_string(" full duplex");
else
print_string(" half duplex");
phy_read(port, PHY_MMD_AN, PHY_ANEG_CTRL);
v = SFR_DATA_U16;