-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
42 lines (35 loc) · 820 Bytes
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
// Screen
#define BG_COLOUR BLACK
#define FG_COLOUR GREEN
#define CHARS_PER_LINE 40
#define SCREEN_LINES 25
#define SCREEN_RAM_SIZE 0x0400
#if defined(USE_UTFT)
#define ORIENT landscape
#elif defined(USE_ESPI)
#define ORIENT reverse_landscape
#elif defined(USE_VGA)
#define ORIENT landscape
#endif
// SPI-RAM
#if defined(USE_SPIRAM)
#define SPIRAM_BASE RAM_SIZE
#define SPIRAM_EXTENT ((0x8000 - RAM_SIZE) / Memory::page_size)
#endif
#define RAM_PAGES (RAM_SIZE / ram<>::page_size)
// where programs and images are stored
#if defined(USE_SD)
#define PROGRAMS "/pet/"
#else
#define PROGRAMS "/"
#endif
// rom set
#if !defined(ROM_SET)
#define ROM_SET series4
//#define ROM_SET series2
#endif
// character set
#if !defined(CHARSET_ROM)
#define CHARSET_ROM "roms/characters2.h"
#endif