-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSD-OS_R4.h
More file actions
34 lines (31 loc) · 984 Bytes
/
Copy pathSD-OS_R4.h
File metadata and controls
34 lines (31 loc) · 984 Bytes
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
/****************************************************************************/
/* SD-Card configuration */
/* */
/* Achim Jenne 22.10.2025 */
/****************************************************************************/
#ifndef SDOS_R4
#define SDOS_R4
//XModem
#define SOH 0x01 // 128 byte X-Modem
#define STX 0x02 // 1024 byte X-Modem
#define EOT 0x04
#define ACK 0x06
#define NAK 0x15
#define CAN 0x18
#define PAD 0x1a
#define X_BLOCK_SIZE 128
#define X_TIMEOUT 5000
#define X_RETRANS 10
#define DEBUG
// #define CHKCRC
#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
#endif