-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconf.h
25 lines (23 loc) · 997 Bytes
/
conf.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
// config flags
#define CONF_CRLF (1<<0)
#define CONF_AUTOCR (1<<1)
#define CONF_UNSHIFT_ON_SPACE (1<<2)
#define CONF_TRANSLATE (1<<3)
#define CONF_8BIT (1<<4)
#define CONF_SHOWBREAK (1<<5)
#define CONF_AUTOPRINT (1<<6)
#define EEP_CONFIGURED_LOCATION 0
#define EEP_CONFIGURED_SIZE 2
#define EEP_CONFIGURED_MAGIC 0x4545
#define EEP_BAUDDIV_LOCATION 2
#define EEP_BAUDDIV_SIZE 2
#define EEP_CONFFLAGS_LOCATION 4
#define EEP_CONFFLAGS_SIZE 1
#define EEP_TABLE_SELECT_LOCATION 5
#define EEP_TABLE_SELECT_SIZE 1
// these will be used for multiple and/or redefinable translation tables
#define EEP_TABLES_START 128
#define EEP_TABLE_SIZE 64
#define FIGS_OFFSET 32 // for each table, LTRS table is first, then FIGS table @32
// atmega16u2 will have room for 6 tables, 32u2 will fit 14. Should be more than
// enough. I'm not doing 6 bit support unless someone really reallly needs it.