forked from breakintoprogram/agon-vdp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
agon.h
50 lines (39 loc) · 1.59 KB
/
agon.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
43
44
45
46
47
48
49
50
//
// Title: Agon Video BIOS - Function prototypes
// Author: Dean Belfield
// Created: 05/09/2022
// Last Updated: 04/03/2023
//
// Modinfo:
// 04/03/2023: Added LOGICAL_SCRW and LOGICAL_SCRH
#pragma once
#define ESPSerial Serial2
#define USE_HWFLOW 1 // Flow Control: 1 = enable hardware flow control to eZ80
#define UART_BR 384000
#define UART_NA -1
#define UART_TX 2
#define UART_RX 34
#define UART_RTS 13 // The ESP32 RTS pin (eZ80 CTS)
#define UART_CTS 14 // The ESP32 CTS pin (eZ80 RTS)
#define UART_RX_SIZE 256 // The RX buffer size
#define UART_RX_THRESH 128 // Point at which RTS is toggled
#define GPIO_ITRP 17 // VSync Interrupt Pin - for reference only
#define PACKET_GP 0 // General poll data
#define PACKET_KEYCODE 1 // Keyboard data
#define PACKET_CURSOR 2 // Cursor positions
#define PACKET_SCRCHAR 3 // Character read from screen
#define PACKET_SCRPIXEL 4 // Pixel read from screen
#define PACKET_AUDIO 5 // Audio acknowledgement
#define PACKET_MODE 6 // Get screen dimensions
#define AUDIO_CHANNELS 3 // Number of audio channels
#define PLAY_SOUND_PRIORITY 3 // Sound driver task priority with 3 (configMAX_PRIORITIES - 1) being the highest, and 0 being the lowest
#define LOGICAL_SCRW 1280 // As per the BBC Micro standard
#define LOGICAL_SCRH 1024
#if CONFIG_FREERTOS_UNICORE
#define ARDUINO_RUNNING_CORE 0
#else
#define ARDUINO_RUNNING_CORE 1
#endif
// Function Prototypes
//
void debug_log(const char *format, ...);