mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Add ability to assign a name to a port
This commit is contained in:
1 parent
d4d12fe3b4
commit
41f0dad49d
10 files changed
+79
-27
No files matched your search
+8
-5
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user