Gemini Xrossband (GemX) - LR1121 Driver (#2540)
[ExpressLRS.git] / src / targets / common.ini
blob4c089a142bba72c9cf1ac66dfb2d2d1e272531fa
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 build_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_SX127X=1
21 lib_ignore =
22 LR1121Driver
23 SX1280Driver
25 [radio_LR1121]
26 build_flags = -DRADIO_LR1121=1
27 lib_ignore =
28 SX127xDriver
29 SX1280Driver
31 [radio_2400]
32 build_flags = -DRADIO_SX128X=1
33 lib_ignore =
34 SX127xDriver
35 LR1121Driver
37 # ------------------------- COMMON ESP32 DEFINITIONS -----------------
39 [env_common_esp32]
40 platform = espressif32@6.4.0
41 board = esp32dev
42 board_build.partitions = min_spiffs.csv
43 upload_speed = 460800
44 monitor_speed = 460800
45 upload_resetmethod = nodemcu
46 board_build.f_cpu = 240000000L
47 extra_scripts =
48 ${env.extra_scripts}
49 pre:python/build_html.py
50 build_flags =
51 -D PLATFORM_ESP32=1
52 -D CONFIG_TCPIP_LWIP=1
53 -D BEARSSL_SSL_BASIC
54 -D CONFIG_DISABLE_HAL_LOCKS=1
55 -I ${PROJECTSRC_DIR}/hal
56 build_src_filter = ${common_env_data.build_src_filter} -<ESP8266*.*> -<STM32*.*>
57 lib_deps =
58 ottowinter/ESPAsyncWebServer-esphome @ 3.0.0
59 esphome/AsyncTCP-esphome @ 2.0.1 # use specific version - an update to this library breaks the build
60 lemmingdev/ESP32-BLE-Gamepad @ 0.5.2
61 h2zero/NimBLE-Arduino @ 1.4.1
62 bblanchon/ArduinoJson @ 6.19.4
63 oled_lib_deps =
64 ${env_common_esp32.lib_deps}
65 olikraus/U8g2 @ 2.34.4
66 tft_lib_deps =
67 ${env_common_esp32.lib_deps}
68 moononournation/GFX Library for Arduino @ 1.2.8
70 [env_common_esp32s3tx]
71 platform = espressif32@6.4.0
72 extends = env_common_esp32
73 board = esp32-s3-devkitc-1
74 build_flags =
75 ${env_common_esp32.build_flags}
76 -D PLATFORM_ESP32_S3=1
77 -D ARDUINO_USB_CDC_ON_BOOT
79 [env_common_esp32rx]
80 platform = espressif32@6.4.0
81 board = esp32dev
82 board_build.partitions = min_spiffs.csv
83 upload_speed = 460800
84 monitor_speed = 420000
85 upload_resetmethod = nodemcu
86 board_build.f_cpu = 240000000L
87 extra_scripts =
88 ${env.extra_scripts}
89 pre:python/build_html.py
90 build_flags =
91 -D PLATFORM_ESP32=1
92 -D CONFIG_TCPIP_LWIP=1
93 -D BEARSSL_SSL_BASIC
94 -D USE_MSP_WIFI=1
95 -D CONFIG_DISABLE_HAL_LOCKS=1
96 -I ${PROJECTSRC_DIR}/hal
97 build_src_filter = ${common_env_data.build_src_filter} -<ESP8266*.*> -<STM32*.*>
98 lib_deps =
99 ottowinter/ESPAsyncWebServer-esphome @ 3.0.0
100 esphome/AsyncTCP-esphome @ 2.0.1 # use specific version - an update to this library breaks the build
101 bblanchon/ArduinoJson @ 6.19.4
103 [env_common_esp32s3rx]
104 platform = espressif32@6.4.0
105 extends = env_common_esp32rx
106 board = esp32-s3-devkitc-1
107 build_flags =
108 ${env_common_esp32rx.build_flags}
109 -D PLATFORM_ESP32_S3=1
111 # ------------------------- COMMON ESP82xx DEFINITIONS -----------------
112 [env_common_esp82xx]
113 platform = espressif8266@4.2.0
114 board = esp8285-8285
115 build_flags =
116 -D PLATFORM_ESP8266=1
117 -D VTABLES_IN_FLASH=1
118 -D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48
119 -D CONFIG_TCPIP_LWIP=1
120 -D BEARSSL_SSL_BASIC
121 -D USE_MSP_WIFI=1
123 -I ${PROJECTSRC_DIR}/hal
124 board_build.f_cpu = 160000000L
125 board_build.ldscript = eagle.flash.1m.ld
126 build_src_filter = ${common_env_data.build_src_filter} -<ESP32*.*> -<STM32*.*> -<WS281B*.*>
127 extra_scripts =
128 ${env.extra_scripts}
129 pre:python/build_html.py
130 lib_deps =
131 makuna/NeoPixelBus @ 2.7.0
132 ottowinter/ESPAsyncWebServer-esphome @ 3.0.0
133 bblanchon/ArduinoJson @ 6.19.4
134 upload_speed = 460800
135 monitor_speed = 420000
136 monitor_filters = esp8266_exception_decoder
137 upload_resetmethod = nodemcu
139 # ------------------------- COMMON STM32 DEFINITIONS -----------------
140 [env_common_stm32]
141 platform = ststm32@15.1.0
142 board = bluepill_f103c8
143 build_flags =
144 -D PLATFORM_STM32=1
145 -Wl,-Map,"'${BUILD_DIR}/firmware.map'"
147 -I ${PROJECTSRC_DIR}/hal
148 -D __FILE__='""'
149 -Wno-builtin-macro-redefined
150 build_src_filter = ${common_env_data.build_src_filter} -<ESP32*.*> -<ESP8266*.*> -<WS281B*.*>
151 lib_deps =
152 paolop74/extEEPROM @ 3.4.1
153 oled_lib_deps =
154 ${env_common_stm32.lib_deps}
155 olikraus/U8g2 @ 2.34.4
156 monitor_speed = 420000