mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-19 17:26:38 +00:00
Add regions to ini files
This commit is contained in:
parent
8f001b13a5
commit
e1765739c5
@ -85,6 +85,7 @@ src_filter = +<*> -<.git/> -<.svn/> -<example/> -<examples/> -<test/> -<tests/>
|
|||||||
|
|
||||||
extra_scripts = tools/move-rename-firmware.py ; tools/pre:extra_script.py
|
extra_scripts = tools/move-rename-firmware.py ; tools/pre:extra_script.py
|
||||||
|
|
||||||
|
; -- Platform specific build flags
|
||||||
[esp32]
|
[esp32]
|
||||||
build_flags =
|
build_flags =
|
||||||
${env.build_flags}
|
${env.build_flags}
|
||||||
@ -118,8 +119,6 @@ lib_ignore =
|
|||||||
|
|
||||||
lib_deps = LittleFS_esp32
|
lib_deps = LittleFS_esp32
|
||||||
|
|
||||||
|
|
||||||
; -- Platform specific build flags
|
|
||||||
[esp8266]
|
[esp8266]
|
||||||
build_flags=
|
build_flags=
|
||||||
-D HTTP_UPLOAD_BUFLEN=640 ; lower http upload buffer
|
-D HTTP_UPLOAD_BUFLEN=640 ; lower http upload buffer
|
||||||
@ -147,15 +146,16 @@ lib_ignore =
|
|||||||
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
|
|
||||||
|
[stm32f4]
|
||||||
[flags]
|
build_flags=
|
||||||
stm32_flags=
|
-I include/stm32f4
|
||||||
${env.build_flags}
|
|
||||||
-D MQTT_MAX_PACKET_SIZE=2048 ; longer PubSubClient messages
|
-D MQTT_MAX_PACKET_SIZE=2048 ; longer PubSubClient messages
|
||||||
-D IRAM_ATTR= ; No IRAM_ATTR available on STM32
|
-D IRAM_ATTR= ; No IRAM_ATTR available on STM32
|
||||||
-D ICACHE_RAM_ATTR=
|
-D ICACHE_RAM_ATTR=
|
||||||
-D STM32
|
-D STM32
|
||||||
-D STREAMUTILS_USE_EEPROM_UPDATE=1 ; update cell only when changed
|
-D STREAMUTILS_USE_EEPROM_UPDATE=1 ; update cell only when changed
|
||||||
|
; -- lvgl build options -----------------------------
|
||||||
|
-D LV_MEM_SIZE=20480U ; 20kB lvgl memory
|
||||||
|
|
||||||
;***************************************************
|
;***************************************************
|
||||||
; Hardware options
|
; Hardware options
|
||||||
|
@ -29,8 +29,8 @@ upload_protocol = dfu
|
|||||||
debug_tool = stlink
|
debug_tool = stlink
|
||||||
;monitor_port = COM19 ; To change the port, use platform_override.ini
|
;monitor_port = COM19 ; To change the port, use platform_override.ini
|
||||||
build_flags =
|
build_flags =
|
||||||
${flags.stm32_flags}
|
${env.build_flags}
|
||||||
-I include/stm32f4
|
${stm32f4.build_flags}
|
||||||
-I include/GxTFT/src
|
-I include/GxTFT/src
|
||||||
-I include/GxTFT/src/GxCTRL/GxCTRL_ILI9341
|
-I include/GxTFT/src/GxCTRL/GxCTRL_ILI9341
|
||||||
|
|
||||||
@ -47,11 +47,12 @@ build_flags =
|
|||||||
;-D USE_DMA_TO_TFT
|
;-D USE_DMA_TO_TFT
|
||||||
;endregion
|
;endregion
|
||||||
|
|
||||||
|
-D STM32_SERIAL1 ; Set this option to use Serial1 as default sersial port, leave out if using Serial2
|
||||||
|
|
||||||
;region -- Hasp build options ----------------------------
|
;region -- Hasp build options ----------------------------
|
||||||
-D HASP_USE_TASMOTA_SLAVE=0
|
-D HASP_USE_TASMOTA_SLAVE=0
|
||||||
-D HASP_OUTPUT_PIN=PA1 ; User LED D2 on DevEBox board
|
-D HASP_OUTPUT_PIN=PA1 ; User LED D2 on DevEBox board
|
||||||
-D HASP_INPUT_PIN=PA0 ; User Button K1 on DevEBox board
|
-D HASP_INPUT_PIN=PA0 ; User Button K1 on DevEBox board
|
||||||
-D STM32_SERIAL1 ; Set this option to use Serial1 as default sersial port, leave out if using Serial2
|
|
||||||
-D HASP_USE_WIFI=0
|
-D HASP_USE_WIFI=0
|
||||||
-D HASP_USE_MQTT=0
|
-D HASP_USE_MQTT=0
|
||||||
-D HASP_USE_HTTP=0
|
-D HASP_USE_HTTP=0
|
||||||
|
@ -12,8 +12,8 @@ board_build.mcu = stm32f407vgt6
|
|||||||
upload_protocol = dfu
|
upload_protocol = dfu
|
||||||
monitor_port = COM7 ; To change the port, use platform_override.ini
|
monitor_port = COM7 ; To change the port, use platform_override.ini
|
||||||
build_flags =
|
build_flags =
|
||||||
${flags.stm32_flags}
|
${env.build_flags}
|
||||||
-I include/stm32f4
|
${stm32f4.build_flags}
|
||||||
|
|
||||||
;region -- TFT_eSPI build options ------------------------
|
;region -- TFT_eSPI build options ------------------------
|
||||||
${lcd.lolin24}
|
${lcd.lolin24}
|
||||||
@ -28,8 +28,6 @@ build_flags =
|
|||||||
;endregion
|
;endregion
|
||||||
|
|
||||||
-D STM32_SERIAL1 ; Set this option to use Serial1 as default sersial port, leave out if using Serial2
|
-D STM32_SERIAL1 ; Set this option to use Serial1 as default sersial port, leave out if using Serial2
|
||||||
;-D HAL_ETH_MODULE_ENABLED=1 ; enable ethernet support
|
|
||||||
;-D LAN8742A_PHY_ADDRESS=0x01U ; set LAN8720 PHY address
|
|
||||||
|
|
||||||
;region -- Hasp build options ----------------------------
|
;region -- Hasp build options ----------------------------
|
||||||
-D HASP_OUTPUT_PIN=PE0 ; User LED D2 on DevEBox board
|
-D HASP_OUTPUT_PIN=PE0 ; User LED D2 on DevEBox board
|
||||||
@ -44,6 +42,8 @@ build_flags =
|
|||||||
-D W5500_SCLK=PB13 ;SPI2 SCLK
|
-D W5500_SCLK=PB13 ;SPI2 SCLK
|
||||||
-D W5500_CS=PB6 ;SPI2 CS
|
-D W5500_CS=PB6 ;SPI2 CS
|
||||||
-D W5500_RST=PD1 ;SPI2 CS
|
-D W5500_RST=PD1 ;SPI2 CS
|
||||||
|
;-D HAL_ETH_MODULE_ENABLED=1 ; enable ethernet support
|
||||||
|
;-D LAN8742A_PHY_ADDRESS=0x01U ; set LAN8720 PHY address
|
||||||
;endregion
|
;endregion
|
||||||
|
|
||||||
;region -- Library options -------------------------------
|
;region -- Library options -------------------------------
|
||||||
|
@ -12,8 +12,8 @@ board_build.mcu = stm32f407vet6
|
|||||||
upload_protocol = dfu
|
upload_protocol = dfu
|
||||||
monitor_port = COM7 ; To change the port, use platform_override.ini
|
monitor_port = COM7 ; To change the port, use platform_override.ini
|
||||||
build_flags =
|
build_flags =
|
||||||
${flags.stm32_flags}
|
${env.build_flags}
|
||||||
-I include/stm32f4
|
${stm32f4.build_flags}
|
||||||
|
|
||||||
;region -- TFT_eSPI build options ------------------------
|
;region -- TFT_eSPI build options ------------------------
|
||||||
-D ILI9341_DRIVER=1
|
-D ILI9341_DRIVER=1
|
||||||
|
@ -12,8 +12,8 @@ board_build.mcu = stm32f407vgt6
|
|||||||
upload_protocol = dfu
|
upload_protocol = dfu
|
||||||
monitor_port = COM7 ; To change the port, use platform_override.ini
|
monitor_port = COM7 ; To change the port, use platform_override.ini
|
||||||
build_flags =
|
build_flags =
|
||||||
${flags.stm32_flags}
|
${env.build_flags}
|
||||||
-I include/stm32f4
|
${stm32f4.build_flags}
|
||||||
-I include/espspi
|
-I include/espspi
|
||||||
|
|
||||||
;region -- TFT_eSPI build options ------------------------
|
;region -- TFT_eSPI build options ------------------------
|
||||||
@ -31,8 +31,6 @@ build_flags =
|
|||||||
;endregion
|
;endregion
|
||||||
|
|
||||||
-D STM32_SERIAL1 ; Set this option to use Serial1 as default sersial port, leave out if using Serial2
|
-D STM32_SERIAL1 ; Set this option to use Serial1 as default sersial port, leave out if using Serial2
|
||||||
;-D HAL_ETH_MODULE_ENABLED=1 ; enable ethernet support
|
|
||||||
;-D LAN8742A_PHY_ADDRESS=0x01U ; set LAN8720 PHY address
|
|
||||||
|
|
||||||
;region -- Hasp build options ----------------------------
|
;region -- Hasp build options ----------------------------
|
||||||
-D HASP_OUTPUT_PIN=PE0 ; User LED D2 on DevEBox board
|
-D HASP_OUTPUT_PIN=PE0 ; User LED D2 on DevEBox board
|
||||||
@ -56,6 +54,8 @@ build_flags =
|
|||||||
-D ESPSPI_SCLK=PB13 ;SPI2 SCLK
|
-D ESPSPI_SCLK=PB13 ;SPI2 SCLK
|
||||||
-D ESPSPI_CS=PB6 ;SPI2 CS
|
-D ESPSPI_CS=PB6 ;SPI2 CS
|
||||||
-D ESPSPI_RST=PD1 ;SPI2 CS
|
-D ESPSPI_RST=PD1 ;SPI2 CS
|
||||||
|
;-D HAL_ETH_MODULE_ENABLED=1 ; enable ethernet support
|
||||||
|
;-D LAN8742A_PHY_ADDRESS=0x01U ; set LAN8720 PHY address
|
||||||
;endregion
|
;endregion
|
||||||
|
|
||||||
;region -- Library options -------------------------------
|
;region -- Library options -------------------------------
|
||||||
|
@ -23,8 +23,8 @@ upload_protocol = stlink
|
|||||||
debug_tool = stlink
|
debug_tool = stlink
|
||||||
;monitor_port = COM19 ; To change the port, use platform_override.ini
|
;monitor_port = COM19 ; To change the port, use platform_override.ini
|
||||||
build_flags =
|
build_flags =
|
||||||
${flags.stm32_flags}
|
${env.build_flags}
|
||||||
-I include/stm32f4
|
${stm32f4.build_flags}
|
||||||
|
|
||||||
;region -- TFT_eSPI build options ------------------------
|
;region -- TFT_eSPI build options ------------------------
|
||||||
${lcd.lolin24}
|
${lcd.lolin24}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user