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:
+1
-1
@@ -428,7 +428,7 @@ void cmd_parser(void) __banked
|
||||
|
||||
if (cmd_compare(0, "gpio")) {
|
||||
for (uint8_t idx = 0; idx < 3; idx++) {
|
||||
reg_read(RTL837X_REG_GPIO_A + (idx * 4));
|
||||
reg_read(RTL837X_REG_GPIO_32_63_OUTPUT + (idx * 4));
|
||||
print_string("GPIO ");
|
||||
write_char(idx + 'A');
|
||||
write_char(':');
|
||||
|
||||
Reference in New Issue
Block a user