mirror of
https://github.com/jscrane/Apple1.git
synced 2025-02-16 17:30:28 +00:00
* extract disp from io * extract screen_disp * working * ... * working * refactor * config
43 lines
813 B
C
43 lines
813 B
C
#ifndef __CONFIG_H__
|
|
#define __CONFIG_H__
|
|
|
|
#define RAM_TOP 0xd000u
|
|
|
|
#if (RAM_SIZE >= RAM_TOP)
|
|
#define RAM_PAGES (RAM_TOP / ram<>::page_size)
|
|
|
|
#elif defined(USE_SPIRAM)
|
|
#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)
|
|
|
|
#endif
|
|
|
|
// uncomment to use TFT / VGA display
|
|
// otherwise serial terminal is used
|
|
//#define SCREEN_SERIAL_DSP
|
|
|
|
#define FG_COLOUR GREEN
|
|
#define BG_COLOUR BLACK
|
|
|
|
#if defined(USE_UTFT)
|
|
#define ORIENT landscape
|
|
#elif defined(USE_ESPI)
|
|
#define ORIENT reverse_landscape
|
|
#elif defined(USE_VGA)
|
|
#define ORIENT landscape
|
|
#endif
|
|
|
|
#if defined(USE_SD)
|
|
#define PROGRAMS "/apple1/"
|
|
#else
|
|
#define PROGRAMS "/"
|
|
#endif
|
|
|
|
#define KRUSADER
|
|
|
|
#endif
|