mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
gpio: SOC only has 64 gpio not 96.
Remove BANK_A Rename BANK_B to GPIO_00_31 Rename BACK_C to GPIO_32_63 Added also _INPUT, _DIRECTIOn registers
This commit is contained in:
+2
-2
@@ -423,13 +423,13 @@ void port_stats_print(void) __banked
|
||||
break;
|
||||
}
|
||||
} else { // An SFP Module TODO: This is for 1 module devices
|
||||
reg_read_m(RTL837X_REG_GPIO_B);
|
||||
reg_read_m(RTL837X_REG_GPIO_00_31_INPUT);
|
||||
if (!(sfr_data[0] & 0x40)) {
|
||||
print_string("SFP OK\t");
|
||||
} else {
|
||||
print_string("NO SFP\t");
|
||||
}
|
||||
reg_read_m(RTL837X_REG_GPIO_C);
|
||||
reg_read_m(RTL837X_REG_GPIO_32_63_INPUT);
|
||||
if (sfr_data[3] & 0x20) {
|
||||
print_string("Down\t");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user