2021-02-20 09:13:46 +00:00
|
|
|
#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
|
2014-11-11 17:13:25 +00:00
|
|
|
|
2018-11-12 22:15:49 +00:00
|
|
|
#else
|
2021-02-20 09:13:46 +00:00
|
|
|
#define RAM_PAGES (RAM_SIZE / ram::page_size)
|
|
|
|
|
2018-11-12 22:15:49 +00:00
|
|
|
#endif
|
2014-11-14 12:27:56 +00:00
|
|
|
|
2014-11-11 17:13:25 +00:00
|
|
|
#define CPU_INSTRUCTIONS 1000
|
|
|
|
|
2023-07-25 15:51:34 +00:00
|
|
|
#define FG_COLOUR GREEN
|
|
|
|
#define BG_COLOUR BLACK
|
2018-11-16 10:49:08 +00:00
|
|
|
|
2018-11-18 12:48:10 +00:00
|
|
|
#if defined(USE_UTFT)
|
2023-07-25 15:51:34 +00:00
|
|
|
#define ORIENT landscape
|
2018-11-18 12:48:10 +00:00
|
|
|
#elif defined(USE_ESPI)
|
2023-07-25 15:51:34 +00:00
|
|
|
#define ORIENT reverse_landscape
|
|
|
|
#elif defined(USE_VGA)
|
|
|
|
#define ORIENT landscape
|
2018-11-18 12:48:10 +00:00
|
|
|
#endif
|
|
|
|
|
2018-11-16 10:49:08 +00:00
|
|
|
#if defined(USE_SD)
|
2014-11-14 11:45:28 +00:00
|
|
|
#define PROGRAMS "/apple1/"
|
2018-11-16 10:49:08 +00:00
|
|
|
#else
|
|
|
|
#define PROGRAMS "/"
|
|
|
|
#endif
|
2014-11-11 17:13:25 +00:00
|
|
|
|
2018-11-12 07:47:06 +00:00
|
|
|
#define KRUSADER
|
2014-11-17 20:14:31 +00:00
|
|
|
|
2014-11-11 17:13:25 +00:00
|
|
|
#endif
|