-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSD-OS_R4.h
More file actions
40 lines (36 loc) · 1.09 KB
/
Copy pathSD-OS_R4.h
File metadata and controls
40 lines (36 loc) · 1.09 KB
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
/****************************************************************************/
/* SD-Card configuration */
/* */
/* Achim Jenne 22.10.2025 */
/****************************************************************************/
#ifndef SDOS_R4
#define SDOS_R4
#define LED_RX LEDR
#define LED_TX LEDG
//XModem
#define SOH 0x01 // 128 byte X-Modem
#define STX 0x02 // 1024 byte X/Y-Modem
#define EOT 0x04
#define ACK 0x06
#define NAK 0x15
#define CAN 0x18
#define PAD 0x1a
// #define X_BLOCK_SIZE 128
#define Y_BSIZE 1024
#define X_BSIZE 128
#define Y_TIOUT 10000
#define X_TIMEOUT 5000
#define X_RETRANS 10
// #define DEBUG
#define C_BS 0x08
#define C_ESC 0x1b
#define S_CLS F("\e[0H\e[2J")
#define S_CR F("\r\n>")
#define ILINE 80
#define PGROL 25
#define NADC 4
#define UVCC (4.87f/16384)
//#define SDCRD SPI_FULL_SPEED,PIN_SPI_CS
#define SDCRD PIN_SPI_CS
// int func_MonParser(char *);
#endif