forked from MobiFlight/MobiFlight-FirmwareSource
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
147 lines (138 loc) · 3.59 KB
/
platformio.ini
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
; PlatformIO Project Configuration File
;
; Supported platforms for the MobiFlight firmware are:
; atmega2560
; promicro
; uno
;
; Version numbers for releases are automatically applied by GitHub
; during the release build process based on the tag associated with
; the GitHub release.
; To ensure builds work correctly in GitHub the default_envs
; should always be set to all supported MobiFlight platforms.
; If you want to only build a single platform locally during
; development use VSCode to change the target to a non-default
; by clicking on the target name in the bottom status bar.
; Common build settings across all devices
[env]
lib_deps =
waspinator/AccelStepper @ 1.61
https://github.com/MobiFlight/LiquidCrystal_I2C#v1.1.4
https://github.com/MobiFlight/Arduino-CmdMessenger#4.2.1
custom_lib_deps_Atmel =
arduino-libraries/Servo @ 1.1.8
custom_lib_deps_Pico =
ricaun/ArduinoUniqueID @ ^1.3.0
build_flags =
-DMF_REDUCE_FUNCT_LEDCONTROL
-DMAXCALLBACKS=35
-DSERIAL_RX_BUFFER_SIZE=96
-DMESSENGERBUFFERSIZE=96
-DMAXSTREAMBUFFERSIZE=96
-DDEFAULT_TIMEOUT=5000
; -DREVERSED_OUTPUT_OUTPUT
; -DREVERSED_OUTPUT_OUTPUTSHIFTER
; -DDEBUG2CMDMESSENGER=1
-I./src/MF_Analog
-I./src/MF_Button
-I./src/MF_Encoder
-I./src/MF_InputShifter
-I./src/MF_DigInMux
-I./src/MF_LCDDisplay
-I./src/MF_Output
-I./src/MF_OutputShifter
-I./src/MF_Segment
-I./src/MF_Servo
-I./src/MF_Stepper
-I./src/MF_Modules
build_src_filter =
+<*>
-<./MF_CustomDevice>
extra_scripts =
pre:get_version.py
copy_fw_files.py
; Build settings for the Arduino Mega
[env:mobiflight_mega]
platform = atmelavr
board = megaatmega2560
framework = arduino
build_flags =
${env.build_flags}
-I./_Boards/Atmel/Board_Mega
build_src_filter =
${env.build_src_filter}
lib_deps =
${env.lib_deps}
${env.custom_lib_deps_Atmel}
monitor_speed = 115200
extra_scripts =
${env.extra_scripts}
; Build settings for the Arduino Pro Micro
[env:mobiflight_micro]
platform = atmelavr
board = sparkfun_promicro16
framework = arduino
build_flags =
${env.build_flags}
-I./_Boards/Atmel/Board_ProMicro
build_src_filter =
${env.build_src_filter}
lib_deps =
${env.lib_deps}
${env.custom_lib_deps_Atmel}
monitor_speed = 115200
extra_scripts =
${env.extra_scripts}
; Build settings for the Arduino Uno
[env:mobiflight_uno]
platform = atmelavr
board = uno
framework = arduino
build_flags =
${env.build_flags}
-I./_Boards/Atmel/Board_Uno
build_src_filter =
${env.build_src_filter}
lib_deps =
${env.lib_deps}
${env.custom_lib_deps_Atmel}
monitor_speed = 115200
extra_scripts =
${env.extra_scripts}
; Build settings for the Arduino Nano
[env:mobiflight_nano]
platform = atmelavr
board = nanoatmega328
framework = arduino
build_flags =
${env.build_flags}
-I./_Boards/Atmel/Board_Nano
build_src_filter =
${env.build_src_filter}
lib_deps =
${env.lib_deps}
${env.custom_lib_deps_Atmel}
monitor_speed = 115200
extra_scripts =
${env.extra_scripts}
; Build settings for the Raspberry Pico original
[env:mobiflight_raspberrypico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = pico
framework = arduino
board_build.core = earlephilhower ; select new core
board_build.filesystem_size = 0M ; configure filesystem size. Default 0 Mbyte.
lib_ldf_mode = chain+
upload_protocol = mbed ; for debugging upoading can be changed to picoprobe
;debug_tool = picoprobe ; and uncomment this for debugging w/ picoprobe
build_flags =
${env.build_flags}
-I./_Boards/RaspberryPi/Pico
build_src_filter =
${env.build_src_filter}
lib_deps =
${env.lib_deps}
${env.custom_lib_deps_Pico}
monitor_speed = 115200
extra_scripts =
${env.extra_scripts}