mirror of
https://github.com/jscrane/Apple1.git
synced 2024-10-14 08:23:44 +00:00
41 lines
751 B
C
41 lines
751 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 / DVI display
|
|
// otherwise serial terminal is used
|
|
#define SCREEN_SERIAL_DSP
|
|
|
|
#define FG_COLOUR GREEN
|
|
#define BG_COLOUR BLACK
|
|
|
|
#if defined(USE_ESPI)
|
|
#define ORIENT reverse_landscape
|
|
#else
|
|
#define ORIENT landscape
|
|
#endif
|
|
|
|
#if defined(USE_SD)
|
|
#define PROGRAMS "/apple1/"
|
|
#else
|
|
#define PROGRAMS "/"
|
|
#endif
|
|
|
|
#define KRUSADER
|
|
|
|
#endif
|