forked from bdring/FluidNC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
116 lines (103 loc) · 2.78 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
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
src_dir = FluidNC
include_dir = FluidNC/include
; lib_dir = libraries
test_dir = FluidNC/test
data_dir = FluidNC/data
default_envs = wifi
;extra_configs=debug.ini
[common_env_data]
lib_deps_builtin =
EEPROM
FS
Preferences
SD
SPI
SPIFFS
[common]
build_flags =
!python git-version.py
-DCORE_DEBUG_LEVEL=0
-Wno-unused-variable
-Wno-unused-function
lib_deps =
TMCStepper@>=0.7.0,<1.0.0
; thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 displays@^4.2.1
bt_deps =
BluetoothSerial
wifi_deps =
ArduinoOTA
DNSServer
ESPmDNS
Update
WebServer
WiFi
WiFiClientSecure
arduinoWebSockets=https://github.com/Links2004/arduinoWebSockets
[common_esp32]
platform = espressif32@^4.3.0
; See FluidNC/ld/esp32/README.md
extra_scripts = FluidNC/ld/esp32/vtable_in_dram.py
board = esp32dev
framework = arduino
upload_speed = 921600
board_build.partitions = min_spiffs.csv ; For 4M ESP32
; board_build.partitions = FluidNC/ld/esp32/app3M_spiffs1M_8MB.csv ; For 8Meg ESP32
; board_build.partitions = FluidNC/ld/esp32/app3M_spiffs9M_16MB.csv ; For 16Meg ESP32
monitor_speed = 115200
monitor_flags =
--eol=LF
monitor_filters=esp32_exception_decoder
board_build.f_flash = 80000000L
build_flags = ${common.build_flags}
build_src_filter =
+<*.h> +<*.s> +<*.S> +<*.cpp> +<*.c> +<src/>
+<esp32>
lib_extra_dirs =
libraries
[env:debug]
extends = common_esp32
build_type = debug
lib_deps = ${common.lib_deps}
[env:noradio]
extends = common_esp32
lib_deps = ${common.lib_deps}
[env:wifi]
extends = common_esp32
lib_deps = ${common.lib_deps} ${common.wifi_deps}
build_flags = ${common.build_flags} -DENABLE_WIFI
[env:wifi-littlefs]
board_build.filesystem = littlefs
extends = common_esp32
lib_deps = ${common.lib_deps} ${common.wifi_deps}
build_flags = ${common.build_flags} -DENABLE_WIFI -D USE_LITTLEFS
[env:bt]
extends = common_esp32
lib_deps = ${common.lib_deps} ${common.bt_deps}
build_flags = ${common.build_flags} -DENABLE_BLUETOOTH
[env:wifibt]
extends = common_esp32
lib_deps = ${common.lib_deps} ${common.bt_deps} ${common.wifi_deps}
build_flags = ${common.build_flags} -DENABLE_BLUETOOTH -DENABLE_WIFI
[env:native]
platform = native
test_build_src = true
build_src_filter =
+<*.h> +<*.s> +<*.S> +<*.cpp> +<*.c> +<src/>
+<X86TestSupport/>
-<src/I2SOut.cpp> -<src\Motors\Trinamic*.cpp>
build_flags = -IX86TestSupport -std=c++17 -limagehlp
lib_compat_mode = off
lib_deps =
google/googletest @ ^1.10.0
lib_extra_dirs =
X86TestSupport