Remove useless port mirrors.

This commit is contained in:
Oliver Schmidt 2024-02-09 22:07:08 +01:00 committed by Terence Boldt
parent ab601d0897
commit 3441a73d9d

View File

@ -47,12 +47,12 @@ void __time_critical_func(board)(void) {
if (read) { if (read) {
if (!io) { // DEVSEL if (!io) { // DEVSEL
switch (addr & 0x7) { switch (addr & 0xF) {
case 0x3: case 0xB:
a2pico_putdata(pio0, !multicore_fifo_rvalid() << 7 | a2pico_putdata(pio0, !multicore_fifo_rvalid() << 7 |
!multicore_fifo_wready() << 6); !multicore_fifo_wready() << 6);
break; break;
case 0x6: case 0xE:
a2pico_putdata(pio0, sio_hw->fifo_rd); a2pico_putdata(pio0, sio_hw->fifo_rd);
break; break;
} }
@ -64,13 +64,13 @@ void __time_critical_func(board)(void) {
} else { } else {
uint32_t data = a2pico_getdata(pio0); uint32_t data = a2pico_getdata(pio0);
if (!io) { // DEVSEL if (!io) { // DEVSEL
switch (addr & 0x7) { switch (addr & 0xF) {
case 0x5:
sio_hw->fifo_wr = data;
break;
case 0x7: case 0x7:
page = (data & 0x30) << 7; page = (data & 0x30) << 7;
break; break;
case 0xD:
sio_hw->fifo_wr = data;
break;
} }
} }
} }