track library update

This commit is contained in:
steve 2023-11-18 12:38:44 +00:00
parent c32c2b5098
commit 15640398b7
2 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ prom b(basic, sizeof(basic));
prom m(monitor, sizeof(monitor));
#endif
ram pages[RAM_PAGES];
ram<> pages[RAM_PAGES];
//socket_filer files("apple1");
#if defined(USE_SD)
sd_filer files(PROGRAMS);
@ -66,7 +66,7 @@ void setup() {
hardware_init(cpu);
for (unsigned i = 0; i < RAM_PAGES; i++)
memory.put(pages[i], i * ram::page_size);
memory.put(pages[i], i * ram<>::page_size);
#if defined(USE_SPIRAM)
memory.put(sram, SPIRAM_BASE, SPIRAM_EXTENT);

View File

@ -4,15 +4,15 @@
#define RAM_TOP 0xd000u
#if (RAM_SIZE >= RAM_TOP)
#define RAM_PAGES (RAM_TOP / ram::page_size)
#define RAM_PAGES (RAM_TOP / ram<>::page_size)
#elif defined(USE_SPIRAM)
#define RAM_PAGES (RAM_SIZE / ram::page_size)
#define RAM_PAGES (RAM_SIZE / ram<>::page_size)
#define SPIRAM_BASE RAM_SIZE
#define SPIRAM_EXTENT min(RAM_TOP - SPIRAM_BASE, SPIRAM_SIZE) / Memory::page_size
#else
#define RAM_PAGES (RAM_SIZE / ram::page_size)
#define RAM_PAGES (RAM_SIZE / ram<>::page_size)
#endif