2018-02-18 01:44:04 +00:00
|
|
|
#ifndef __GLOBALS_H
|
|
|
|
#define __GLOBALS_H
|
|
|
|
|
2021-01-20 03:56:38 +00:00
|
|
|
#ifdef TEENSYDUINO
|
|
|
|
#include <Arduino.h>
|
|
|
|
#endif
|
|
|
|
|
2017-02-19 23:55:54 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "filemanager.h"
|
|
|
|
#include "cpu.h"
|
|
|
|
#include "vm.h"
|
|
|
|
#include "physicaldisplay.h"
|
|
|
|
#include "physicalkeyboard.h"
|
2021-01-11 04:52:58 +00:00
|
|
|
#include "physicalmouse.h"
|
2017-02-19 23:55:54 +00:00
|
|
|
#include "physicalspeaker.h"
|
|
|
|
#include "physicalpaddles.h"
|
2017-02-20 23:41:46 +00:00
|
|
|
#include "physicalprinter.h"
|
2018-01-07 19:43:17 +00:00
|
|
|
#include "vmui.h"
|
2018-01-10 09:13:04 +00:00
|
|
|
#include "vmram.h"
|
2017-02-19 23:55:54 +00:00
|
|
|
|
2018-02-07 15:20:26 +00:00
|
|
|
// display modes
|
|
|
|
enum {
|
|
|
|
M_NORMAL = 0,
|
|
|
|
M_SELECTED = 1,
|
|
|
|
M_DISABLED = 2,
|
2021-01-09 17:15:12 +00:00
|
|
|
M_SELECTDISABLED = 3,
|
|
|
|
M_PLAIN = 4
|
2018-02-07 15:20:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// debug modes
|
|
|
|
enum {
|
|
|
|
D_NONE = 0,
|
|
|
|
D_SHOWFPS = 1,
|
|
|
|
D_SHOWMEMFREE = 2,
|
|
|
|
D_SHOWPADDLES = 3,
|
|
|
|
D_SHOWPC = 4,
|
|
|
|
D_SHOWCYCLES = 5,
|
|
|
|
D_SHOWBATTERY = 6,
|
2020-07-04 11:40:45 +00:00
|
|
|
D_SHOWTIME = 7,
|
|
|
|
D_SHOWDSK = 8
|
2018-02-07 15:20:26 +00:00
|
|
|
};
|
|
|
|
|
2017-02-19 23:55:54 +00:00
|
|
|
extern FileManager *g_filemanager;
|
|
|
|
extern Cpu *g_cpu;
|
|
|
|
extern VM *g_vm;
|
|
|
|
extern PhysicalDisplay *g_display;
|
|
|
|
extern PhysicalKeyboard *g_keyboard;
|
2021-01-11 04:52:58 +00:00
|
|
|
extern PhysicalMouse *g_mouse;
|
2017-02-19 23:55:54 +00:00
|
|
|
extern PhysicalSpeaker *g_speaker;
|
|
|
|
extern PhysicalPaddles *g_paddles;
|
2017-02-20 23:41:46 +00:00
|
|
|
extern PhysicalPrinter *g_printer;
|
2018-01-07 19:43:17 +00:00
|
|
|
extern VMui *g_ui;
|
2018-02-18 01:44:04 +00:00
|
|
|
extern int8_t g_volume;
|
2017-02-19 23:55:54 +00:00
|
|
|
extern uint8_t g_displayType;
|
2018-01-10 09:13:04 +00:00
|
|
|
extern VMRam g_ram;
|
2018-02-07 15:20:26 +00:00
|
|
|
extern volatile uint8_t g_debugMode;
|
|
|
|
extern volatile bool g_biosInterrupt;
|
|
|
|
extern uint32_t g_speed;
|
2020-07-07 01:31:37 +00:00
|
|
|
extern bool g_invertPaddleX;
|
|
|
|
extern bool g_invertPaddleY;
|
2020-07-08 20:37:26 +00:00
|
|
|
|
2021-01-19 23:40:13 +00:00
|
|
|
extern uint8_t g_luminanceCutoff;
|
|
|
|
|
2020-07-12 16:46:02 +00:00
|
|
|
extern char debugBuf[255];
|
|
|
|
|
2021-01-10 02:32:40 +00:00
|
|
|
#ifdef TEENSYDUINO
|
|
|
|
extern char fsbuf[200];
|
|
|
|
#endif
|
|
|
|
|
2018-02-18 01:44:04 +00:00
|
|
|
#endif
|