-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
104 lines (92 loc) · 3.6 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
; 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
[env:nanoatmega328]
platform = atmelavr
board = uno
framework = arduino
build_flags = -Wl,--undefined,_printf_float, -D __RUNTIME_PRODUCTION__
monitor_speed = 115200
extra_scripts = pre:filter_src.py
[env:blackpill_f401cc]
platform = ststm32
board = blackpill_f401cc
framework = arduino
debug_tool = stlink
upload_protocol = dfu ; stlink, dfu
build_flags = -Wl,--undefined,_printf_float, -D __RUNTIME_DEBUG__ -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC -D USBCON -D USBD_VID=0x0483 -D USBD_PID=0x5740 -D USB_MANUFACTURER="STMicroelectronics" -D USB_PRODUCT="\"STM32 F401"\" -D HAL_PCD_MODULE_ENABLED
extra_scripts = pre:filter_src.py
[env:blackpill_f401cc_production]
platform = ststm32
board = blackpill_f401cc
framework = arduino
debug_tool = stlink
upload_protocol = dfu ; stlink, dfu
build_flags = -Wl,--undefined,_printf_float, -D __RUNTIME_PRODUCTION__ -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC -D USBCON -D USBD_VID=0x0483 -D USBD_PID=0x5740 -D USB_MANUFACTURER="STMicroelectronics" -D USB_PRODUCT="\"STM32 F401"\" -D HAL_PCD_MODULE_ENABLED
extra_scripts = pre:filter_src.py
[env:black_f401rc]
platform = ststm32
board = genericSTM32F401RC
framework = arduino
debug_tool = stlink
upload_protocol = dfu ; stlink, dfu
build_flags = -Wl,--undefined,_printf_float, -D __RUNTIME_DEBUG__ -D LED_BUILTIN=PC13 -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC -D USBCON -D USBD_VID=0x0483 -D USBD_PID=0x5740 -D USB_MANUFACTURER="STMicroelectronics" -D USB_PRODUCT="\"STM32 F401"\" -D HAL_PCD_MODULE_ENABLED
extra_scripts = pre:filter_src.py
[env:black_f401rc_production]
platform = ststm32
board = genericSTM32F401RC
framework = arduino
debug_tool = stlink
upload_protocol = dfu ; stlink, dfu
build_flags = -Wl,--undefined,_printf_float, -D __RUNTIME_PRODUCTION__ -D LED_BUILTIN=PC13 -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC -D USBCON -D USBD_VID=0x0483 -D USBD_PID=0x5740 -D USB_MANUFACTURER="STMicroelectronics" -D USB_PRODUCT="\"STM32 F401"\" -D HAL_PCD_MODULE_ENABLED
extra_scripts = pre:filter_src.py
[env:d1_mini_ESP8266_serial] ; D1 mini (ESP8266)
platform = espressif8266
board = d1_mini
framework = arduino
monitor_speed = 115200
build_flags = -DDEBUG_ESP_WIFI -fexceptions -D __RUNTIME_DEBUG__
board_build.flash_mode = dio
extra_scripts = pre:filter_src.py
[env:ai_c3_ESP32-C3_serial] ; AI-C3 (ESP32-C3)
platform = espressif32
board = esp32-c3-m1i-kit
framework = arduino
monitor_speed = 115200
build_flags = -DDEBUG_ESP_WIFI -fexceptions -D __RUNTIME_DEBUG__
board_build.flash_mode = dio
extra_scripts = pre:filter_src.py
[env:d1_mini_ESP32_serial] ; D1 mini (ESP32)
platform = espressif32
board = wemos_d1_mini32
framework = arduino
monitor_speed = 115200
build_flags = -DDEBUG_ESP_WIFI -fexceptions -D __RUNTIME_DEBUG__
board_build.flash_mode = dio
extra_scripts = pre:filter_src.py
[env:pico] ; Raspberry Pi Pico
platform = raspberrypi
board = pico
framework = arduino
upload_protocol = picotool
monitor_speed = 115200
build_flags = -Wl,--undefined, -D __RUNTIME_DEBUG__
extra_scripts = pre:filter_src.py
[env:N76E003]
platform = intel_mcs51
board = N76E003
board_build.mcu = n76e003 ; change microcontroller
board_build.f_cpu = 16000000L ; change MCU frequency
extra_scripts = pre:filter_src.py
[env:WASM_BUILD]
platform = native
extra_scripts = pre:build_wasm.py
[env:WASM_TEST]
platform = native
extra_scripts = pre:test_wasm.py