Merge pull request #1269 from pkendall64/crsf-max-output
[ExpressLRS.git] / src / targets / common.ini
blob1ce385930769b7e0a762a33195edb982f72624a3
2 # ------------------------- COMMON ENV DEFINITIONS -----------------
3 [env]
4 #upload_port =
5 #upload_speed =
6 framework = arduino
7 extra_scripts =
8 pre:python/build_flags.py
9 python/build_env_setup.py
10 monitor_dtr = 0
11 monitor_rts = 0
13 [common_env_data]
14 src_filter = +<*> -<.git/> -<svn/> -<example/> -<examples/> -<test/> -<tests/> -<*.py> -<*test*.*>
15 build_flags = -Wall -Iinclude
16 build_flags_tx = -DTARGET_TX=1 ${common_env_data.build_flags}
17 build_flags_rx = -DTARGET_RX=1 ${common_env_data.build_flags}
19 [radio_900]
20 build_flags = -DRADIO_900=1
21 lib_ignore = SX1280Driver
23 [radio_2400]
24 build_flags = -DRADIO_2400=1
25 lib_ignore = SX127xDriver
27 # ------------------------- COMMON ESP32 DEFINITIONS -----------------
28 [env_common_esp32]
29 platform = espressif32@3.3.2
30 board = esp32dev
31 board_build.partitions = min_spiffs.csv
32 upload_speed = 460800
33 monitor_speed = 460800
34 upload_resetmethod = nodemcu
35 board_build.f_cpu = 240000000L
36 extra_scripts =
37 ${env.extra_scripts}
38 pre:python/build_html.py
39 build_flags =
40 -D PLATFORM_ESP32=1
41 -D CONFIG_TCPIP_LWIP=1
42 -D BEARSSL_SSL_BASIC
43 -I ${PROJECTSRC_DIR}/hal
44 src_filter = ${common_env_data.src_filter} -<ESP8266*.*> -<STM32*.*>
45 lib_deps =
46 makuna/NeoPixelBus @ ^2.6.7
47 ottowinter/ESPAsyncWebServer-esphome @ ^1.3.0
48 lemmingdev/ESP32-BLE-Gamepad @ ^0.3.3
50 # ------------------------- COMMON ESP82xx DEFINITIONS -----------------
51 [env_common_esp82xx]
52 platform = espressif8266@3.2.0
53 board = esp8285-8285
54 build_flags =
55 -D PLATFORM_ESP8266=1
56 -D VTABLES_IN_FLASH=1
57 -D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48
58 -D CONFIG_TCPIP_LWIP=1
59 -D BEARSSL_SSL_BASIC
60 -O2
61 -I ${PROJECTSRC_DIR}/hal
62 board_build.f_cpu = 160000000L
63 board_build.ldscript = eagle.flash.1m.ld
64 src_filter = ${common_env_data.src_filter} -<ESP32*.*> -<STM32*.*> -<WS281B*.*>
65 extra_scripts =
66 ${env.extra_scripts}
67 pre:python/build_html.py
68 lib_deps =
69 ottowinter/ESPAsyncWebServer-esphome @ ^1.3.0
70 upload_speed = 460800
71 monitor_speed = 420000
72 monitor_filters = esp8266_exception_decoder
73 upload_resetmethod = nodemcu
74 bf_upload_command =
75 python "$PROJECT_DIR/python/BFinitPassthrough.py" -b $UPLOAD_SPEED ${UPLOAD_PORT and "-p "+UPLOAD_PORT} -r $PIOENV
76 python "$PROJECT_DIR/python/esptool-3.0/esptool.py" -b $UPLOAD_SPEED ${UPLOAD_PORT and "-p "+UPLOAD_PORT} -c esp8266 --before no_reset --after soft_reset write_flash 0x0000 "$SOURCE"
78 # ------------------------- COMMON STM32 DEFINITIONS -----------------
79 [env_common_stm32]
80 platform = ststm32@15.1.0
81 board = bluepill_f103c8
82 build_unflags = -Os
83 build_flags =
84 -D PLATFORM_STM32=1
85 -Wl,-Map,firmware.map
86 -O2
87 -I ${PROJECTSRC_DIR}/hal
88 src_filter = ${common_env_data.src_filter} -<ESP32*.*> -<ESP8266*.*> -<WS281B*.*>
89 lib_deps =
90 paolop74/extEEPROM @ ^3.4.1
91 monitor_speed = 420000