Skip to content

Commit

Permalink
Merge pull request #23 from DnCraptor/psram-pages
Browse files Browse the repository at this point in the history
 + missed commit
  • Loading branch information
xrip authored Dec 3, 2023
2 parents ab0fef2 + 78999d9 commit 6cd41e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ INLINE uint8_t read86page(uint32_t addr32) {
return read86rom(addr32);
}

INLINE uint16_t read86sdcard16(uint32_t addr32) {
INLINE uint16_t read86page16(uint32_t addr32) {
if (addr32 < RAM_PAGE_SIZE) {
// First page block fast access
return read16arr(RAM, 0, addr32);
Expand Down
2 changes: 1 addition & 1 deletion src/ram_page.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ extern psram_spi_inst_t psram_spi;

void read_vram_block(char* dst, uint32_t file_offset, uint32_t sz) {
if (PSRAM_AVAILABLE) {
psram_readpsram_read(&psram_spi, file_offset, dst, sz);
psram_read(&psram_spi, file_offset, dst, sz);
return;
}
gpio_put(PICO_DEFAULT_LED_PIN, true);
Expand Down

0 comments on commit 6cd41e4

Please sign in to comment.