mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Add 5G speed display support and 5/10G EEE display/settings
This commit is contained in:
@@ -661,6 +661,14 @@ void parse_port(void)
|
||||
else if (cmd_compare(3, "full"))
|
||||
phy_settings.duplex = PHY_DUPLEX_FULL;
|
||||
phy_set_speed();
|
||||
} else if (cmd_compare(2, "10g")) {
|
||||
print_string(" 10G\n");
|
||||
phy_settings.speed = PHY_SPEED_10G;
|
||||
phy_set_speed();
|
||||
} else if (cmd_compare(2, "5g")) {
|
||||
print_string(" 5G\n");
|
||||
phy_settings.speed = PHY_SPEED_5G;
|
||||
phy_set_speed();
|
||||
} else if (cmd_compare(2, "2g5")) {
|
||||
print_string(" 2.5G\n");
|
||||
phy_settings.speed = PHY_SPEED_2G5;
|
||||
@@ -1062,6 +1070,9 @@ void parse_eee(void)
|
||||
__xdata int8_t port = -1;
|
||||
__xdata uint8_t speed = EEE_2G5;
|
||||
__xdata uint8_t speed_word = 0;
|
||||
|
||||
if (machine.n_10g)
|
||||
speed = EEE_10G;
|
||||
// Check if word 2 is a speed (contains 'g' or 'm') or a port number
|
||||
if (cmd_words_len >= 3) {
|
||||
uint8_t idx = cmd_words_b[2];
|
||||
|
||||
Reference in New Issue
Block a user