forked from MobiFlight/MobiFlight-FirmwareSource
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMFBoards.h
More file actions
103 lines (97 loc) · 2.15 KB
/
Copy pathMFBoards.h
File metadata and controls
103 lines (97 loc) · 2.15 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
//
// MFBoards.h (Arduino Mega)
//
// (C) MobiFlight Project 2022
//
#ifndef MFBoardMega_h
#define MFBoardMega_h
#ifndef MF_SEGMENT_SUPPORT
#define MF_SEGMENT_SUPPORT 1
#endif
#ifndef MF_LCD_SUPPORT
#define MF_LCD_SUPPORT 1
#endif
#ifndef MF_STEPPER_SUPPORT
#define MF_STEPPER_SUPPORT 1
#endif
#ifndef MF_SERVO_SUPPORT
#define MF_SERVO_SUPPORT 1
#endif
#ifndef MF_ANALOG_SUPPORT
#define MF_ANALOG_SUPPORT 1
#endif
#ifndef MF_OUTPUT_SHIFTER_SUPPORT
#define MF_OUTPUT_SHIFTER_SUPPORT 1
#endif
#ifndef MF_INPUT_SHIFTER_SUPPORT
#define MF_INPUT_SHIFTER_SUPPORT 1
#endif
#ifndef MF_MUX_SUPPORT
#define MF_MUX_SUPPORT 1
#endif
#ifndef MF_DIGIN_MUX_SUPPORT
#define MF_MUX_SUPPORT 1
#define MF_DIGIN_MUX_SUPPORT 1
#endif
#ifndef MF_CUSTOMDEVICE_SUPPORT
#define MF_CUSTOMDEVICE_SUPPORT 1
#endif
#ifndef MAX_OUTPUTS
#define MAX_OUTPUTS 40
#endif
#ifndef MAX_BUTTONS
#define MAX_BUTTONS 68
#endif
#ifndef MAX_LEDSEGMENTS
#define MAX_LEDSEGMENTS 4
#endif
#ifndef MAX_ENCODERS
#define MAX_ENCODERS 20
#endif
#ifndef MAX_STEPPERS
#define MAX_STEPPERS 10
#endif
#ifndef MAX_MFSERVOS
#define MAX_MFSERVOS 10
#endif
#ifndef MAX_MFLCD_I2C
#define MAX_MFLCD_I2C 2
#endif
#ifndef MAX_ANALOG_INPUTS
#define MAX_ANALOG_INPUTS 16
#endif
#ifndef MAX_OUTPUT_SHIFTERS
#define MAX_OUTPUT_SHIFTERS 4
#endif
#ifndef MAX_INPUT_SHIFTERS
#define MAX_INPUT_SHIFTERS 4
#endif
#ifndef MAX_DIGIN_MUX
#define MAX_DIGIN_MUX 4
#endif
#ifndef MAX_CUSTOM_DEVICES
#define MAX_CUSTOM_DEVICES 5
#endif
#ifndef MOBIFLIGHT_TYPE
#define MOBIFLIGHT_TYPE "MobiFlight Mega"
#endif
#ifndef MOBIFLIGHT_SERIAL
#define MOBIFLIGHT_SERIAL "1234567890"
#endif
#ifndef MOBIFLIGHT_NAME
#define MOBIFLIGHT_NAME "MobiFlight Mega"
#endif
#ifndef EEPROM_SIZE
#define EEPROM_SIZE 4096 // EEPROMSizeMega
#endif
#ifndef MEMLEN_CONFIG
#define MEMLEN_CONFIG 1496 // max. size for config which wil be stored in EEPROM
#endif
#ifndef MEMLEN_NAMES_BUFFER
#define MEMLEN_NAMES_BUFFER 1000 // max. size for configBuffer, contains only names from inputs
#endif
#ifndef MF_MAX_DEVICEMEM
#define MF_MAX_DEVICEMEM 1500 // max. memory size for devices
#endif
#endif
// MFBoards.h