mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-07 09:48:47 +00:00
Compare commits
17 Commits
aebac0db70
...
8be1401c4b
Author | SHA1 | Date | |
---|---|---|---|
8be1401c4b | |||
e94b835eca | |||
1b5d694ac5 | |||
0dffecc845 | |||
35bd3541b3 | |||
85fcb84815 | |||
ec3b7470a6 | |||
bd776c1e8c | |||
ee0a842835 | |||
c834625074 | |||
1d77c4ac8e | |||
4f5d74fd61 | |||
1119af1863 | |||
3a17a528c7 | |||
8fa56d9845 | |||
57a9b8c101 | |||
f879cddee0 |
@@ -1 +1 @@
|
||||
465e5de0c66d6fc4106b114336144750 /home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/I2C_MultiDevice.bin
|
||||
c28b13a7b8b7fb924f561fbecefa447c /home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/I2C_MultiDevice.bin
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
||||
2728f70f94c5e4bf1e86eef5051e91d7c2f6a027
|
||||
bd776c1e8c8b76d68b7262efe01a006e45f7be6c
|
||||
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -173,3 +173,9 @@
|
||||
9 75 1754378151228963862 /home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size ff60af2bda86720b
|
||||
8 58 1754378262269806149 esp-idf/esptool_py/CMakeFiles/bootloader_check_size ff60af2bda86720b
|
||||
8 58 1754378262269806149 /home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size ff60af2bda86720b
|
||||
26 202 1754378840866190592 esp-idf/esptool_py/CMakeFiles/bootloader_check_size ff60af2bda86720b
|
||||
26 202 1754378840866190592 /home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size ff60af2bda86720b
|
||||
8 62 1754378907092103921 esp-idf/esptool_py/CMakeFiles/bootloader_check_size ff60af2bda86720b
|
||||
8 62 1754378907092103921 /home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size ff60af2bda86720b
|
||||
7 63 1754379163874627820 esp-idf/esptool_py/CMakeFiles/bootloader_check_size ff60af2bda86720b
|
||||
7 63 1754379163874627820 /home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/bootloader/esp-idf/esptool_py/CMakeFiles/bootloader_check_size ff60af2bda86720b
|
||||
|
@@ -3149,7 +3149,7 @@ build esp-idf/partition_table/CMakeFiles/partition_table-flash | ${cmake_ninja_w
|
||||
build cmake_object_order_depends_target___idf_esp_app_format: phony || cmake_object_order_depends_target___idf_esp_bootloader_format
|
||||
|
||||
build esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj: C_COMPILER____idf_esp_app_format_unscanned_ /home/abobkov/esp/v5.4.1/esp-idf/components/esp_app_format/esp_app_desc.c || cmake_object_order_depends_target___idf_esp_app_format
|
||||
DEFINES = -DESP_PLATFORM -DIDF_VER=\"v5.4.1-dirty\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\"I2C_MultiDevice\" -DPROJECT_VER=\"ESP32-Node_Switch-v2.7-9122-g27\"
|
||||
DEFINES = -DESP_PLATFORM -DIDF_VER=\"v5.4.1-dirty\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\"I2C_MultiDevice\" -DPROJECT_VER=\"ESP32-Node_Switch-v2.7-9135-gbd\"
|
||||
DEP_FILE = esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj.d
|
||||
FLAGS = -march=rv32imc_zicsr_zifencei -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Og -fno-shrink-wrap -fmacro-prefix-map=/home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice=. -fmacro-prefix-map=/home/abobkov/esp/v5.4.1/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration
|
||||
INCLUDES = -I/home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/config -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_app_format/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/newlib/platform_include -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/config/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/config/include/freertos -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/config/riscv/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/esp_additions/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/include/soc -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/include/soc/esp32c3 -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/dma/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/ldo/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/debug_probe/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/port/esp32c3/. -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/port/esp32c3/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/heap/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/heap/tlsf -I/home/abobkov/esp/v5.4.1/esp-idf/components/log/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/soc/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/soc/esp32c3 -I/home/abobkov/esp/v5.4.1/esp-idf/components/soc/esp32c3/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/soc/esp32c3/register -I/home/abobkov/esp/v5.4.1/esp-idf/components/hal/platform_port/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/hal/esp32c3/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/hal/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_rom/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3/include/esp32c3 -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3 -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_common/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_system/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_system/port/soc -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_system/port/include/riscv -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_system/port/include/private -I/home/abobkov/esp/v5.4.1/esp-idf/components/riscv/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/include/apps -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/include/apps/sntp -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/lwip/src/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/port/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/port/freertos/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include/sys
|
||||
|
@@ -907,7 +907,7 @@
|
||||
},
|
||||
{
|
||||
"directory": "/home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build",
|
||||
"command": "/home/abobkov/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\\\"v5.4.1-dirty\\\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\\\"I2C_MultiDevice\\\" -DPROJECT_VER=\\\"ESP32-Node_Switch-v2.7-9122-g27\\\" -I/home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/config -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_app_format/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/newlib/platform_include -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/config/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/config/include/freertos -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/config/riscv/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/esp_additions/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/include/soc -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/include/soc/esp32c3 -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/dma/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/ldo/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/debug_probe/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/port/esp32c3/. -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/port/esp32c3/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/heap/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/heap/tlsf -I/home/abobkov/esp/v5.4.1/esp-idf/components/log/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/soc/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/soc/esp32c3 -I/home/abobkov/esp/v5.4.1/esp-idf/components/soc/esp32c3/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/soc/esp32c3/register -I/home/abobkov/esp/v5.4.1/esp-idf/components/hal/platform_port/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/hal/esp32c3/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/hal/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_rom/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3/include/esp32c3 -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3 -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_common/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_system/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_system/port/soc -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_system/port/include/riscv -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_system/port/include/private -I/home/abobkov/esp/v5.4.1/esp-idf/components/riscv/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/include/apps -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/include/apps/sntp -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/lwip/src/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/port/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/port/freertos/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Og -fno-shrink-wrap -fmacro-prefix-map=/home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice=. -fmacro-prefix-map=/home/abobkov/esp/v5.4.1/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -o esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj -c /home/abobkov/esp/v5.4.1/esp-idf/components/esp_app_format/esp_app_desc.c",
|
||||
"command": "/home/abobkov/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DESP_PLATFORM -DIDF_VER=\\\"v5.4.1-dirty\\\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -D PROJECT_NAME=\\\"I2C_MultiDevice\\\" -DPROJECT_VER=\\\"ESP32-Node_Switch-v2.7-9135-gbd\\\" -I/home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build/config -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_app_format/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/newlib/platform_include -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/config/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/config/include/freertos -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/config/riscv/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I/home/abobkov/esp/v5.4.1/esp-idf/components/freertos/esp_additions/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/include/soc -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/include/soc/esp32c3 -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/dma/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/ldo/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/debug_probe/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/port/esp32c3/. -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_hw_support/port/esp32c3/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/heap/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/heap/tlsf -I/home/abobkov/esp/v5.4.1/esp-idf/components/log/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/soc/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/soc/esp32c3 -I/home/abobkov/esp/v5.4.1/esp-idf/components/soc/esp32c3/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/soc/esp32c3/register -I/home/abobkov/esp/v5.4.1/esp-idf/components/hal/platform_port/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/hal/esp32c3/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/hal/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_rom/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3/include/esp32c3 -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_rom/esp32c3 -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_common/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_system/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_system/port/soc -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_system/port/include/riscv -I/home/abobkov/esp/v5.4.1/esp-idf/components/esp_system/port/include/private -I/home/abobkov/esp/v5.4.1/esp-idf/components/riscv/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/include/apps -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/include/apps/sntp -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/lwip/src/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/port/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/port/freertos/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/abobkov/esp/v5.4.1/esp-idf/components/lwip/port/esp32xx/include/sys -march=rv32imc_zicsr_zifencei -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -nostartfiles -Og -fno-shrink-wrap -fmacro-prefix-map=/home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice=. -fmacro-prefix-map=/home/abobkov/esp/v5.4.1/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -o esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj -c /home/abobkov/esp/v5.4.1/esp-idf/components/esp_app_format/esp_app_desc.c",
|
||||
"file": "/home/abobkov/esp/v5.4.1/esp-idf/components/esp_app_format/esp_app_desc.c",
|
||||
"output": "esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj"
|
||||
},
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": "1.2",
|
||||
"project_name": "I2C_MultiDevice",
|
||||
"project_version": "ESP32-Node_Switch-v2.7-9122-g2728f70f9-dirty",
|
||||
"project_version": "ESP32-Node_Switch-v2.7-9135-gbd776c1e8-dirty",
|
||||
"project_path": "/home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice",
|
||||
"idf_path": "/home/abobkov/esp/v5.4.1/esp-idf",
|
||||
"build_dir": "/home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_FreeRTOS/I2C_MultiDevice/build",
|
||||
|
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* freeRTOS simultaneous tasks.
|
||||
* FreeRTOS simultaneous tasks.
|
||||
* The two tasks increment data struct variables, one task at a time, and send them to a display task.
|
||||
* Created on: Aug 5, 2025
|
||||
* Updated on:
|
||||
*
|
||||
@@ -39,6 +40,7 @@ void restart_task(void *pvParameters);
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
// Initialize the variables values
|
||||
cntdn = 20;
|
||||
s_data = (SensorsData) {
|
||||
.num1 = 0,
|
||||
@@ -46,8 +48,6 @@ void app_main(void)
|
||||
.num3 = 0,
|
||||
};
|
||||
|
||||
printf("Hello world!\n");
|
||||
|
||||
/* Print chip information */
|
||||
esp_chip_info_t chip_info;
|
||||
uint32_t flash_size;
|
||||
@@ -73,14 +73,12 @@ void app_main(void)
|
||||
|
||||
printf("Minimum free heap size: %" PRIu32 " bytes\n", esp_get_minimum_free_heap_size());
|
||||
|
||||
|
||||
|
||||
// Create mutex and queues
|
||||
xMutex = xSemaphoreCreateMutex();
|
||||
if (xMutex == NULL) {
|
||||
printf("Failed to create mutex\n");
|
||||
return;
|
||||
}
|
||||
|
||||
xQueue1 = xQueueCreate(10, sizeof(SensorsData));
|
||||
xQueue2 = xQueueCreate(10, sizeof(SensorsData));
|
||||
if (xQueue1 == NULL || xQueue2 == NULL) {
|
||||
@@ -88,33 +86,25 @@ void app_main(void)
|
||||
return;
|
||||
}
|
||||
|
||||
// Create tasks
|
||||
xTaskCreate(task1, "Task1", 2048, NULL, 15, NULL);
|
||||
xTaskCreate(task2, "Task2", 2048, NULL, 15, NULL);
|
||||
xTaskCreate(display_task, "DisplayTask", 2048, NULL, 5, NULL);
|
||||
xTaskCreate(restart_task, "TaskRestart", 2048, NULL, 20, NULL);
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Task #1; increments num1, sends data to queue1
|
||||
void task1(void *pvParameters) {
|
||||
uint32_t x = 0;
|
||||
|
||||
while (1) {
|
||||
if (xSemaphoreTake(xMutex, 1500)) {
|
||||
printf("Task 1 is running\n");
|
||||
|
||||
SensorsData data = {
|
||||
.num1 = x,
|
||||
.num2 = 0,
|
||||
.num3 = 0,
|
||||
};
|
||||
s_data.num1 = x;
|
||||
xQueueSend(xQueue1, &data, 0);
|
||||
xQueueSend(xQueue1, &s_data, 0);
|
||||
printf("Task 1 sent x=%" PRIu32 "\n", x);
|
||||
x+=2;
|
||||
|
||||
vTaskDelay((500)); // Delay for 1 second
|
||||
vTaskDelay((500));
|
||||
xSemaphoreGive(xMutex);
|
||||
}
|
||||
else {
|
||||
@@ -124,25 +114,18 @@ void task1(void *pvParameters) {
|
||||
}
|
||||
}
|
||||
|
||||
// Task #2; increments num2, sends data to queue2
|
||||
void task2(void *pvParameters) {
|
||||
uint32_t y = 0;
|
||||
|
||||
while (1) {
|
||||
if (xSemaphoreTake(xMutex, 1500)) {
|
||||
printf("Task 2 is running\n");
|
||||
|
||||
SensorsData data = {
|
||||
.num1 = 0,
|
||||
.num2 = y,
|
||||
.num3 = 0,
|
||||
};
|
||||
s_data.num2 = y;
|
||||
xQueueSend(xQueue2, &data, 0);
|
||||
xQueueSend(xQueue2, &s_data, 0);
|
||||
printf("Task 2 sent y=%" PRIu32 "\n", y);
|
||||
y++;
|
||||
|
||||
vTaskDelay((250)); // Delay for 2 seconds
|
||||
vTaskDelay((250));
|
||||
xSemaphoreGive(xMutex);
|
||||
}
|
||||
else {
|
||||
@@ -152,6 +135,7 @@ void task2(void *pvParameters) {
|
||||
}
|
||||
}
|
||||
|
||||
// Task to restart the system after a countdown
|
||||
void restart_task(void *pvParameters) {
|
||||
printf("Restarting system in %d seconds...\n", cntdn);
|
||||
while (1) {
|
||||
@@ -160,24 +144,16 @@ void restart_task(void *pvParameters) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Display task; receives data from both queues and prints it
|
||||
void display_task(void *pvParameters) {
|
||||
SensorsData data;
|
||||
while (1) {
|
||||
if (xQueueReceive(xQueue1, &data, 500)) {
|
||||
printf("Display Task received data from Task 1: num1=%" PRIu32 ", num2=%" PRIu32 ", num3=%" PRIu32 "\n", data.num1, data.num2, data.num3);
|
||||
}
|
||||
if (xQueueReceive(xQueue1, &s_data, 500)) {
|
||||
printf("Display Task received sensors_data from Task 1: num1=%" PRIu32 ", num2=%" PRIu32 ", num3=%" PRIu32 "\n", s_data.num1, s_data.num2, s_data.num3);
|
||||
}
|
||||
if (xQueueReceive(xQueue2, &data, 500)) {
|
||||
printf("Display Task received data from Task 2: num1=%" PRIu32 ", num2=%" PRIu32 ", num3=%" PRIu32 "\n", data.num1, data.num2, data.num3);
|
||||
}
|
||||
if (xQueueReceive(xQueue2, &s_data, 500)) {
|
||||
printf("Display Task received sensors_data from Task 2: num1=%" PRIu32 ", num2=%" PRIu32 ", num3=%" PRIu32 "\n", s_data.num1, s_data.num2, s_data.num3);
|
||||
}
|
||||
vTaskDelay(500);
|
||||
vTaskDelay(50);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user