Update libs with ESP-Insights enabled for all targets (#7606)
This commit is contained in:
parent
947ee6fd62
commit
d135e8a7e1
99 changed files with 1088 additions and 366 deletions
|
|
@ -37,7 +37,7 @@ compiler.c.elf.libs.esp32=-lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmb
|
|||
compiler.c.flags.esp32=-mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu99 -Wno-old-style-declaration -MMD -c
|
||||
compiler.cpp.flags.esp32=-mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fexceptions -fno-rtti -MMD -c
|
||||
compiler.S.flags.esp32=-mlongcalls -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -x assembler-with-cpp -MMD -c
|
||||
compiler.c.elf.flags.esp32=-T esp32.rom.redefined.ld -T memory.ld -T sections.ld -T esp32.rom.ld -T esp32.rom.api.ld -T esp32.rom.libgcc.ld -T esp32.rom.newlib-data.ld -T esp32.rom.syscalls.ld -T esp32.peripherals.ld -mlongcalls -Wno-frame-address -Wl,--cref -Wl,--gc-sections -fno-rtti -fno-lto -Wl,--wrap=esp_log_write -Wl,--wrap=esp_log_writev -u ld_include_hli_vectors_bt -u _Z5setupv -u _Z4loopv -u esp_app_desc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -u pthread_include_pthread_rwlock_impl -u include_esp_phy_override -u ld_include_highint_hdl -u start_app -u start_app_other_cores -u __ubsan_include -Wl,--wrap=longjmp -u __assert_func -u vfs_include_syscalls_impl -Wl,--undefined=uxTopUsedPriority -u app_main -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -u newlib_include_assert_impl -u __cxa_guard_dummy
|
||||
compiler.c.elf.flags.esp32=-T esp32.rom.redefined.ld -T memory.ld -T sections.ld -T esp32.rom.ld -T esp32.rom.api.ld -T esp32.rom.libgcc.ld -T esp32.rom.newlib-data.ld -T esp32.rom.syscalls.ld -T esp32.peripherals.ld -mlongcalls -Wno-frame-address -Wl,--cref -Wl,--gc-sections -fno-rtti -fno-lto -Wl,--wrap=esp_log_write -Wl,--wrap=esp_log_writev -Wl,--wrap=log_printf -u ld_include_hli_vectors_bt -u _Z5setupv -u _Z4loopv -u esp_app_desc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -u pthread_include_pthread_rwlock_impl -u include_esp_phy_override -u ld_include_highint_hdl -u start_app -u start_app_other_cores -u __ubsan_include -Wl,--wrap=longjmp -u __assert_func -u vfs_include_syscalls_impl -Wl,--undefined=uxTopUsedPriority -u app_main -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -u newlib_include_assert_impl -u __cxa_guard_dummy
|
||||
compiler.ar.flags.esp32=cr
|
||||
build.extra_flags.esp32=-DARDUINO_USB_CDC_ON_BOOT=0
|
||||
#
|
||||
|
|
@ -52,7 +52,7 @@ compiler.c.elf.libs.esp32s3=-lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -l
|
|||
compiler.c.flags.esp32s3=-mlongcalls -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu99 -Wno-old-style-declaration -MMD -c
|
||||
compiler.cpp.flags.esp32s3=-mlongcalls -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fexceptions -fno-rtti -MMD -c
|
||||
compiler.S.flags.esp32s3=-mlongcalls -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -x assembler-with-cpp -MMD -c
|
||||
compiler.c.elf.flags.esp32s3=-T memory.ld -T sections.ld -T esp32s3.rom.ld -T esp32s3.rom.api.ld -T esp32s3.rom.libgcc.ld -T esp32s3.rom.newlib.ld -T esp32s3.rom.version.ld -T esp32s3.rom.newlib-time.ld -T esp32s3.peripherals.ld -mlongcalls -Wl,--cref -Wl,--gc-sections -fno-rtti -fno-lto -Wl,--wrap=esp_log_write -Wl,--wrap=esp_log_writev -u _Z5setupv -u _Z4loopv -u esp_app_desc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -u pthread_include_pthread_rwlock_impl -u include_esp_phy_override -u ld_include_highint_hdl -u start_app -u start_app_other_cores -u __ubsan_include -Wl,--wrap=longjmp -u __assert_func -u vfs_include_syscalls_impl -Wl,--undefined=uxTopUsedPriority -u app_main -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -u newlib_include_assert_impl -u __cxa_guard_dummy
|
||||
compiler.c.elf.flags.esp32s3=-T memory.ld -T sections.ld -T esp32s3.rom.ld -T esp32s3.rom.api.ld -T esp32s3.rom.libgcc.ld -T esp32s3.rom.newlib.ld -T esp32s3.rom.version.ld -T esp32s3.rom.newlib-time.ld -T esp32s3.peripherals.ld -mlongcalls -Wl,--cref -Wl,--gc-sections -fno-rtti -fno-lto -Wl,--wrap=esp_log_write -Wl,--wrap=esp_log_writev -Wl,--wrap=log_printf -u _Z5setupv -u _Z4loopv -u esp_app_desc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -u pthread_include_pthread_rwlock_impl -u include_esp_phy_override -u ld_include_highint_hdl -u start_app -u start_app_other_cores -u __ubsan_include -Wl,--wrap=longjmp -u __assert_func -u vfs_include_syscalls_impl -Wl,--undefined=uxTopUsedPriority -u app_main -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -u newlib_include_assert_impl -u __cxa_guard_dummy
|
||||
compiler.ar.flags.esp32s3=cr
|
||||
build.extra_flags.esp32s3=-DARDUINO_USB_MODE={build.usb_mode} -DARDUINO_USB_CDC_ON_BOOT={build.cdc_on_boot} -DARDUINO_USB_MSC_ON_BOOT={build.msc_on_boot} -DARDUINO_USB_DFU_ON_BOOT={build.dfu_on_boot}
|
||||
#
|
||||
|
|
@ -67,7 +67,7 @@ compiler.c.elf.libs.esp32s2=-lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -l
|
|||
compiler.c.flags.esp32s2=-mlongcalls -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu99 -Wno-old-style-declaration -MMD -c
|
||||
compiler.cpp.flags.esp32s2=-mlongcalls -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fexceptions -fno-rtti -MMD -c
|
||||
compiler.S.flags.esp32s2=-mlongcalls -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -x assembler-with-cpp -MMD -c
|
||||
compiler.c.elf.flags.esp32s2=-T memory.ld -T sections.ld -T esp32s2.rom.ld -T esp32s2.rom.api.ld -T esp32s2.rom.libgcc.ld -T esp32s2.rom.newlib-funcs.ld -T esp32s2.rom.newlib-data.ld -T esp32s2.rom.spiflash.ld -T esp32s2.rom.newlib-time.ld -T esp32s2.peripherals.ld -mlongcalls -Wl,--cref -Wl,--gc-sections -fno-rtti -fno-lto -Wl,--wrap=esp_log_write -Wl,--wrap=esp_log_writev -u _Z5setupv -u _Z4loopv -u esp_app_desc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -u pthread_include_pthread_rwlock_impl -u include_esp_phy_override -u ld_include_highint_hdl -u start_app -u __ubsan_include -Wl,--wrap=longjmp -u __assert_func -u vfs_include_syscalls_impl -Wl,--undefined=uxTopUsedPriority -u app_main -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -u newlib_include_assert_impl -u __cxa_guard_dummy
|
||||
compiler.c.elf.flags.esp32s2=-T memory.ld -T sections.ld -T esp32s2.rom.ld -T esp32s2.rom.api.ld -T esp32s2.rom.libgcc.ld -T esp32s2.rom.newlib-funcs.ld -T esp32s2.rom.newlib-data.ld -T esp32s2.rom.spiflash.ld -T esp32s2.rom.newlib-time.ld -T esp32s2.peripherals.ld -mlongcalls -Wl,--cref -Wl,--gc-sections -fno-rtti -fno-lto -Wl,--wrap=esp_log_write -Wl,--wrap=esp_log_writev -Wl,--wrap=log_printf -u _Z5setupv -u _Z4loopv -u esp_app_desc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -u pthread_include_pthread_rwlock_impl -u include_esp_phy_override -u ld_include_highint_hdl -u start_app -u __ubsan_include -Wl,--wrap=longjmp -u __assert_func -u vfs_include_syscalls_impl -Wl,--undefined=uxTopUsedPriority -u app_main -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -u newlib_include_assert_impl -u __cxa_guard_dummy
|
||||
compiler.ar.flags.esp32s2=cr
|
||||
build.extra_flags.esp32s2=-DARDUINO_USB_MODE=0 -DARDUINO_USB_CDC_ON_BOOT={build.cdc_on_boot} -DARDUINO_USB_MSC_ON_BOOT={build.msc_on_boot} -DARDUINO_USB_DFU_ON_BOOT={build.dfu_on_boot}
|
||||
#
|
||||
|
|
@ -82,7 +82,7 @@ compiler.c.elf.libs.esp32c3=-lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -l
|
|||
compiler.c.flags.esp32c3=-march=rv32imc -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -Wno-error=format= -nostartfiles -Wno-format -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu99 -Wno-old-style-declaration -MMD -c
|
||||
compiler.cpp.flags.esp32c3=-march=rv32imc -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -Wno-error=format= -nostartfiles -Wno-format -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fexceptions -fno-rtti -MMD -c
|
||||
compiler.S.flags.esp32c3=-ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -Wno-error=format= -nostartfiles -Wno-format -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -x assembler-with-cpp -MMD -c
|
||||
compiler.c.elf.flags.esp32c3=-T memory.ld -T sections.ld -T esp32c3.rom.ld -T esp32c3.rom.api.ld -T esp32c3.rom.libgcc.ld -T esp32c3.rom.newlib.ld -T esp32c3.rom.version.ld -T esp32c3.rom.newlib-time.ld -T esp32c3.rom.eco3.ld -T esp32c3.peripherals.ld -nostartfiles -march=rv32imc --specs=nosys.specs -Wl,--cref -Wl,--gc-sections -fno-rtti -fno-lto -Wl,--wrap=esp_log_write -Wl,--wrap=esp_log_writev -u _Z5setupv -u _Z4loopv -u esp_app_desc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -u pthread_include_pthread_rwlock_impl -u include_esp_phy_override -u start_app -u __ubsan_include -u __assert_func -u vfs_include_syscalls_impl -Wl,--undefined=uxTopUsedPriority -u app_main -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -u newlib_include_assert_impl -u __cxa_guard_dummy
|
||||
compiler.c.elf.flags.esp32c3=-T memory.ld -T sections.ld -T esp32c3.rom.ld -T esp32c3.rom.api.ld -T esp32c3.rom.libgcc.ld -T esp32c3.rom.newlib.ld -T esp32c3.rom.version.ld -T esp32c3.rom.newlib-time.ld -T esp32c3.rom.eco3.ld -T esp32c3.peripherals.ld -nostartfiles -march=rv32imc --specs=nosys.specs -Wl,--cref -Wl,--gc-sections -fno-rtti -fno-lto -Wl,--wrap=esp_log_write -Wl,--wrap=esp_log_writev -Wl,--wrap=log_printf -u _Z5setupv -u _Z4loopv -u esp_app_desc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -u pthread_include_pthread_rwlock_impl -u include_esp_phy_override -u start_app -u __ubsan_include -u __assert_func -u vfs_include_syscalls_impl -Wl,--undefined=uxTopUsedPriority -u app_main -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -u newlib_include_assert_impl -u __cxa_guard_dummy
|
||||
compiler.ar.flags.esp32c3=cr
|
||||
build.extra_flags.esp32c3=-DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT={build.cdc_on_boot}
|
||||
#
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ env.Append(
|
|||
"-fno-lto",
|
||||
"-Wl,--wrap=esp_log_write",
|
||||
"-Wl,--wrap=esp_log_writev",
|
||||
"-Wl,--wrap=log_printf",
|
||||
"-Wl,--wrap=longjmp",
|
||||
"-Wl,--undefined=uxTopUsedPriority",
|
||||
"-T", "esp32.rom.redefined.ld",
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@ env.Append(
|
|||
"-fno-lto",
|
||||
"-Wl,--wrap=esp_log_write",
|
||||
"-Wl,--wrap=esp_log_writev",
|
||||
"-Wl,--wrap=log_printf",
|
||||
"-Wl,--undefined=uxTopUsedPriority",
|
||||
"-T", "memory.ld",
|
||||
"-T", "sections.ld",
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ env.Append(
|
|||
"-fno-lto",
|
||||
"-Wl,--wrap=esp_log_write",
|
||||
"-Wl,--wrap=esp_log_writev",
|
||||
"-Wl,--wrap=log_printf",
|
||||
"-Wl,--wrap=longjmp",
|
||||
"-Wl,--undefined=uxTopUsedPriority",
|
||||
"-T", "memory.ld",
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ env.Append(
|
|||
"-fno-lto",
|
||||
"-Wl,--wrap=esp_log_write",
|
||||
"-Wl,--wrap=esp_log_writev",
|
||||
"-Wl,--wrap=log_printf",
|
||||
"-Wl,--wrap=longjmp",
|
||||
"-Wl,--undefined=uxTopUsedPriority",
|
||||
"-T", "memory.ld",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
|
||||
// Copyright 2018-2022 Espressif Systems (Shanghai) PTE LTD
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
@ -28,9 +28,9 @@ extern "C"
|
|||
/**
|
||||
* @brief Data struct of f32 fir filter
|
||||
*
|
||||
* This structure used by filter internally. User should access this structure only in case of
|
||||
* This structure is used by a filter internally. A user should access this structure only in case of
|
||||
* extensions for the DSP Library.
|
||||
* All fields of this structure initialized by dsps_fir_init_f32(...) function.
|
||||
* All fields of this structure are initialized by the dsps_fir_init_f32(...) function.
|
||||
*/
|
||||
typedef struct fir_f32_s {
|
||||
float *coeffs; /*!< Pointer to the coefficient buffer.*/
|
||||
|
|
@ -41,6 +41,23 @@ typedef struct fir_f32_s {
|
|||
int d_pos; /*!< Actual decimation counter.*/
|
||||
} fir_f32_t;
|
||||
|
||||
/**
|
||||
* @brief Data struct of s16 fir filter
|
||||
*
|
||||
* This structure is used by a filter internally. A user should access this structure only in case of
|
||||
* extensions for the DSP Library.
|
||||
* All fields of this structure are initialized by the dsps_fir_init_s16(...) function.
|
||||
*/
|
||||
typedef struct fir_s16_s{
|
||||
int16_t *coeffs; /*!< Pointer to the coefficient buffer.*/
|
||||
int16_t *delay; /*!< Pointer to the delay line buffer.*/
|
||||
int16_t coeffs_len; /*!< FIR filter coefficients amount.*/
|
||||
int16_t pos; /*!< Position in delay line.*/
|
||||
int16_t decim; /*!< Decimation factor.*/
|
||||
int16_t d_pos; /*!< Actual decimation counter.*/
|
||||
int16_t shift; /*!< shift value of the result.*/
|
||||
}fir_s16_t;
|
||||
|
||||
/**
|
||||
* @brief initialize structure for 32 bit FIR filter
|
||||
*
|
||||
|
|
@ -76,18 +93,37 @@ esp_err_t dsps_fir_init_f32(fir_f32_t *fir, float *coeffs, float *delay, int N);
|
|||
*/
|
||||
esp_err_t dsps_fird_init_f32(fir_f32_t *fir, float *coeffs, float *delay, int N, int decim, int start_pos);
|
||||
|
||||
/**
|
||||
* @brief initialize structure for 16 bit Decimation FIR filter
|
||||
* Function initialize structure for 16 bit signed fixed point FIR filter with decimation
|
||||
* The implementation use ANSI C and could be compiled and run on any platform
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be preallocated
|
||||
* @param coeffs: array with FIR filter coefficients. Must be length N
|
||||
* @param delay: array for FIR filter delay line. Must be length N
|
||||
* @param coeffs_len: FIR filter length. Length of coeffs and delay arrays.
|
||||
* @param decim: decimation factor.
|
||||
* @param start_pos: initial value of decimation counter. Must be [0..d)
|
||||
* @param shift: shift position of the result
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK on success
|
||||
* - One of the error codes from DSP library
|
||||
*/
|
||||
esp_err_t dsps_fird_init_s16(fir_s16_t *fir, int16_t *coeffs, int16_t *delay, int16_t coeffs_len, int16_t decim, int16_t start_pos, int16_t shift);
|
||||
|
||||
|
||||
/**@{*/
|
||||
/**
|
||||
* @brief FIR filter
|
||||
* @brief 32 bit floating point FIR filter
|
||||
*
|
||||
* Function implements FIR filter
|
||||
* The extension (_ansi) use ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ansi) uses ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ae32) is optimized for ESP32 chip.
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be initialized before
|
||||
* @param[in] input: input array
|
||||
* @param[out] output: array with result of FIR filter
|
||||
* @param[out] output: array with the result of FIR filter
|
||||
* @param[in] len: length of input and result arrays
|
||||
*
|
||||
* @return
|
||||
|
|
@ -101,24 +137,43 @@ esp_err_t dsps_fir_f32_aes3(fir_f32_t *fir, const float *input, float *output, i
|
|||
|
||||
/**@{*/
|
||||
/**
|
||||
* @brief Decimation FIR filter
|
||||
* @brief 32 bit floating point Decimation FIR filter
|
||||
*
|
||||
* Function implements FIR filter with decimation
|
||||
* The extension (_ansi) use ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ansi) uses ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ae32) is optimized for ESP32 chip.
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be initialized before
|
||||
* @param input: input array
|
||||
* @param output: array with result of FIR filter
|
||||
* @param output: array with the result of FIR filter
|
||||
* @param len: length of input and result arrays
|
||||
*
|
||||
* @return: function returns amount of samples stored to the output array
|
||||
* @return: function returns the number of samples stored in the output array
|
||||
* depends on the previous state value could be [0..len/decimation]
|
||||
*/
|
||||
int dsps_fird_f32_ansi(fir_f32_t *fir, const float *input, float *output, int len);
|
||||
int dsps_fird_f32_ae32(fir_f32_t *fir, const float *input, float *output, int len);
|
||||
/**@}*/
|
||||
|
||||
/**@{*/
|
||||
/**
|
||||
* @brief 16 bit signed fixed point Decimation FIR filter
|
||||
*
|
||||
* Function implements FIR filter with decimation
|
||||
* The extension (_ansi) uses ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ae32) is optimized for ESP32 chip.
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be initialized before
|
||||
* @param input: input array
|
||||
* @param output: array with the result of the FIR filter
|
||||
* @param len: length of the result array
|
||||
*
|
||||
* @return: function returns the number of samples stored in the output array
|
||||
* depends on the previous state value could be [0..len/decimation]
|
||||
*/
|
||||
int32_t dsps_fird_s16_ansi(fir_s16_t *fir, const int16_t *input, int16_t *output, int32_t len);
|
||||
int32_t dsps_fird_s16_ae32(fir_s16_t *fir, const int16_t *input, int16_t *output, int32_t len);
|
||||
/**@}*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
@ -139,9 +194,16 @@ int dsps_fird_f32_ae32(fir_f32_t *fir, const float *input, float *output, int le
|
|||
#define dsps_fird_f32 dsps_fird_f32_ansi
|
||||
#endif
|
||||
|
||||
#if (dsps_fird_s16_ae32_enabled == 1)
|
||||
#define dsps_fird_s16 dsps_fird_s16_ae32
|
||||
#else
|
||||
#define dsps_fird_s16 dsps_fird_s16_ansi
|
||||
#endif
|
||||
|
||||
#else // CONFIG_DSP_OPTIMIZED
|
||||
#define dsps_fir_f32 dsps_fir_f32_ansi
|
||||
#define dsps_fird_f32 dsps_fird_f32_ansi
|
||||
#define dsps_fird_s16 dsps_fird_s16_ansi
|
||||
#endif // CONFIG_DSP_OPTIMIZED
|
||||
|
||||
#endif // _dsps_fir_H_
|
||||
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#define dsps_fir_f32_ae32_enabled 1
|
||||
#define dsps_fird_f32_ae32_enabled 1
|
||||
#define dsps_fird_s16_ae32_enabled 1
|
||||
#define dsps_fird_s16_ae32_mul_enabled 1
|
||||
|
||||
#endif //
|
||||
#endif // __XTENSA__
|
||||
|
|
|
|||
|
|
@ -128,7 +128,11 @@ typedef struct {
|
|||
} esp_insights_transport_config_t;
|
||||
|
||||
/**
|
||||
* @brief Initialize ESP Insights
|
||||
* @brief Initialize ESP Insights.
|
||||
*
|
||||
* This initializes ESP Insights with the transport (HTTPS/MQTT) as per the sdkconfig.
|
||||
* To override the transport configuration, please use esp_insights_transport_register()
|
||||
* and esp_insights_enable().
|
||||
*
|
||||
* @param[in] config Configuration for ESP Insights.
|
||||
*
|
||||
|
|
@ -137,12 +141,19 @@ typedef struct {
|
|||
esp_err_t esp_insights_init(esp_insights_config_t *config);
|
||||
|
||||
/**
|
||||
* @brief Deinitialize ESP Insights
|
||||
* @brief Deinitialize ESP Insights.
|
||||
*
|
||||
* Disconnects the registered transport and disables ESP Insights
|
||||
*/
|
||||
void esp_insights_deinit(void);
|
||||
|
||||
/**
|
||||
* @brief Register insights transport
|
||||
* @brief Register insights transport.
|
||||
*
|
||||
* This function should be used only when default transport needs to be overridden.
|
||||
*
|
||||
* @note Call esp_insights_enable()
|
||||
* after registering your own transport to enable Insights.
|
||||
*
|
||||
* @param[in] config Configurations of type \ref esp_insights_transport_config_t
|
||||
*
|
||||
|
|
@ -151,12 +162,15 @@ void esp_insights_deinit(void);
|
|||
esp_err_t esp_insights_transport_register(esp_insights_transport_config_t *config);
|
||||
|
||||
/**
|
||||
* @brief Unregister insights transport
|
||||
* @brief Unregister insights transport.
|
||||
*
|
||||
* @note This API does not disable Insights.
|
||||
* Call esp_insights_disable() to turn off Insights.
|
||||
*/
|
||||
void esp_insights_transport_unregister(void);
|
||||
|
||||
/**
|
||||
* @brief Read insights data from buffers and send it to the cloud
|
||||
* @brief Read insights data from buffers and send it to the cloud.
|
||||
*
|
||||
* Call to this function is asynchronous, it may take some time to send the data.
|
||||
*
|
||||
|
|
@ -164,6 +178,33 @@ void esp_insights_transport_unregister(void);
|
|||
*/
|
||||
esp_err_t esp_insights_send_data(void);
|
||||
|
||||
/**
|
||||
* @brief Enable ESP Insights except transport.
|
||||
*
|
||||
* This API is used in conjunction with esp_insights_transport_register()
|
||||
* to start Insights with custom transport.
|
||||
*
|
||||
* @param[in] config Configuration for ESP Insights.
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise
|
||||
*/
|
||||
esp_err_t esp_insights_enable(esp_insights_config_t *config);
|
||||
|
||||
/**
|
||||
* @brief Disable ESP Insights.
|
||||
*
|
||||
* This API does not unregister the transport.
|
||||
*
|
||||
* @note Call esp_insights_transport_unregister() to remove the transport.
|
||||
*/
|
||||
void esp_insights_disable(void);
|
||||
|
||||
/**
|
||||
* @brief Returns pointer to the NULL terminated Node ID string.
|
||||
*
|
||||
* @return Pointer to a NULL terminated Node ID string.
|
||||
*/
|
||||
const char *esp_insights_get_node_id(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -36,6 +36,33 @@ typedef enum {
|
|||
RTC_STORE_EVENT_NON_CRITICAL_DATA_WRITE_FAIL, /*!< Non critical data write failed */
|
||||
} rtc_store_event_t;
|
||||
|
||||
#define SHA_SIZE (CONFIG_APP_RETRIEVE_LEN_ELF_SHA / 2)
|
||||
|
||||
/**
|
||||
* @brief header record to identify firmware/boot data a record represent
|
||||
*/
|
||||
typedef struct {
|
||||
uint8_t gen_id; // generated on each hard reset
|
||||
uint8_t boot_cnt; // updated on each soft reboot
|
||||
char sha_sum[SHA_SIZE]; // elf shasum
|
||||
bool valid; //
|
||||
} rtc_store_meta_header_t;
|
||||
|
||||
/**
|
||||
* @brief get meta header for idx
|
||||
*
|
||||
* @param idx idx of meta from records
|
||||
* @return rtc_store_meta_header_t*
|
||||
*/
|
||||
rtc_store_meta_header_t *rtc_store_get_meta_record_by_index(uint8_t idx);
|
||||
|
||||
/**
|
||||
* @brief get current meta header
|
||||
*
|
||||
* @return rtc_store_meta_header_t*
|
||||
*/
|
||||
rtc_store_meta_header_t *rtc_store_get_meta_record_current();
|
||||
|
||||
/**
|
||||
* @brief Non critical data header
|
||||
*/
|
||||
|
|
@ -57,44 +84,34 @@ esp_err_t rtc_store_critical_data_write(void *data, size_t len);
|
|||
/**
|
||||
* @brief Read critical data from the RTC storage
|
||||
*
|
||||
* @param[out] size Number of bytes read
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes to read
|
||||
*
|
||||
* @return Pointer to the data on success, otherwise NULL
|
||||
*
|
||||
* @note It is mandatory to call \ref rtc_store_critical_data_release_and_unlock() if \ref rtc_store_critical_data_read_and_lock() is successful.
|
||||
* @note Please avoid adding \ref ESP_DIAG_EVENT(), error/warning logs using esp_log module in between rtc_store_critical_data_read_and_lock() and rtc_store_critical_data_release_and_unlock() API calls. It may lead to a deadlock.
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
const void *rtc_store_critical_data_read_and_lock(size_t *size);
|
||||
|
||||
/**
|
||||
* @brief Release the utilized data read using \ref rtc_store_critical_data_read_and_lock()
|
||||
*
|
||||
* This API releases the utilized data read using \ref rtc_store_critical_data_read_and_lock().
|
||||
* Utilization may involve encoding data, sending data to the cloud, post processing or printing on the console, etc.
|
||||
*
|
||||
* @param[in] size Number of bytes to free. If all the data is utilized then pass the size returned by \ref rtc_store_critical_data_read_and_lock() or 0 if no data is utilized (e.g. sending to cloud failed).
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise.
|
||||
*
|
||||
* @note Please avoid adding \ref ESP_DIAG_EVENT(), error/warning logs using esp_log module in between rtc_store_critical_data_read_and_lock() and rtc_store_critical_data_release_and_unlock() API calls. It may lead to a deadlock.
|
||||
*/
|
||||
esp_err_t rtc_store_critical_data_release_and_unlock(size_t size);
|
||||
int rtc_store_critical_data_read(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Release the size bytes critical data from RTC storage
|
||||
*
|
||||
* This API can be used to remove data from buffer when data is sent asynchronously.
|
||||
*
|
||||
* Consider data is read using \ref rtc_store_critical_data_read_and_lock() and sent to cloud asynchronously.
|
||||
* Since status of data send is unknown, call \ref rtc_store_critical_data_release_and_unlock() with zero length.
|
||||
* When acknowledgement for data send is received use this API with appropriate size to remove the data from the buffer.
|
||||
*
|
||||
* @param[in] size Number of bytes to free.
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise.
|
||||
*/
|
||||
esp_err_t rtc_store_critical_data_release(size_t size);
|
||||
|
||||
/**
|
||||
* @brief Read critical data from the RTC storage and release that data
|
||||
*
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes to read
|
||||
*
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
int rtc_store_critical_data_read_and_release(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Write non critical data to the RTC storage
|
||||
*
|
||||
|
|
@ -116,26 +133,12 @@ esp_err_t rtc_store_non_critical_data_write(const char *dg, void *data, size_t l
|
|||
/**
|
||||
* @brief Read non critical data from the RTC storage
|
||||
*
|
||||
* @param[out] size Number of bytes read
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes read
|
||||
*
|
||||
* @return Pointer to the data on success, otherwise NULL
|
||||
*
|
||||
* @note It is mandatory to call \ref rtc_store_non_critical_data_release_and_unlock() if \ref rtc_store_non_critical_data_read_and_lock() is successful.
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
const void *rtc_store_non_critical_data_read_and_lock(size_t *size);
|
||||
|
||||
/**
|
||||
* @brief Release the utilized data read using \ref rtc_store_non_critical_data_read_and_lock()
|
||||
*
|
||||
* This API releases the utilized data read using \ref rtc_store_non_critical_data_read_and_lock().
|
||||
* Utilization may involve encoding data, sending data to the cloud, post processing or printing on the console, etc.
|
||||
*
|
||||
* @param[in] size Number of bytes to free. If all the data is utilized then pass the size returned by \ref rtc_store_non_critical_data_read_and_lock() or 0 if no data is utilized (e.g. sending to cloud failed).
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise.
|
||||
*
|
||||
*/
|
||||
esp_err_t rtc_store_non_critical_data_release_and_unlock(size_t size);
|
||||
int rtc_store_non_critical_data_read(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Release the size bytes non critical data from RTC storage
|
||||
|
|
@ -146,6 +149,16 @@ esp_err_t rtc_store_non_critical_data_release_and_unlock(size_t size);
|
|||
*/
|
||||
esp_err_t rtc_store_non_critical_data_release(size_t size);
|
||||
|
||||
/**
|
||||
* @brief Read non_critical data from the RTC storage and release that data
|
||||
*
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes read
|
||||
*
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
int rtc_store_non_critical_data_read_and_release(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Initializes the RTC storage
|
||||
*
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1745,6 +1745,7 @@ CONFIG_DIAG_ENABLE_WIFI_METRICS=y
|
|||
CONFIG_DIAG_ENABLE_VARIABLES=y
|
||||
CONFIG_DIAG_VARIABLES_MAX_COUNT=20
|
||||
CONFIG_DIAG_ENABLE_NETWORK_VARIABLES=y
|
||||
# CONFIG_DIAG_MORE_NETWORK_VARS is not set
|
||||
# end of Diagnostics
|
||||
|
||||
#
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
#define CONFIG_ESPTOOLPY_MONITOR_BAUD 115200
|
||||
#define CONFIG_PARTITION_TABLE_SINGLE_APP 1
|
||||
#define CONFIG_PARTITION_TABLE_CUSTOM_FILENAME "partitions.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp_coredump.csv"
|
||||
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
|
||||
#define CONFIG_PARTITION_TABLE_MD5 1
|
||||
#define CONFIG_LIB_BUILDER_FLASHMODE "dio"
|
||||
|
|
@ -342,7 +342,14 @@
|
|||
#define CONFIG_ESP_WIFI_FTM_INITIATOR_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_FTM_RESPONDER_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_SOFTAP_SUPPORT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_NONE 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH 1
|
||||
#define CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECKSUM_CRC32 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
|
||||
#define CONFIG_ESP_COREDUMP_STACK_SIZE 1024
|
||||
#define CONFIG_ESP_COREDUMP_SUMMARY_STACKDUMP_SIZE 1024
|
||||
#define CONFIG_FATFS_CODEPAGE_850 1
|
||||
#define CONFIG_FATFS_CODEPAGE 850
|
||||
#define CONFIG_FATFS_LFN_STACK 1
|
||||
|
|
@ -387,7 +394,7 @@
|
|||
#define CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1
|
||||
#define CONFIG_FREERTOS_ASSERT_FAIL_ABORT 1
|
||||
#define CONFIG_FREERTOS_IDLE_TASK_STACKSIZE 2304
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 1536
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 2096
|
||||
#define CONFIG_FREERTOS_MAX_TASK_NAME_LEN 16
|
||||
#define CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION 1
|
||||
#define CONFIG_FREERTOS_TIMER_TASK_PRIORITY 1
|
||||
|
|
@ -620,6 +627,8 @@
|
|||
#define CONFIG_DIAG_ENABLE_VARIABLES 1
|
||||
#define CONFIG_DIAG_VARIABLES_MAX_COUNT 20
|
||||
#define CONFIG_DIAG_ENABLE_NETWORK_VARIABLES 1
|
||||
#define CONFIG_ESP_INSIGHTS_ENABLED 1
|
||||
#define CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST "https://client.insights.espressif.com"
|
||||
#define CONFIG_ESP_INSIGHTS_CLOUD_POST_MIN_INTERVAL_SEC 60
|
||||
|
|
@ -692,7 +701,11 @@
|
|||
#define CONFIG_ESP32S2_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_ALLOW_RTC_FAST_MEM_AS_HEAP CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
|
||||
#define CONFIG_ESP32_APPTRACE_DEST_NONE CONFIG_APPTRACE_DEST_NONE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
|
||||
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
|
||||
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
|
||||
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
|
||||
#define CONFIG_ESP32_CORE_DUMP_STACK_SIZE CONFIG_ESP_COREDUMP_STACK_SIZE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
|
||||
#define CONFIG_ESP32_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||
#define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
#define CONFIG_ESPTOOLPY_MONITOR_BAUD 115200
|
||||
#define CONFIG_PARTITION_TABLE_SINGLE_APP 1
|
||||
#define CONFIG_PARTITION_TABLE_CUSTOM_FILENAME "partitions.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp_coredump.csv"
|
||||
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
|
||||
#define CONFIG_PARTITION_TABLE_MD5 1
|
||||
#define CONFIG_LIB_BUILDER_FLASHMODE "dout"
|
||||
|
|
@ -342,7 +342,14 @@
|
|||
#define CONFIG_ESP_WIFI_FTM_INITIATOR_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_FTM_RESPONDER_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_SOFTAP_SUPPORT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_NONE 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH 1
|
||||
#define CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECKSUM_CRC32 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
|
||||
#define CONFIG_ESP_COREDUMP_STACK_SIZE 1024
|
||||
#define CONFIG_ESP_COREDUMP_SUMMARY_STACKDUMP_SIZE 1024
|
||||
#define CONFIG_FATFS_CODEPAGE_850 1
|
||||
#define CONFIG_FATFS_CODEPAGE 850
|
||||
#define CONFIG_FATFS_LFN_STACK 1
|
||||
|
|
@ -387,7 +394,7 @@
|
|||
#define CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1
|
||||
#define CONFIG_FREERTOS_ASSERT_FAIL_ABORT 1
|
||||
#define CONFIG_FREERTOS_IDLE_TASK_STACKSIZE 2304
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 1536
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 2096
|
||||
#define CONFIG_FREERTOS_MAX_TASK_NAME_LEN 16
|
||||
#define CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION 1
|
||||
#define CONFIG_FREERTOS_TIMER_TASK_PRIORITY 1
|
||||
|
|
@ -620,6 +627,8 @@
|
|||
#define CONFIG_DIAG_ENABLE_VARIABLES 1
|
||||
#define CONFIG_DIAG_VARIABLES_MAX_COUNT 20
|
||||
#define CONFIG_DIAG_ENABLE_NETWORK_VARIABLES 1
|
||||
#define CONFIG_ESP_INSIGHTS_ENABLED 1
|
||||
#define CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST "https://client.insights.espressif.com"
|
||||
#define CONFIG_ESP_INSIGHTS_CLOUD_POST_MIN_INTERVAL_SEC 60
|
||||
|
|
@ -692,7 +701,11 @@
|
|||
#define CONFIG_ESP32S2_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_ALLOW_RTC_FAST_MEM_AS_HEAP CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
|
||||
#define CONFIG_ESP32_APPTRACE_DEST_NONE CONFIG_APPTRACE_DEST_NONE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
|
||||
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
|
||||
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
|
||||
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
|
||||
#define CONFIG_ESP32_CORE_DUMP_STACK_SIZE CONFIG_ESP_COREDUMP_STACK_SIZE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
|
||||
#define CONFIG_ESP32_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||
#define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
|
||||
// Copyright 2018-2022 Espressif Systems (Shanghai) PTE LTD
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
@ -28,9 +28,9 @@ extern "C"
|
|||
/**
|
||||
* @brief Data struct of f32 fir filter
|
||||
*
|
||||
* This structure used by filter internally. User should access this structure only in case of
|
||||
* This structure is used by a filter internally. A user should access this structure only in case of
|
||||
* extensions for the DSP Library.
|
||||
* All fields of this structure initialized by dsps_fir_init_f32(...) function.
|
||||
* All fields of this structure are initialized by the dsps_fir_init_f32(...) function.
|
||||
*/
|
||||
typedef struct fir_f32_s {
|
||||
float *coeffs; /*!< Pointer to the coefficient buffer.*/
|
||||
|
|
@ -41,6 +41,23 @@ typedef struct fir_f32_s {
|
|||
int d_pos; /*!< Actual decimation counter.*/
|
||||
} fir_f32_t;
|
||||
|
||||
/**
|
||||
* @brief Data struct of s16 fir filter
|
||||
*
|
||||
* This structure is used by a filter internally. A user should access this structure only in case of
|
||||
* extensions for the DSP Library.
|
||||
* All fields of this structure are initialized by the dsps_fir_init_s16(...) function.
|
||||
*/
|
||||
typedef struct fir_s16_s{
|
||||
int16_t *coeffs; /*!< Pointer to the coefficient buffer.*/
|
||||
int16_t *delay; /*!< Pointer to the delay line buffer.*/
|
||||
int16_t coeffs_len; /*!< FIR filter coefficients amount.*/
|
||||
int16_t pos; /*!< Position in delay line.*/
|
||||
int16_t decim; /*!< Decimation factor.*/
|
||||
int16_t d_pos; /*!< Actual decimation counter.*/
|
||||
int16_t shift; /*!< shift value of the result.*/
|
||||
}fir_s16_t;
|
||||
|
||||
/**
|
||||
* @brief initialize structure for 32 bit FIR filter
|
||||
*
|
||||
|
|
@ -76,18 +93,37 @@ esp_err_t dsps_fir_init_f32(fir_f32_t *fir, float *coeffs, float *delay, int N);
|
|||
*/
|
||||
esp_err_t dsps_fird_init_f32(fir_f32_t *fir, float *coeffs, float *delay, int N, int decim, int start_pos);
|
||||
|
||||
/**
|
||||
* @brief initialize structure for 16 bit Decimation FIR filter
|
||||
* Function initialize structure for 16 bit signed fixed point FIR filter with decimation
|
||||
* The implementation use ANSI C and could be compiled and run on any platform
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be preallocated
|
||||
* @param coeffs: array with FIR filter coefficients. Must be length N
|
||||
* @param delay: array for FIR filter delay line. Must be length N
|
||||
* @param coeffs_len: FIR filter length. Length of coeffs and delay arrays.
|
||||
* @param decim: decimation factor.
|
||||
* @param start_pos: initial value of decimation counter. Must be [0..d)
|
||||
* @param shift: shift position of the result
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK on success
|
||||
* - One of the error codes from DSP library
|
||||
*/
|
||||
esp_err_t dsps_fird_init_s16(fir_s16_t *fir, int16_t *coeffs, int16_t *delay, int16_t coeffs_len, int16_t decim, int16_t start_pos, int16_t shift);
|
||||
|
||||
|
||||
/**@{*/
|
||||
/**
|
||||
* @brief FIR filter
|
||||
* @brief 32 bit floating point FIR filter
|
||||
*
|
||||
* Function implements FIR filter
|
||||
* The extension (_ansi) use ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ansi) uses ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ae32) is optimized for ESP32 chip.
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be initialized before
|
||||
* @param[in] input: input array
|
||||
* @param[out] output: array with result of FIR filter
|
||||
* @param[out] output: array with the result of FIR filter
|
||||
* @param[in] len: length of input and result arrays
|
||||
*
|
||||
* @return
|
||||
|
|
@ -101,24 +137,43 @@ esp_err_t dsps_fir_f32_aes3(fir_f32_t *fir, const float *input, float *output, i
|
|||
|
||||
/**@{*/
|
||||
/**
|
||||
* @brief Decimation FIR filter
|
||||
* @brief 32 bit floating point Decimation FIR filter
|
||||
*
|
||||
* Function implements FIR filter with decimation
|
||||
* The extension (_ansi) use ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ansi) uses ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ae32) is optimized for ESP32 chip.
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be initialized before
|
||||
* @param input: input array
|
||||
* @param output: array with result of FIR filter
|
||||
* @param output: array with the result of FIR filter
|
||||
* @param len: length of input and result arrays
|
||||
*
|
||||
* @return: function returns amount of samples stored to the output array
|
||||
* @return: function returns the number of samples stored in the output array
|
||||
* depends on the previous state value could be [0..len/decimation]
|
||||
*/
|
||||
int dsps_fird_f32_ansi(fir_f32_t *fir, const float *input, float *output, int len);
|
||||
int dsps_fird_f32_ae32(fir_f32_t *fir, const float *input, float *output, int len);
|
||||
/**@}*/
|
||||
|
||||
/**@{*/
|
||||
/**
|
||||
* @brief 16 bit signed fixed point Decimation FIR filter
|
||||
*
|
||||
* Function implements FIR filter with decimation
|
||||
* The extension (_ansi) uses ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ae32) is optimized for ESP32 chip.
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be initialized before
|
||||
* @param input: input array
|
||||
* @param output: array with the result of the FIR filter
|
||||
* @param len: length of the result array
|
||||
*
|
||||
* @return: function returns the number of samples stored in the output array
|
||||
* depends on the previous state value could be [0..len/decimation]
|
||||
*/
|
||||
int32_t dsps_fird_s16_ansi(fir_s16_t *fir, const int16_t *input, int16_t *output, int32_t len);
|
||||
int32_t dsps_fird_s16_ae32(fir_s16_t *fir, const int16_t *input, int16_t *output, int32_t len);
|
||||
/**@}*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
@ -139,9 +194,16 @@ int dsps_fird_f32_ae32(fir_f32_t *fir, const float *input, float *output, int le
|
|||
#define dsps_fird_f32 dsps_fird_f32_ansi
|
||||
#endif
|
||||
|
||||
#if (dsps_fird_s16_ae32_enabled == 1)
|
||||
#define dsps_fird_s16 dsps_fird_s16_ae32
|
||||
#else
|
||||
#define dsps_fird_s16 dsps_fird_s16_ansi
|
||||
#endif
|
||||
|
||||
#else // CONFIG_DSP_OPTIMIZED
|
||||
#define dsps_fir_f32 dsps_fir_f32_ansi
|
||||
#define dsps_fird_f32 dsps_fird_f32_ansi
|
||||
#define dsps_fird_s16 dsps_fird_s16_ansi
|
||||
#endif // CONFIG_DSP_OPTIMIZED
|
||||
|
||||
#endif // _dsps_fir_H_
|
||||
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#define dsps_fir_f32_ae32_enabled 1
|
||||
#define dsps_fird_f32_ae32_enabled 1
|
||||
#define dsps_fird_s16_ae32_enabled 1
|
||||
#define dsps_fird_s16_ae32_mul_enabled 1
|
||||
|
||||
#endif //
|
||||
#endif // __XTENSA__
|
||||
|
|
|
|||
|
|
@ -128,7 +128,11 @@ typedef struct {
|
|||
} esp_insights_transport_config_t;
|
||||
|
||||
/**
|
||||
* @brief Initialize ESP Insights
|
||||
* @brief Initialize ESP Insights.
|
||||
*
|
||||
* This initializes ESP Insights with the transport (HTTPS/MQTT) as per the sdkconfig.
|
||||
* To override the transport configuration, please use esp_insights_transport_register()
|
||||
* and esp_insights_enable().
|
||||
*
|
||||
* @param[in] config Configuration for ESP Insights.
|
||||
*
|
||||
|
|
@ -137,12 +141,19 @@ typedef struct {
|
|||
esp_err_t esp_insights_init(esp_insights_config_t *config);
|
||||
|
||||
/**
|
||||
* @brief Deinitialize ESP Insights
|
||||
* @brief Deinitialize ESP Insights.
|
||||
*
|
||||
* Disconnects the registered transport and disables ESP Insights
|
||||
*/
|
||||
void esp_insights_deinit(void);
|
||||
|
||||
/**
|
||||
* @brief Register insights transport
|
||||
* @brief Register insights transport.
|
||||
*
|
||||
* This function should be used only when default transport needs to be overridden.
|
||||
*
|
||||
* @note Call esp_insights_enable()
|
||||
* after registering your own transport to enable Insights.
|
||||
*
|
||||
* @param[in] config Configurations of type \ref esp_insights_transport_config_t
|
||||
*
|
||||
|
|
@ -151,12 +162,15 @@ void esp_insights_deinit(void);
|
|||
esp_err_t esp_insights_transport_register(esp_insights_transport_config_t *config);
|
||||
|
||||
/**
|
||||
* @brief Unregister insights transport
|
||||
* @brief Unregister insights transport.
|
||||
*
|
||||
* @note This API does not disable Insights.
|
||||
* Call esp_insights_disable() to turn off Insights.
|
||||
*/
|
||||
void esp_insights_transport_unregister(void);
|
||||
|
||||
/**
|
||||
* @brief Read insights data from buffers and send it to the cloud
|
||||
* @brief Read insights data from buffers and send it to the cloud.
|
||||
*
|
||||
* Call to this function is asynchronous, it may take some time to send the data.
|
||||
*
|
||||
|
|
@ -164,6 +178,33 @@ void esp_insights_transport_unregister(void);
|
|||
*/
|
||||
esp_err_t esp_insights_send_data(void);
|
||||
|
||||
/**
|
||||
* @brief Enable ESP Insights except transport.
|
||||
*
|
||||
* This API is used in conjunction with esp_insights_transport_register()
|
||||
* to start Insights with custom transport.
|
||||
*
|
||||
* @param[in] config Configuration for ESP Insights.
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise
|
||||
*/
|
||||
esp_err_t esp_insights_enable(esp_insights_config_t *config);
|
||||
|
||||
/**
|
||||
* @brief Disable ESP Insights.
|
||||
*
|
||||
* This API does not unregister the transport.
|
||||
*
|
||||
* @note Call esp_insights_transport_unregister() to remove the transport.
|
||||
*/
|
||||
void esp_insights_disable(void);
|
||||
|
||||
/**
|
||||
* @brief Returns pointer to the NULL terminated Node ID string.
|
||||
*
|
||||
* @return Pointer to a NULL terminated Node ID string.
|
||||
*/
|
||||
const char *esp_insights_get_node_id(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -36,6 +36,33 @@ typedef enum {
|
|||
RTC_STORE_EVENT_NON_CRITICAL_DATA_WRITE_FAIL, /*!< Non critical data write failed */
|
||||
} rtc_store_event_t;
|
||||
|
||||
#define SHA_SIZE (CONFIG_APP_RETRIEVE_LEN_ELF_SHA / 2)
|
||||
|
||||
/**
|
||||
* @brief header record to identify firmware/boot data a record represent
|
||||
*/
|
||||
typedef struct {
|
||||
uint8_t gen_id; // generated on each hard reset
|
||||
uint8_t boot_cnt; // updated on each soft reboot
|
||||
char sha_sum[SHA_SIZE]; // elf shasum
|
||||
bool valid; //
|
||||
} rtc_store_meta_header_t;
|
||||
|
||||
/**
|
||||
* @brief get meta header for idx
|
||||
*
|
||||
* @param idx idx of meta from records
|
||||
* @return rtc_store_meta_header_t*
|
||||
*/
|
||||
rtc_store_meta_header_t *rtc_store_get_meta_record_by_index(uint8_t idx);
|
||||
|
||||
/**
|
||||
* @brief get current meta header
|
||||
*
|
||||
* @return rtc_store_meta_header_t*
|
||||
*/
|
||||
rtc_store_meta_header_t *rtc_store_get_meta_record_current();
|
||||
|
||||
/**
|
||||
* @brief Non critical data header
|
||||
*/
|
||||
|
|
@ -57,44 +84,34 @@ esp_err_t rtc_store_critical_data_write(void *data, size_t len);
|
|||
/**
|
||||
* @brief Read critical data from the RTC storage
|
||||
*
|
||||
* @param[out] size Number of bytes read
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes to read
|
||||
*
|
||||
* @return Pointer to the data on success, otherwise NULL
|
||||
*
|
||||
* @note It is mandatory to call \ref rtc_store_critical_data_release_and_unlock() if \ref rtc_store_critical_data_read_and_lock() is successful.
|
||||
* @note Please avoid adding \ref ESP_DIAG_EVENT(), error/warning logs using esp_log module in between rtc_store_critical_data_read_and_lock() and rtc_store_critical_data_release_and_unlock() API calls. It may lead to a deadlock.
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
const void *rtc_store_critical_data_read_and_lock(size_t *size);
|
||||
|
||||
/**
|
||||
* @brief Release the utilized data read using \ref rtc_store_critical_data_read_and_lock()
|
||||
*
|
||||
* This API releases the utilized data read using \ref rtc_store_critical_data_read_and_lock().
|
||||
* Utilization may involve encoding data, sending data to the cloud, post processing or printing on the console, etc.
|
||||
*
|
||||
* @param[in] size Number of bytes to free. If all the data is utilized then pass the size returned by \ref rtc_store_critical_data_read_and_lock() or 0 if no data is utilized (e.g. sending to cloud failed).
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise.
|
||||
*
|
||||
* @note Please avoid adding \ref ESP_DIAG_EVENT(), error/warning logs using esp_log module in between rtc_store_critical_data_read_and_lock() and rtc_store_critical_data_release_and_unlock() API calls. It may lead to a deadlock.
|
||||
*/
|
||||
esp_err_t rtc_store_critical_data_release_and_unlock(size_t size);
|
||||
int rtc_store_critical_data_read(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Release the size bytes critical data from RTC storage
|
||||
*
|
||||
* This API can be used to remove data from buffer when data is sent asynchronously.
|
||||
*
|
||||
* Consider data is read using \ref rtc_store_critical_data_read_and_lock() and sent to cloud asynchronously.
|
||||
* Since status of data send is unknown, call \ref rtc_store_critical_data_release_and_unlock() with zero length.
|
||||
* When acknowledgement for data send is received use this API with appropriate size to remove the data from the buffer.
|
||||
*
|
||||
* @param[in] size Number of bytes to free.
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise.
|
||||
*/
|
||||
esp_err_t rtc_store_critical_data_release(size_t size);
|
||||
|
||||
/**
|
||||
* @brief Read critical data from the RTC storage and release that data
|
||||
*
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes to read
|
||||
*
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
int rtc_store_critical_data_read_and_release(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Write non critical data to the RTC storage
|
||||
*
|
||||
|
|
@ -116,26 +133,12 @@ esp_err_t rtc_store_non_critical_data_write(const char *dg, void *data, size_t l
|
|||
/**
|
||||
* @brief Read non critical data from the RTC storage
|
||||
*
|
||||
* @param[out] size Number of bytes read
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes read
|
||||
*
|
||||
* @return Pointer to the data on success, otherwise NULL
|
||||
*
|
||||
* @note It is mandatory to call \ref rtc_store_non_critical_data_release_and_unlock() if \ref rtc_store_non_critical_data_read_and_lock() is successful.
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
const void *rtc_store_non_critical_data_read_and_lock(size_t *size);
|
||||
|
||||
/**
|
||||
* @brief Release the utilized data read using \ref rtc_store_non_critical_data_read_and_lock()
|
||||
*
|
||||
* This API releases the utilized data read using \ref rtc_store_non_critical_data_read_and_lock().
|
||||
* Utilization may involve encoding data, sending data to the cloud, post processing or printing on the console, etc.
|
||||
*
|
||||
* @param[in] size Number of bytes to free. If all the data is utilized then pass the size returned by \ref rtc_store_non_critical_data_read_and_lock() or 0 if no data is utilized (e.g. sending to cloud failed).
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise.
|
||||
*
|
||||
*/
|
||||
esp_err_t rtc_store_non_critical_data_release_and_unlock(size_t size);
|
||||
int rtc_store_non_critical_data_read(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Release the size bytes non critical data from RTC storage
|
||||
|
|
@ -146,6 +149,16 @@ esp_err_t rtc_store_non_critical_data_release_and_unlock(size_t size);
|
|||
*/
|
||||
esp_err_t rtc_store_non_critical_data_release(size_t size);
|
||||
|
||||
/**
|
||||
* @brief Read non_critical data from the RTC storage and release that data
|
||||
*
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes read
|
||||
*
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
int rtc_store_non_critical_data_read_and_release(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Initializes the RTC storage
|
||||
*
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -48,7 +48,7 @@
|
|||
#define CONFIG_ESPTOOLPY_MONITOR_BAUD 115200
|
||||
#define CONFIG_PARTITION_TABLE_SINGLE_APP 1
|
||||
#define CONFIG_PARTITION_TABLE_CUSTOM_FILENAME "partitions.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp_coredump.csv"
|
||||
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
|
||||
#define CONFIG_PARTITION_TABLE_MD5 1
|
||||
#define CONFIG_LIB_BUILDER_FLASHMODE "qio"
|
||||
|
|
@ -342,7 +342,14 @@
|
|||
#define CONFIG_ESP_WIFI_FTM_INITIATOR_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_FTM_RESPONDER_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_SOFTAP_SUPPORT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_NONE 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH 1
|
||||
#define CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECKSUM_CRC32 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
|
||||
#define CONFIG_ESP_COREDUMP_STACK_SIZE 1024
|
||||
#define CONFIG_ESP_COREDUMP_SUMMARY_STACKDUMP_SIZE 1024
|
||||
#define CONFIG_FATFS_CODEPAGE_850 1
|
||||
#define CONFIG_FATFS_CODEPAGE 850
|
||||
#define CONFIG_FATFS_LFN_STACK 1
|
||||
|
|
@ -387,7 +394,7 @@
|
|||
#define CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1
|
||||
#define CONFIG_FREERTOS_ASSERT_FAIL_ABORT 1
|
||||
#define CONFIG_FREERTOS_IDLE_TASK_STACKSIZE 2304
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 1536
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 2096
|
||||
#define CONFIG_FREERTOS_MAX_TASK_NAME_LEN 16
|
||||
#define CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION 1
|
||||
#define CONFIG_FREERTOS_TIMER_TASK_PRIORITY 1
|
||||
|
|
@ -620,6 +627,8 @@
|
|||
#define CONFIG_DIAG_ENABLE_VARIABLES 1
|
||||
#define CONFIG_DIAG_VARIABLES_MAX_COUNT 20
|
||||
#define CONFIG_DIAG_ENABLE_NETWORK_VARIABLES 1
|
||||
#define CONFIG_ESP_INSIGHTS_ENABLED 1
|
||||
#define CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST "https://client.insights.espressif.com"
|
||||
#define CONFIG_ESP_INSIGHTS_CLOUD_POST_MIN_INTERVAL_SEC 60
|
||||
|
|
@ -692,7 +701,11 @@
|
|||
#define CONFIG_ESP32S2_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_ALLOW_RTC_FAST_MEM_AS_HEAP CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
|
||||
#define CONFIG_ESP32_APPTRACE_DEST_NONE CONFIG_APPTRACE_DEST_NONE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
|
||||
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
|
||||
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
|
||||
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
|
||||
#define CONFIG_ESP32_CORE_DUMP_STACK_SIZE CONFIG_ESP_COREDUMP_STACK_SIZE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
|
||||
#define CONFIG_ESP32_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||
#define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
#define CONFIG_ESPTOOLPY_MONITOR_BAUD 115200
|
||||
#define CONFIG_PARTITION_TABLE_SINGLE_APP 1
|
||||
#define CONFIG_PARTITION_TABLE_CUSTOM_FILENAME "partitions.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp_coredump.csv"
|
||||
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
|
||||
#define CONFIG_PARTITION_TABLE_MD5 1
|
||||
#define CONFIG_LIB_BUILDER_FLASHMODE "qout"
|
||||
|
|
@ -342,7 +342,14 @@
|
|||
#define CONFIG_ESP_WIFI_FTM_INITIATOR_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_FTM_RESPONDER_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_SOFTAP_SUPPORT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_NONE 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH 1
|
||||
#define CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECKSUM_CRC32 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
|
||||
#define CONFIG_ESP_COREDUMP_STACK_SIZE 1024
|
||||
#define CONFIG_ESP_COREDUMP_SUMMARY_STACKDUMP_SIZE 1024
|
||||
#define CONFIG_FATFS_CODEPAGE_850 1
|
||||
#define CONFIG_FATFS_CODEPAGE 850
|
||||
#define CONFIG_FATFS_LFN_STACK 1
|
||||
|
|
@ -387,7 +394,7 @@
|
|||
#define CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1
|
||||
#define CONFIG_FREERTOS_ASSERT_FAIL_ABORT 1
|
||||
#define CONFIG_FREERTOS_IDLE_TASK_STACKSIZE 2304
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 1536
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 2096
|
||||
#define CONFIG_FREERTOS_MAX_TASK_NAME_LEN 16
|
||||
#define CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION 1
|
||||
#define CONFIG_FREERTOS_TIMER_TASK_PRIORITY 1
|
||||
|
|
@ -620,6 +627,8 @@
|
|||
#define CONFIG_DIAG_ENABLE_VARIABLES 1
|
||||
#define CONFIG_DIAG_VARIABLES_MAX_COUNT 20
|
||||
#define CONFIG_DIAG_ENABLE_NETWORK_VARIABLES 1
|
||||
#define CONFIG_ESP_INSIGHTS_ENABLED 1
|
||||
#define CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST "https://client.insights.espressif.com"
|
||||
#define CONFIG_ESP_INSIGHTS_CLOUD_POST_MIN_INTERVAL_SEC 60
|
||||
|
|
@ -692,7 +701,11 @@
|
|||
#define CONFIG_ESP32S2_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_ALLOW_RTC_FAST_MEM_AS_HEAP CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
|
||||
#define CONFIG_ESP32_APPTRACE_DEST_NONE CONFIG_APPTRACE_DEST_NONE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
|
||||
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
|
||||
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
|
||||
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
|
||||
#define CONFIG_ESP32_CORE_DUMP_STACK_SIZE CONFIG_ESP_COREDUMP_STACK_SIZE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
|
||||
#define CONFIG_ESP32_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||
#define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ CONFIG_PARTITION_TABLE_SINGLE_APP=y
|
|||
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
|
||||
# CONFIG_PARTITION_TABLE_CUSTOM is not set
|
||||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
||||
CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp.csv"
|
||||
CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp_coredump.csv"
|
||||
CONFIG_PARTITION_TABLE_OFFSET=0x8000
|
||||
CONFIG_PARTITION_TABLE_MD5=y
|
||||
# end of Partition Table
|
||||
|
|
@ -1055,9 +1055,17 @@ CONFIG_ESP_WIFI_SOFTAP_SUPPORT=y
|
|||
#
|
||||
# Core dump
|
||||
#
|
||||
# CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH is not set
|
||||
CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=y
|
||||
# CONFIG_ESP_COREDUMP_ENABLE_TO_UART is not set
|
||||
CONFIG_ESP_COREDUMP_ENABLE_TO_NONE=y
|
||||
# CONFIG_ESP_COREDUMP_ENABLE_TO_NONE is not set
|
||||
# CONFIG_ESP_COREDUMP_DATA_FORMAT_BIN is not set
|
||||
CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF=y
|
||||
CONFIG_ESP_COREDUMP_CHECKSUM_CRC32=y
|
||||
CONFIG_ESP_COREDUMP_CHECK_BOOT=y
|
||||
CONFIG_ESP_COREDUMP_ENABLE=y
|
||||
CONFIG_ESP_COREDUMP_MAX_TASKS_NUM=64
|
||||
CONFIG_ESP_COREDUMP_STACK_SIZE=1024
|
||||
CONFIG_ESP_COREDUMP_SUMMARY_STACKDUMP_SIZE=1024
|
||||
# end of Core dump
|
||||
|
||||
#
|
||||
|
|
@ -1152,7 +1160,7 @@ CONFIG_FREERTOS_ASSERT_FAIL_ABORT=y
|
|||
# CONFIG_FREERTOS_ASSERT_FAIL_PRINT_CONTINUE is not set
|
||||
# CONFIG_FREERTOS_ASSERT_DISABLE is not set
|
||||
CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=2304
|
||||
CONFIG_FREERTOS_ISR_STACKSIZE=1536
|
||||
CONFIG_FREERTOS_ISR_STACKSIZE=2096
|
||||
# CONFIG_FREERTOS_LEGACY_HOOKS is not set
|
||||
CONFIG_FREERTOS_MAX_TASK_NAME_LEN=16
|
||||
CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION=y
|
||||
|
|
@ -1779,12 +1787,15 @@ CONFIG_DIAG_ENABLE_WIFI_METRICS=y
|
|||
CONFIG_DIAG_ENABLE_VARIABLES=y
|
||||
CONFIG_DIAG_VARIABLES_MAX_COUNT=20
|
||||
CONFIG_DIAG_ENABLE_NETWORK_VARIABLES=y
|
||||
# CONFIG_DIAG_MORE_NETWORK_VARS is not set
|
||||
# end of Diagnostics
|
||||
|
||||
#
|
||||
# ESP Insights
|
||||
#
|
||||
# CONFIG_ESP_INSIGHTS_ENABLED is not set
|
||||
CONFIG_ESP_INSIGHTS_ENABLED=y
|
||||
# CONFIG_ESP_INSIGHTS_DEBUG_ENABLED is not set
|
||||
CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE=y
|
||||
# CONFIG_ESP_INSIGHTS_TRANSPORT_MQTT is not set
|
||||
CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS=y
|
||||
CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST="https://client.insights.espressif.com"
|
||||
|
|
@ -2130,9 +2141,15 @@ CONFIG_TASK_WDT_TIMEOUT_S=5
|
|||
# CONFIG_ESP32_DEBUG_STUBS_ENABLE is not set
|
||||
CONFIG_TIMER_TASK_STACK_SIZE=4096
|
||||
CONFIG_SW_COEXIST_ENABLE=y
|
||||
# CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH is not set
|
||||
CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH=y
|
||||
# CONFIG_ESP32_ENABLE_COREDUMP_TO_UART is not set
|
||||
CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE=y
|
||||
# CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE is not set
|
||||
# CONFIG_ESP32_COREDUMP_DATA_FORMAT_BIN is not set
|
||||
CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF=y
|
||||
CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32=y
|
||||
CONFIG_ESP32_ENABLE_COREDUMP=y
|
||||
CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM=64
|
||||
CONFIG_ESP32_CORE_DUMP_STACK_SIZE=1024
|
||||
CONFIG_MB_MASTER_TIMEOUT_MS_RESPOND=150
|
||||
CONFIG_MB_MASTER_DELAY_MS_CONVERT=200
|
||||
CONFIG_MB_QUEUE_LENGTH=20
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
#define CONFIG_ESPTOOLPY_MONITOR_BAUD 115200
|
||||
#define CONFIG_PARTITION_TABLE_SINGLE_APP 1
|
||||
#define CONFIG_PARTITION_TABLE_CUSTOM_FILENAME "partitions.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp_coredump.csv"
|
||||
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
|
||||
#define CONFIG_PARTITION_TABLE_MD5 1
|
||||
#define CONFIG_LIB_BUILDER_FLASHMODE "dio"
|
||||
|
|
@ -252,7 +252,12 @@
|
|||
#define CONFIG_ESP_WIFI_FTM_INITIATOR_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_FTM_RESPONDER_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_SOFTAP_SUPPORT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_NONE 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH 1
|
||||
#define CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECKSUM_CRC32 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
|
||||
#define CONFIG_FATFS_CODEPAGE_850 1
|
||||
#define CONFIG_FATFS_CODEPAGE 850
|
||||
#define CONFIG_FATFS_LFN_STACK 1
|
||||
|
|
@ -299,7 +304,7 @@
|
|||
#define CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1
|
||||
#define CONFIG_FREERTOS_ASSERT_FAIL_ABORT 1
|
||||
#define CONFIG_FREERTOS_IDLE_TASK_STACKSIZE 1024
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 1536
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 2096
|
||||
#define CONFIG_FREERTOS_MAX_TASK_NAME_LEN 16
|
||||
#define CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION 1
|
||||
#define CONFIG_FREERTOS_TIMER_TASK_PRIORITY 1
|
||||
|
|
@ -534,6 +539,8 @@
|
|||
#define CONFIG_DIAG_ENABLE_VARIABLES 1
|
||||
#define CONFIG_DIAG_VARIABLES_MAX_COUNT 20
|
||||
#define CONFIG_DIAG_ENABLE_NETWORK_VARIABLES 1
|
||||
#define CONFIG_ESP_INSIGHTS_ENABLED 1
|
||||
#define CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST "https://client.insights.espressif.com"
|
||||
#define CONFIG_ESP_INSIGHTS_CLOUD_POST_MIN_INTERVAL_SEC 60
|
||||
|
|
@ -591,7 +598,10 @@
|
|||
#define CONFIG_ESP32S2_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_ALLOW_RTC_FAST_MEM_AS_HEAP CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
|
||||
#define CONFIG_ESP32_APPTRACE_DEST_NONE CONFIG_APPTRACE_DEST_NONE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
|
||||
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
|
||||
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
|
||||
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
|
||||
#define CONFIG_ESP32_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||
#define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
#define CONFIG_ESPTOOLPY_MONITOR_BAUD 115200
|
||||
#define CONFIG_PARTITION_TABLE_SINGLE_APP 1
|
||||
#define CONFIG_PARTITION_TABLE_CUSTOM_FILENAME "partitions.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp_coredump.csv"
|
||||
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
|
||||
#define CONFIG_PARTITION_TABLE_MD5 1
|
||||
#define CONFIG_LIB_BUILDER_FLASHMODE "dout"
|
||||
|
|
@ -252,7 +252,12 @@
|
|||
#define CONFIG_ESP_WIFI_FTM_INITIATOR_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_FTM_RESPONDER_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_SOFTAP_SUPPORT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_NONE 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH 1
|
||||
#define CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECKSUM_CRC32 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
|
||||
#define CONFIG_FATFS_CODEPAGE_850 1
|
||||
#define CONFIG_FATFS_CODEPAGE 850
|
||||
#define CONFIG_FATFS_LFN_STACK 1
|
||||
|
|
@ -299,7 +304,7 @@
|
|||
#define CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1
|
||||
#define CONFIG_FREERTOS_ASSERT_FAIL_ABORT 1
|
||||
#define CONFIG_FREERTOS_IDLE_TASK_STACKSIZE 1024
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 1536
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 2096
|
||||
#define CONFIG_FREERTOS_MAX_TASK_NAME_LEN 16
|
||||
#define CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION 1
|
||||
#define CONFIG_FREERTOS_TIMER_TASK_PRIORITY 1
|
||||
|
|
@ -534,6 +539,8 @@
|
|||
#define CONFIG_DIAG_ENABLE_VARIABLES 1
|
||||
#define CONFIG_DIAG_VARIABLES_MAX_COUNT 20
|
||||
#define CONFIG_DIAG_ENABLE_NETWORK_VARIABLES 1
|
||||
#define CONFIG_ESP_INSIGHTS_ENABLED 1
|
||||
#define CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST "https://client.insights.espressif.com"
|
||||
#define CONFIG_ESP_INSIGHTS_CLOUD_POST_MIN_INTERVAL_SEC 60
|
||||
|
|
@ -591,7 +598,10 @@
|
|||
#define CONFIG_ESP32S2_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_ALLOW_RTC_FAST_MEM_AS_HEAP CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
|
||||
#define CONFIG_ESP32_APPTRACE_DEST_NONE CONFIG_APPTRACE_DEST_NONE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
|
||||
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
|
||||
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
|
||||
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
|
||||
#define CONFIG_ESP32_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||
#define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
|
||||
|
|
|
|||
|
|
@ -42,15 +42,13 @@ extern "C" {
|
|||
// within a certain number (see tu_fifo_overflow()).
|
||||
|
||||
#include "common/tusb_common.h"
|
||||
#include "osal/osal.h"
|
||||
|
||||
#define tu_fifo_mutex_t osal_mutex_t
|
||||
|
||||
// mutex is only needed for RTOS
|
||||
// for OS None, we don't get preempted
|
||||
#define CFG_FIFO_MUTEX (CFG_TUSB_OS != OPT_OS_NONE)
|
||||
|
||||
#if CFG_FIFO_MUTEX
|
||||
#include "osal/osal.h"
|
||||
#define tu_fifo_mutex_t osal_mutex_t
|
||||
#endif
|
||||
#define CFG_FIFO_MUTEX OSAL_MUTEX_REQUIRED
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
@ -65,7 +63,7 @@ typedef struct
|
|||
volatile uint16_t wr_idx ; ///< write pointer
|
||||
volatile uint16_t rd_idx ; ///< read pointer
|
||||
|
||||
#if CFG_FIFO_MUTEX
|
||||
#if OSAL_MUTEX_REQUIRED
|
||||
tu_fifo_mutex_t mutex_wr;
|
||||
tu_fifo_mutex_t mutex_rd;
|
||||
#endif
|
||||
|
|
@ -99,13 +97,18 @@ bool tu_fifo_set_overwritable(tu_fifo_t *f, bool overwritable);
|
|||
bool tu_fifo_clear(tu_fifo_t *f);
|
||||
bool tu_fifo_config(tu_fifo_t *f, void* buffer, uint16_t depth, uint16_t item_size, bool overwritable);
|
||||
|
||||
#if CFG_FIFO_MUTEX
|
||||
#if OSAL_MUTEX_REQUIRED
|
||||
TU_ATTR_ALWAYS_INLINE static inline
|
||||
void tu_fifo_config_mutex(tu_fifo_t *f, tu_fifo_mutex_t write_mutex_hdl, tu_fifo_mutex_t read_mutex_hdl)
|
||||
{
|
||||
f->mutex_wr = write_mutex_hdl;
|
||||
f->mutex_rd = read_mutex_hdl;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#define tu_fifo_config_mutex(_f, _wr_mutex, _rd_mutex)
|
||||
|
||||
#endif
|
||||
|
||||
bool tu_fifo_write (tu_fifo_t* f, void const * p_data);
|
||||
|
|
|
|||
|
|
@ -281,6 +281,10 @@
|
|||
// Default Values
|
||||
//--------------------------------------------------------------------+
|
||||
|
||||
#ifndef TUP_MCU_MULTIPLE_CORE
|
||||
#define TUP_MCU_MULTIPLE_CORE 0
|
||||
#endif
|
||||
|
||||
#ifndef TUP_DCD_ENDPOINT_MAX
|
||||
#warning "TUP_DCD_ENDPOINT_MAX is not defined for this MCU, default to 8"
|
||||
#define TUP_DCD_ENDPOINT_MAX 8
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb
|
|||
/* MIDI Streaming (MS) Interface */\
|
||||
9, TUSB_DESC_INTERFACE, (uint8_t)((_itfnum) + 1), 0, 2, TUSB_CLASS_AUDIO, AUDIO_SUBCLASS_MIDI_STREAMING, AUDIO_FUNC_PROTOCOL_CODE_UNDEF, 0,\
|
||||
/* MS Header */\
|
||||
7, TUSB_DESC_CS_INTERFACE, MIDI_CS_INTERFACE_HEADER, U16_TO_U8S_LE(0x0100), U16_TO_U8S_LE(7 + (_numcables) * TUD_MIDI_DESC_JACK_LEN)
|
||||
7, TUSB_DESC_CS_INTERFACE, MIDI_CS_INTERFACE_HEADER, U16_TO_U8S_LE(0x0100), U16_TO_U8S_LE(7 + (_numcables) * TUD_MIDI_DESC_JACK_LEN + 2 * TUD_MIDI_DESC_EP_LEN(_numcables))
|
||||
|
||||
#define TUD_MIDI_JACKID_IN_EMB(_cablenum) \
|
||||
(uint8_t)(((_cablenum) - 1) * 4 + 1)
|
||||
|
|
@ -317,6 +317,7 @@ TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb
|
|||
9, TUSB_DESC_CS_INTERFACE, MIDI_CS_INTERFACE_OUT_JACK, MIDI_JACK_EMBEDDED, TUD_MIDI_JACKID_OUT_EMB(_cablenum), 1, TUD_MIDI_JACKID_IN_EXT(_cablenum), 1, _stridx,\
|
||||
/* MS Out Jack (External), connected to In Jack Embedded */\
|
||||
9, TUSB_DESC_CS_INTERFACE, MIDI_CS_INTERFACE_OUT_JACK, MIDI_JACK_EXTERNAL, TUD_MIDI_JACKID_OUT_EXT(_cablenum), 1, TUD_MIDI_JACKID_IN_EMB(_cablenum), 1, _stridx
|
||||
|
||||
#define TUD_MIDI_DESC_JACK(_cablenum) TUD_MIDI_DESC_JACK_DESC(_cablenum, 0)
|
||||
|
||||
#define TUD_MIDI_DESC_EP_LEN(_numcables) (9 + 4 + (_numcables))
|
||||
|
|
|
|||
|
|
@ -33,17 +33,24 @@
|
|||
|
||||
#include "common/tusb_common.h"
|
||||
|
||||
// Return immediately
|
||||
#define OSAL_TIMEOUT_NOTIMEOUT (0)
|
||||
// Default timeout
|
||||
#define OSAL_TIMEOUT_NORMAL (10)
|
||||
// Wait forever
|
||||
#define OSAL_TIMEOUT_WAIT_FOREVER (UINT32_MAX)
|
||||
|
||||
#define OSAL_TIMEOUT_CONTROL_XFER OSAL_TIMEOUT_WAIT_FOREVER
|
||||
|
||||
typedef void (*osal_task_func_t)( void * );
|
||||
|
||||
// Timeout
|
||||
#define OSAL_TIMEOUT_NOTIMEOUT (0) // Return immediately
|
||||
#define OSAL_TIMEOUT_NORMAL (10) // Default timeout
|
||||
#define OSAL_TIMEOUT_WAIT_FOREVER (UINT32_MAX) // Wait forever
|
||||
#define OSAL_TIMEOUT_CONTROL_XFER OSAL_TIMEOUT_WAIT_FOREVER
|
||||
|
||||
// Mutex is required when using a preempted RTOS or MCU has multiple cores
|
||||
#if (CFG_TUSB_OS == OPT_OS_NONE) && !TUP_MCU_MULTIPLE_CORE
|
||||
#define OSAL_MUTEX_REQUIRED 0
|
||||
#define OSAL_MUTEX_DEF(_name)
|
||||
#else
|
||||
#define OSAL_MUTEX_REQUIRED 1
|
||||
#define OSAL_MUTEX_DEF(_name) osal_mutex_def_t _name
|
||||
#endif
|
||||
|
||||
// OS thin implementation
|
||||
#if CFG_TUSB_OS == OPT_OS_NONE
|
||||
#include "osal_none.h"
|
||||
#elif CFG_TUSB_OS == OPT_OS_FREERTOS
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_semaphore_post(osal_semaphore_t se
|
|||
}
|
||||
else
|
||||
{
|
||||
BaseType_t xHigherPriorityTaskWoken;
|
||||
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
|
||||
BaseType_t res = xSemaphoreGiveFromISR(sem_hdl, &xHigherPriorityTaskWoken);
|
||||
|
||||
#if CFG_TUSB_MCU == OPT_MCU_ESP32S2 || CFG_TUSB_MCU == OPT_MCU_ESP32S3
|
||||
|
|
@ -189,7 +189,7 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_queue_send(osal_queue_t qhdl, void
|
|||
}
|
||||
else
|
||||
{
|
||||
BaseType_t xHigherPriorityTaskWoken;
|
||||
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
|
||||
BaseType_t res = xQueueSendToBackFromISR(qhdl, data, &xHigherPriorityTaskWoken);
|
||||
|
||||
#if CFG_TUSB_MCU == OPT_MCU_ESP32S2 || CFG_TUSB_MCU == OPT_MCU_ESP32S3
|
||||
|
|
|
|||
|
|
@ -82,6 +82,10 @@ TU_ATTR_ALWAYS_INLINE static inline void osal_semaphore_reset(osal_semaphore_t s
|
|||
typedef osal_semaphore_def_t osal_mutex_def_t;
|
||||
typedef osal_semaphore_t osal_mutex_t;
|
||||
|
||||
#if OSAL_MUTEX_REQUIRED
|
||||
// Note: multiple cores MCUs usually do provide IPC API for mutex
|
||||
// or we can use std atomic function
|
||||
|
||||
TU_ATTR_ALWAYS_INLINE static inline osal_mutex_t osal_mutex_create(osal_mutex_def_t* mdef)
|
||||
{
|
||||
mdef->count = 1;
|
||||
|
|
@ -98,6 +102,14 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_mutex_unlock(osal_mutex_t mutex_hd
|
|||
return osal_semaphore_post(mutex_hdl, false);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#define osal_mutex_create(_mdef) (NULL)
|
||||
#define osal_mutex_lock(_mutex_hdl, _ms) (true)
|
||||
#define osal_mutex_unlock(_mutex_hdl) (true)
|
||||
|
||||
#endif
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// QUEUE API
|
||||
//--------------------------------------------------------------------+
|
||||
|
|
|
|||
|
|
@ -299,9 +299,6 @@ typedef int make_iso_compilers_happy;
|
|||
#define CFG_TUSB_OS_INC_PATH
|
||||
#endif
|
||||
|
||||
// mutex is only needed for RTOS TODO also required with multiple core MCUs
|
||||
#define TUSB_OPT_MUTEX (CFG_TUSB_OS != OPT_OS_NONE)
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// Device Options (Default)
|
||||
//--------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
|
||||
// Copyright 2018-2022 Espressif Systems (Shanghai) PTE LTD
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
@ -28,9 +28,9 @@ extern "C"
|
|||
/**
|
||||
* @brief Data struct of f32 fir filter
|
||||
*
|
||||
* This structure used by filter internally. User should access this structure only in case of
|
||||
* This structure is used by a filter internally. A user should access this structure only in case of
|
||||
* extensions for the DSP Library.
|
||||
* All fields of this structure initialized by dsps_fir_init_f32(...) function.
|
||||
* All fields of this structure are initialized by the dsps_fir_init_f32(...) function.
|
||||
*/
|
||||
typedef struct fir_f32_s {
|
||||
float *coeffs; /*!< Pointer to the coefficient buffer.*/
|
||||
|
|
@ -41,6 +41,23 @@ typedef struct fir_f32_s {
|
|||
int d_pos; /*!< Actual decimation counter.*/
|
||||
} fir_f32_t;
|
||||
|
||||
/**
|
||||
* @brief Data struct of s16 fir filter
|
||||
*
|
||||
* This structure is used by a filter internally. A user should access this structure only in case of
|
||||
* extensions for the DSP Library.
|
||||
* All fields of this structure are initialized by the dsps_fir_init_s16(...) function.
|
||||
*/
|
||||
typedef struct fir_s16_s{
|
||||
int16_t *coeffs; /*!< Pointer to the coefficient buffer.*/
|
||||
int16_t *delay; /*!< Pointer to the delay line buffer.*/
|
||||
int16_t coeffs_len; /*!< FIR filter coefficients amount.*/
|
||||
int16_t pos; /*!< Position in delay line.*/
|
||||
int16_t decim; /*!< Decimation factor.*/
|
||||
int16_t d_pos; /*!< Actual decimation counter.*/
|
||||
int16_t shift; /*!< shift value of the result.*/
|
||||
}fir_s16_t;
|
||||
|
||||
/**
|
||||
* @brief initialize structure for 32 bit FIR filter
|
||||
*
|
||||
|
|
@ -76,18 +93,37 @@ esp_err_t dsps_fir_init_f32(fir_f32_t *fir, float *coeffs, float *delay, int N);
|
|||
*/
|
||||
esp_err_t dsps_fird_init_f32(fir_f32_t *fir, float *coeffs, float *delay, int N, int decim, int start_pos);
|
||||
|
||||
/**
|
||||
* @brief initialize structure for 16 bit Decimation FIR filter
|
||||
* Function initialize structure for 16 bit signed fixed point FIR filter with decimation
|
||||
* The implementation use ANSI C and could be compiled and run on any platform
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be preallocated
|
||||
* @param coeffs: array with FIR filter coefficients. Must be length N
|
||||
* @param delay: array for FIR filter delay line. Must be length N
|
||||
* @param coeffs_len: FIR filter length. Length of coeffs and delay arrays.
|
||||
* @param decim: decimation factor.
|
||||
* @param start_pos: initial value of decimation counter. Must be [0..d)
|
||||
* @param shift: shift position of the result
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK on success
|
||||
* - One of the error codes from DSP library
|
||||
*/
|
||||
esp_err_t dsps_fird_init_s16(fir_s16_t *fir, int16_t *coeffs, int16_t *delay, int16_t coeffs_len, int16_t decim, int16_t start_pos, int16_t shift);
|
||||
|
||||
|
||||
/**@{*/
|
||||
/**
|
||||
* @brief FIR filter
|
||||
* @brief 32 bit floating point FIR filter
|
||||
*
|
||||
* Function implements FIR filter
|
||||
* The extension (_ansi) use ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ansi) uses ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ae32) is optimized for ESP32 chip.
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be initialized before
|
||||
* @param[in] input: input array
|
||||
* @param[out] output: array with result of FIR filter
|
||||
* @param[out] output: array with the result of FIR filter
|
||||
* @param[in] len: length of input and result arrays
|
||||
*
|
||||
* @return
|
||||
|
|
@ -101,24 +137,43 @@ esp_err_t dsps_fir_f32_aes3(fir_f32_t *fir, const float *input, float *output, i
|
|||
|
||||
/**@{*/
|
||||
/**
|
||||
* @brief Decimation FIR filter
|
||||
* @brief 32 bit floating point Decimation FIR filter
|
||||
*
|
||||
* Function implements FIR filter with decimation
|
||||
* The extension (_ansi) use ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ansi) uses ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ae32) is optimized for ESP32 chip.
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be initialized before
|
||||
* @param input: input array
|
||||
* @param output: array with result of FIR filter
|
||||
* @param output: array with the result of FIR filter
|
||||
* @param len: length of input and result arrays
|
||||
*
|
||||
* @return: function returns amount of samples stored to the output array
|
||||
* @return: function returns the number of samples stored in the output array
|
||||
* depends on the previous state value could be [0..len/decimation]
|
||||
*/
|
||||
int dsps_fird_f32_ansi(fir_f32_t *fir, const float *input, float *output, int len);
|
||||
int dsps_fird_f32_ae32(fir_f32_t *fir, const float *input, float *output, int len);
|
||||
/**@}*/
|
||||
|
||||
/**@{*/
|
||||
/**
|
||||
* @brief 16 bit signed fixed point Decimation FIR filter
|
||||
*
|
||||
* Function implements FIR filter with decimation
|
||||
* The extension (_ansi) uses ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ae32) is optimized for ESP32 chip.
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be initialized before
|
||||
* @param input: input array
|
||||
* @param output: array with the result of the FIR filter
|
||||
* @param len: length of the result array
|
||||
*
|
||||
* @return: function returns the number of samples stored in the output array
|
||||
* depends on the previous state value could be [0..len/decimation]
|
||||
*/
|
||||
int32_t dsps_fird_s16_ansi(fir_s16_t *fir, const int16_t *input, int16_t *output, int32_t len);
|
||||
int32_t dsps_fird_s16_ae32(fir_s16_t *fir, const int16_t *input, int16_t *output, int32_t len);
|
||||
/**@}*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
@ -139,9 +194,16 @@ int dsps_fird_f32_ae32(fir_f32_t *fir, const float *input, float *output, int le
|
|||
#define dsps_fird_f32 dsps_fird_f32_ansi
|
||||
#endif
|
||||
|
||||
#if (dsps_fird_s16_ae32_enabled == 1)
|
||||
#define dsps_fird_s16 dsps_fird_s16_ae32
|
||||
#else
|
||||
#define dsps_fird_s16 dsps_fird_s16_ansi
|
||||
#endif
|
||||
|
||||
#else // CONFIG_DSP_OPTIMIZED
|
||||
#define dsps_fir_f32 dsps_fir_f32_ansi
|
||||
#define dsps_fird_f32 dsps_fird_f32_ansi
|
||||
#define dsps_fird_s16 dsps_fird_s16_ansi
|
||||
#endif // CONFIG_DSP_OPTIMIZED
|
||||
|
||||
#endif // _dsps_fir_H_
|
||||
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#define dsps_fir_f32_ae32_enabled 1
|
||||
#define dsps_fird_f32_ae32_enabled 1
|
||||
#define dsps_fird_s16_ae32_enabled 1
|
||||
#define dsps_fird_s16_ae32_mul_enabled 1
|
||||
|
||||
#endif //
|
||||
#endif // __XTENSA__
|
||||
|
|
|
|||
|
|
@ -128,7 +128,11 @@ typedef struct {
|
|||
} esp_insights_transport_config_t;
|
||||
|
||||
/**
|
||||
* @brief Initialize ESP Insights
|
||||
* @brief Initialize ESP Insights.
|
||||
*
|
||||
* This initializes ESP Insights with the transport (HTTPS/MQTT) as per the sdkconfig.
|
||||
* To override the transport configuration, please use esp_insights_transport_register()
|
||||
* and esp_insights_enable().
|
||||
*
|
||||
* @param[in] config Configuration for ESP Insights.
|
||||
*
|
||||
|
|
@ -137,12 +141,19 @@ typedef struct {
|
|||
esp_err_t esp_insights_init(esp_insights_config_t *config);
|
||||
|
||||
/**
|
||||
* @brief Deinitialize ESP Insights
|
||||
* @brief Deinitialize ESP Insights.
|
||||
*
|
||||
* Disconnects the registered transport and disables ESP Insights
|
||||
*/
|
||||
void esp_insights_deinit(void);
|
||||
|
||||
/**
|
||||
* @brief Register insights transport
|
||||
* @brief Register insights transport.
|
||||
*
|
||||
* This function should be used only when default transport needs to be overridden.
|
||||
*
|
||||
* @note Call esp_insights_enable()
|
||||
* after registering your own transport to enable Insights.
|
||||
*
|
||||
* @param[in] config Configurations of type \ref esp_insights_transport_config_t
|
||||
*
|
||||
|
|
@ -151,12 +162,15 @@ void esp_insights_deinit(void);
|
|||
esp_err_t esp_insights_transport_register(esp_insights_transport_config_t *config);
|
||||
|
||||
/**
|
||||
* @brief Unregister insights transport
|
||||
* @brief Unregister insights transport.
|
||||
*
|
||||
* @note This API does not disable Insights.
|
||||
* Call esp_insights_disable() to turn off Insights.
|
||||
*/
|
||||
void esp_insights_transport_unregister(void);
|
||||
|
||||
/**
|
||||
* @brief Read insights data from buffers and send it to the cloud
|
||||
* @brief Read insights data from buffers and send it to the cloud.
|
||||
*
|
||||
* Call to this function is asynchronous, it may take some time to send the data.
|
||||
*
|
||||
|
|
@ -164,6 +178,33 @@ void esp_insights_transport_unregister(void);
|
|||
*/
|
||||
esp_err_t esp_insights_send_data(void);
|
||||
|
||||
/**
|
||||
* @brief Enable ESP Insights except transport.
|
||||
*
|
||||
* This API is used in conjunction with esp_insights_transport_register()
|
||||
* to start Insights with custom transport.
|
||||
*
|
||||
* @param[in] config Configuration for ESP Insights.
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise
|
||||
*/
|
||||
esp_err_t esp_insights_enable(esp_insights_config_t *config);
|
||||
|
||||
/**
|
||||
* @brief Disable ESP Insights.
|
||||
*
|
||||
* This API does not unregister the transport.
|
||||
*
|
||||
* @note Call esp_insights_transport_unregister() to remove the transport.
|
||||
*/
|
||||
void esp_insights_disable(void);
|
||||
|
||||
/**
|
||||
* @brief Returns pointer to the NULL terminated Node ID string.
|
||||
*
|
||||
* @return Pointer to a NULL terminated Node ID string.
|
||||
*/
|
||||
const char *esp_insights_get_node_id(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -36,6 +36,33 @@ typedef enum {
|
|||
RTC_STORE_EVENT_NON_CRITICAL_DATA_WRITE_FAIL, /*!< Non critical data write failed */
|
||||
} rtc_store_event_t;
|
||||
|
||||
#define SHA_SIZE (CONFIG_APP_RETRIEVE_LEN_ELF_SHA / 2)
|
||||
|
||||
/**
|
||||
* @brief header record to identify firmware/boot data a record represent
|
||||
*/
|
||||
typedef struct {
|
||||
uint8_t gen_id; // generated on each hard reset
|
||||
uint8_t boot_cnt; // updated on each soft reboot
|
||||
char sha_sum[SHA_SIZE]; // elf shasum
|
||||
bool valid; //
|
||||
} rtc_store_meta_header_t;
|
||||
|
||||
/**
|
||||
* @brief get meta header for idx
|
||||
*
|
||||
* @param idx idx of meta from records
|
||||
* @return rtc_store_meta_header_t*
|
||||
*/
|
||||
rtc_store_meta_header_t *rtc_store_get_meta_record_by_index(uint8_t idx);
|
||||
|
||||
/**
|
||||
* @brief get current meta header
|
||||
*
|
||||
* @return rtc_store_meta_header_t*
|
||||
*/
|
||||
rtc_store_meta_header_t *rtc_store_get_meta_record_current();
|
||||
|
||||
/**
|
||||
* @brief Non critical data header
|
||||
*/
|
||||
|
|
@ -57,44 +84,34 @@ esp_err_t rtc_store_critical_data_write(void *data, size_t len);
|
|||
/**
|
||||
* @brief Read critical data from the RTC storage
|
||||
*
|
||||
* @param[out] size Number of bytes read
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes to read
|
||||
*
|
||||
* @return Pointer to the data on success, otherwise NULL
|
||||
*
|
||||
* @note It is mandatory to call \ref rtc_store_critical_data_release_and_unlock() if \ref rtc_store_critical_data_read_and_lock() is successful.
|
||||
* @note Please avoid adding \ref ESP_DIAG_EVENT(), error/warning logs using esp_log module in between rtc_store_critical_data_read_and_lock() and rtc_store_critical_data_release_and_unlock() API calls. It may lead to a deadlock.
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
const void *rtc_store_critical_data_read_and_lock(size_t *size);
|
||||
|
||||
/**
|
||||
* @brief Release the utilized data read using \ref rtc_store_critical_data_read_and_lock()
|
||||
*
|
||||
* This API releases the utilized data read using \ref rtc_store_critical_data_read_and_lock().
|
||||
* Utilization may involve encoding data, sending data to the cloud, post processing or printing on the console, etc.
|
||||
*
|
||||
* @param[in] size Number of bytes to free. If all the data is utilized then pass the size returned by \ref rtc_store_critical_data_read_and_lock() or 0 if no data is utilized (e.g. sending to cloud failed).
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise.
|
||||
*
|
||||
* @note Please avoid adding \ref ESP_DIAG_EVENT(), error/warning logs using esp_log module in between rtc_store_critical_data_read_and_lock() and rtc_store_critical_data_release_and_unlock() API calls. It may lead to a deadlock.
|
||||
*/
|
||||
esp_err_t rtc_store_critical_data_release_and_unlock(size_t size);
|
||||
int rtc_store_critical_data_read(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Release the size bytes critical data from RTC storage
|
||||
*
|
||||
* This API can be used to remove data from buffer when data is sent asynchronously.
|
||||
*
|
||||
* Consider data is read using \ref rtc_store_critical_data_read_and_lock() and sent to cloud asynchronously.
|
||||
* Since status of data send is unknown, call \ref rtc_store_critical_data_release_and_unlock() with zero length.
|
||||
* When acknowledgement for data send is received use this API with appropriate size to remove the data from the buffer.
|
||||
*
|
||||
* @param[in] size Number of bytes to free.
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise.
|
||||
*/
|
||||
esp_err_t rtc_store_critical_data_release(size_t size);
|
||||
|
||||
/**
|
||||
* @brief Read critical data from the RTC storage and release that data
|
||||
*
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes to read
|
||||
*
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
int rtc_store_critical_data_read_and_release(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Write non critical data to the RTC storage
|
||||
*
|
||||
|
|
@ -116,26 +133,12 @@ esp_err_t rtc_store_non_critical_data_write(const char *dg, void *data, size_t l
|
|||
/**
|
||||
* @brief Read non critical data from the RTC storage
|
||||
*
|
||||
* @param[out] size Number of bytes read
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes read
|
||||
*
|
||||
* @return Pointer to the data on success, otherwise NULL
|
||||
*
|
||||
* @note It is mandatory to call \ref rtc_store_non_critical_data_release_and_unlock() if \ref rtc_store_non_critical_data_read_and_lock() is successful.
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
const void *rtc_store_non_critical_data_read_and_lock(size_t *size);
|
||||
|
||||
/**
|
||||
* @brief Release the utilized data read using \ref rtc_store_non_critical_data_read_and_lock()
|
||||
*
|
||||
* This API releases the utilized data read using \ref rtc_store_non_critical_data_read_and_lock().
|
||||
* Utilization may involve encoding data, sending data to the cloud, post processing or printing on the console, etc.
|
||||
*
|
||||
* @param[in] size Number of bytes to free. If all the data is utilized then pass the size returned by \ref rtc_store_non_critical_data_read_and_lock() or 0 if no data is utilized (e.g. sending to cloud failed).
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise.
|
||||
*
|
||||
*/
|
||||
esp_err_t rtc_store_non_critical_data_release_and_unlock(size_t size);
|
||||
int rtc_store_non_critical_data_read(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Release the size bytes non critical data from RTC storage
|
||||
|
|
@ -146,6 +149,16 @@ esp_err_t rtc_store_non_critical_data_release_and_unlock(size_t size);
|
|||
*/
|
||||
esp_err_t rtc_store_non_critical_data_release(size_t size);
|
||||
|
||||
/**
|
||||
* @brief Read non_critical data from the RTC storage and release that data
|
||||
*
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes read
|
||||
*
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
int rtc_store_non_critical_data_read_and_release(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Initializes the RTC storage
|
||||
*
|
||||
|
|
|
|||
|
|
@ -372,8 +372,8 @@ SECTIONS
|
|||
*(.ext_ram.bss*)
|
||||
|
||||
*(.bss .bss.*)
|
||||
*(.dynbss .dynsbss .gnu.linkonce.b .gnu.linkonce.b.* .gnu.linkonce.sb .gnu.linkonce.sb.* .gnu.linkonce.sb2 .gnu.linkonce.sb2.* .sbss .sbss.* .sbss2 .sbss2.* .scommon .share.mem)
|
||||
*(.ext_ram.bss .ext_ram.bss.*)
|
||||
*(.dynbss .dynsbss .gnu.linkonce.b .gnu.linkonce.b.* .gnu.linkonce.sb .gnu.linkonce.sb.* .gnu.linkonce.sb2 .gnu.linkonce.sb2.* .sbss .sbss.* .sbss2 .sbss2.* .scommon .share.mem)
|
||||
*(COMMON)
|
||||
_bt_bss_start = ABSOLUTE(.);
|
||||
*libbt.a:(.bss .bss.* COMMON)
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -48,7 +48,7 @@
|
|||
#define CONFIG_ESPTOOLPY_MONITOR_BAUD 115200
|
||||
#define CONFIG_PARTITION_TABLE_SINGLE_APP 1
|
||||
#define CONFIG_PARTITION_TABLE_CUSTOM_FILENAME "partitions.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp_coredump.csv"
|
||||
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
|
||||
#define CONFIG_PARTITION_TABLE_MD5 1
|
||||
#define CONFIG_LIB_BUILDER_FLASHMODE "qio"
|
||||
|
|
@ -252,7 +252,12 @@
|
|||
#define CONFIG_ESP_WIFI_FTM_INITIATOR_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_FTM_RESPONDER_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_SOFTAP_SUPPORT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_NONE 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH 1
|
||||
#define CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECKSUM_CRC32 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
|
||||
#define CONFIG_FATFS_CODEPAGE_850 1
|
||||
#define CONFIG_FATFS_CODEPAGE 850
|
||||
#define CONFIG_FATFS_LFN_STACK 1
|
||||
|
|
@ -299,7 +304,7 @@
|
|||
#define CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1
|
||||
#define CONFIG_FREERTOS_ASSERT_FAIL_ABORT 1
|
||||
#define CONFIG_FREERTOS_IDLE_TASK_STACKSIZE 1024
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 1536
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 2096
|
||||
#define CONFIG_FREERTOS_MAX_TASK_NAME_LEN 16
|
||||
#define CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION 1
|
||||
#define CONFIG_FREERTOS_TIMER_TASK_PRIORITY 1
|
||||
|
|
@ -534,6 +539,8 @@
|
|||
#define CONFIG_DIAG_ENABLE_VARIABLES 1
|
||||
#define CONFIG_DIAG_VARIABLES_MAX_COUNT 20
|
||||
#define CONFIG_DIAG_ENABLE_NETWORK_VARIABLES 1
|
||||
#define CONFIG_ESP_INSIGHTS_ENABLED 1
|
||||
#define CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST "https://client.insights.espressif.com"
|
||||
#define CONFIG_ESP_INSIGHTS_CLOUD_POST_MIN_INTERVAL_SEC 60
|
||||
|
|
@ -591,7 +598,10 @@
|
|||
#define CONFIG_ESP32S2_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_ALLOW_RTC_FAST_MEM_AS_HEAP CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
|
||||
#define CONFIG_ESP32_APPTRACE_DEST_NONE CONFIG_APPTRACE_DEST_NONE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
|
||||
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
|
||||
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
|
||||
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
|
||||
#define CONFIG_ESP32_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||
#define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
#define CONFIG_ESPTOOLPY_MONITOR_BAUD 115200
|
||||
#define CONFIG_PARTITION_TABLE_SINGLE_APP 1
|
||||
#define CONFIG_PARTITION_TABLE_CUSTOM_FILENAME "partitions.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp_coredump.csv"
|
||||
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
|
||||
#define CONFIG_PARTITION_TABLE_MD5 1
|
||||
#define CONFIG_LIB_BUILDER_FLASHMODE "qout"
|
||||
|
|
@ -252,7 +252,12 @@
|
|||
#define CONFIG_ESP_WIFI_FTM_INITIATOR_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_FTM_RESPONDER_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_SOFTAP_SUPPORT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_NONE 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH 1
|
||||
#define CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECKSUM_CRC32 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
|
||||
#define CONFIG_FATFS_CODEPAGE_850 1
|
||||
#define CONFIG_FATFS_CODEPAGE 850
|
||||
#define CONFIG_FATFS_LFN_STACK 1
|
||||
|
|
@ -299,7 +304,7 @@
|
|||
#define CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1
|
||||
#define CONFIG_FREERTOS_ASSERT_FAIL_ABORT 1
|
||||
#define CONFIG_FREERTOS_IDLE_TASK_STACKSIZE 1024
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 1536
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 2096
|
||||
#define CONFIG_FREERTOS_MAX_TASK_NAME_LEN 16
|
||||
#define CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION 1
|
||||
#define CONFIG_FREERTOS_TIMER_TASK_PRIORITY 1
|
||||
|
|
@ -534,6 +539,8 @@
|
|||
#define CONFIG_DIAG_ENABLE_VARIABLES 1
|
||||
#define CONFIG_DIAG_VARIABLES_MAX_COUNT 20
|
||||
#define CONFIG_DIAG_ENABLE_NETWORK_VARIABLES 1
|
||||
#define CONFIG_ESP_INSIGHTS_ENABLED 1
|
||||
#define CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST "https://client.insights.espressif.com"
|
||||
#define CONFIG_ESP_INSIGHTS_CLOUD_POST_MIN_INTERVAL_SEC 60
|
||||
|
|
@ -591,7 +598,10 @@
|
|||
#define CONFIG_ESP32S2_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_ALLOW_RTC_FAST_MEM_AS_HEAP CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
|
||||
#define CONFIG_ESP32_APPTRACE_DEST_NONE CONFIG_APPTRACE_DEST_NONE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
|
||||
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
|
||||
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
|
||||
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
|
||||
#define CONFIG_ESP32_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||
#define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ CONFIG_PARTITION_TABLE_SINGLE_APP=y
|
|||
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
|
||||
# CONFIG_PARTITION_TABLE_CUSTOM is not set
|
||||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
||||
CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp.csv"
|
||||
CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp_coredump.csv"
|
||||
CONFIG_PARTITION_TABLE_OFFSET=0x8000
|
||||
CONFIG_PARTITION_TABLE_MD5=y
|
||||
# end of Partition Table
|
||||
|
|
@ -776,9 +776,15 @@ CONFIG_ESP_WIFI_SOFTAP_SUPPORT=y
|
|||
#
|
||||
# Core dump
|
||||
#
|
||||
# CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH is not set
|
||||
CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=y
|
||||
# CONFIG_ESP_COREDUMP_ENABLE_TO_UART is not set
|
||||
CONFIG_ESP_COREDUMP_ENABLE_TO_NONE=y
|
||||
# CONFIG_ESP_COREDUMP_ENABLE_TO_NONE is not set
|
||||
# CONFIG_ESP_COREDUMP_DATA_FORMAT_BIN is not set
|
||||
CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF=y
|
||||
CONFIG_ESP_COREDUMP_CHECKSUM_CRC32=y
|
||||
CONFIG_ESP_COREDUMP_CHECK_BOOT=y
|
||||
CONFIG_ESP_COREDUMP_ENABLE=y
|
||||
CONFIG_ESP_COREDUMP_MAX_TASKS_NUM=64
|
||||
# end of Core dump
|
||||
|
||||
#
|
||||
|
|
@ -874,7 +880,7 @@ CONFIG_FREERTOS_ASSERT_FAIL_ABORT=y
|
|||
# CONFIG_FREERTOS_ASSERT_FAIL_PRINT_CONTINUE is not set
|
||||
# CONFIG_FREERTOS_ASSERT_DISABLE is not set
|
||||
CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=1024
|
||||
CONFIG_FREERTOS_ISR_STACKSIZE=1536
|
||||
CONFIG_FREERTOS_ISR_STACKSIZE=2096
|
||||
# CONFIG_FREERTOS_LEGACY_HOOKS is not set
|
||||
CONFIG_FREERTOS_MAX_TASK_NAME_LEN=16
|
||||
CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION=y
|
||||
|
|
@ -1515,12 +1521,15 @@ CONFIG_DIAG_ENABLE_WIFI_METRICS=y
|
|||
CONFIG_DIAG_ENABLE_VARIABLES=y
|
||||
CONFIG_DIAG_VARIABLES_MAX_COUNT=20
|
||||
CONFIG_DIAG_ENABLE_NETWORK_VARIABLES=y
|
||||
# CONFIG_DIAG_MORE_NETWORK_VARS is not set
|
||||
# end of Diagnostics
|
||||
|
||||
#
|
||||
# ESP Insights
|
||||
#
|
||||
# CONFIG_ESP_INSIGHTS_ENABLED is not set
|
||||
CONFIG_ESP_INSIGHTS_ENABLED=y
|
||||
# CONFIG_ESP_INSIGHTS_DEBUG_ENABLED is not set
|
||||
CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE=y
|
||||
# CONFIG_ESP_INSIGHTS_TRANSPORT_MQTT is not set
|
||||
CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS=y
|
||||
CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST="https://client.insights.espressif.com"
|
||||
|
|
@ -1695,9 +1704,14 @@ CONFIG_TASK_WDT_TIMEOUT_S=5
|
|||
# CONFIG_ESP32_DEBUG_STUBS_ENABLE is not set
|
||||
CONFIG_TIMER_TASK_STACK_SIZE=4096
|
||||
# CONFIG_EXTERNAL_COEX_ENABLE is not set
|
||||
# CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH is not set
|
||||
CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH=y
|
||||
# CONFIG_ESP32_ENABLE_COREDUMP_TO_UART is not set
|
||||
CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE=y
|
||||
# CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE is not set
|
||||
# CONFIG_ESP32_COREDUMP_DATA_FORMAT_BIN is not set
|
||||
CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF=y
|
||||
CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32=y
|
||||
CONFIG_ESP32_ENABLE_COREDUMP=y
|
||||
CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM=64
|
||||
CONFIG_MB_MASTER_TIMEOUT_MS_RESPOND=150
|
||||
CONFIG_MB_MASTER_DELAY_MS_CONVERT=200
|
||||
CONFIG_MB_QUEUE_LENGTH=20
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
#define CONFIG_ESPTOOLPY_MONITOR_BAUD 115200
|
||||
#define CONFIG_PARTITION_TABLE_SINGLE_APP 1
|
||||
#define CONFIG_PARTITION_TABLE_CUSTOM_FILENAME "partitions.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp_coredump.csv"
|
||||
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
|
||||
#define CONFIG_PARTITION_TABLE_MD5 1
|
||||
#define CONFIG_LIB_BUILDER_FLASHMODE "dio"
|
||||
|
|
@ -804,7 +804,12 @@
|
|||
#define CONFIG_ESP_WIFI_FTM_INITIATOR_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_FTM_RESPONDER_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_SOFTAP_SUPPORT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_NONE 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH 1
|
||||
#define CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECKSUM_CRC32 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
|
||||
#define CONFIG_FATFS_CODEPAGE_850 1
|
||||
#define CONFIG_FATFS_CODEPAGE 850
|
||||
#define CONFIG_FATFS_LFN_STACK 1
|
||||
|
|
@ -850,7 +855,7 @@
|
|||
#define CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1
|
||||
#define CONFIG_FREERTOS_ASSERT_FAIL_ABORT 1
|
||||
#define CONFIG_FREERTOS_IDLE_TASK_STACKSIZE 1024
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 1536
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 2096
|
||||
#define CONFIG_FREERTOS_MAX_TASK_NAME_LEN 16
|
||||
#define CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION 1
|
||||
#define CONFIG_FREERTOS_TIMER_TASK_PRIORITY 1
|
||||
|
|
@ -1087,6 +1092,8 @@
|
|||
#define CONFIG_DIAG_ENABLE_VARIABLES 1
|
||||
#define CONFIG_DIAG_VARIABLES_MAX_COUNT 20
|
||||
#define CONFIG_DIAG_ENABLE_NETWORK_VARIABLES 1
|
||||
#define CONFIG_ESP_INSIGHTS_ENABLED 1
|
||||
#define CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST "https://client.insights.espressif.com"
|
||||
#define CONFIG_ESP_INSIGHTS_CLOUD_POST_MIN_INTERVAL_SEC 60
|
||||
|
|
@ -1154,8 +1161,11 @@
|
|||
#define CONFIG_ESP32S2_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_ALLOW_RTC_FAST_MEM_AS_HEAP CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
|
||||
#define CONFIG_ESP32_APPTRACE_DEST_NONE CONFIG_APPTRACE_DEST_NONE
|
||||
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
|
||||
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
|
||||
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
|
||||
#define CONFIG_ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY CONFIG_PTHREAD_DEFAULT_CORE_NO_AFFINITY
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
|
||||
#define CONFIG_ESP32_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||
#define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -361,8 +361,8 @@ SECTIONS
|
|||
*(.ext_ram.bss*)
|
||||
|
||||
*(.bss .bss.*)
|
||||
*(.ext_ram.bss .ext_ram.bss.*)
|
||||
*(.dynbss .dynsbss .gnu.linkonce.b .gnu.linkonce.b.* .gnu.linkonce.sb .gnu.linkonce.sb.* .gnu.linkonce.sb2 .gnu.linkonce.sb2.* .sbss .sbss.* .sbss2 .sbss2.* .scommon .share.mem)
|
||||
*(.ext_ram.bss .ext_ram.bss.*)
|
||||
*(COMMON)
|
||||
_bt_bss_start = ABSOLUTE(.);
|
||||
*libbt.a:(.bss .bss.* COMMON)
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
#define CONFIG_ESPTOOLPY_MONITOR_BAUD 115200
|
||||
#define CONFIG_PARTITION_TABLE_SINGLE_APP 1
|
||||
#define CONFIG_PARTITION_TABLE_CUSTOM_FILENAME "partitions.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp_coredump.csv"
|
||||
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
|
||||
#define CONFIG_PARTITION_TABLE_MD5 1
|
||||
#define CONFIG_LIB_BUILDER_FLASHMODE "dio"
|
||||
|
|
@ -802,7 +802,12 @@
|
|||
#define CONFIG_ESP_WIFI_FTM_INITIATOR_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_FTM_RESPONDER_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_SOFTAP_SUPPORT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_NONE 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH 1
|
||||
#define CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECKSUM_CRC32 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
|
||||
#define CONFIG_FATFS_CODEPAGE_850 1
|
||||
#define CONFIG_FATFS_CODEPAGE 850
|
||||
#define CONFIG_FATFS_LFN_STACK 1
|
||||
|
|
@ -848,7 +853,7 @@
|
|||
#define CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1
|
||||
#define CONFIG_FREERTOS_ASSERT_FAIL_ABORT 1
|
||||
#define CONFIG_FREERTOS_IDLE_TASK_STACKSIZE 1024
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 1536
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 2096
|
||||
#define CONFIG_FREERTOS_MAX_TASK_NAME_LEN 16
|
||||
#define CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION 1
|
||||
#define CONFIG_FREERTOS_TIMER_TASK_PRIORITY 1
|
||||
|
|
@ -1085,6 +1090,8 @@
|
|||
#define CONFIG_DIAG_ENABLE_VARIABLES 1
|
||||
#define CONFIG_DIAG_VARIABLES_MAX_COUNT 20
|
||||
#define CONFIG_DIAG_ENABLE_NETWORK_VARIABLES 1
|
||||
#define CONFIG_ESP_INSIGHTS_ENABLED 1
|
||||
#define CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST "https://client.insights.espressif.com"
|
||||
#define CONFIG_ESP_INSIGHTS_CLOUD_POST_MIN_INTERVAL_SEC 60
|
||||
|
|
@ -1152,8 +1159,11 @@
|
|||
#define CONFIG_ESP32S2_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_ALLOW_RTC_FAST_MEM_AS_HEAP CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
|
||||
#define CONFIG_ESP32_APPTRACE_DEST_NONE CONFIG_APPTRACE_DEST_NONE
|
||||
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
|
||||
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
|
||||
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
|
||||
#define CONFIG_ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY CONFIG_PTHREAD_DEFAULT_CORE_NO_AFFINITY
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
|
||||
#define CONFIG_ESP32_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||
#define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
|
|
@ -42,15 +42,13 @@ extern "C" {
|
|||
// within a certain number (see tu_fifo_overflow()).
|
||||
|
||||
#include "common/tusb_common.h"
|
||||
#include "osal/osal.h"
|
||||
|
||||
#define tu_fifo_mutex_t osal_mutex_t
|
||||
|
||||
// mutex is only needed for RTOS
|
||||
// for OS None, we don't get preempted
|
||||
#define CFG_FIFO_MUTEX (CFG_TUSB_OS != OPT_OS_NONE)
|
||||
|
||||
#if CFG_FIFO_MUTEX
|
||||
#include "osal/osal.h"
|
||||
#define tu_fifo_mutex_t osal_mutex_t
|
||||
#endif
|
||||
#define CFG_FIFO_MUTEX OSAL_MUTEX_REQUIRED
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
@ -65,7 +63,7 @@ typedef struct
|
|||
volatile uint16_t wr_idx ; ///< write pointer
|
||||
volatile uint16_t rd_idx ; ///< read pointer
|
||||
|
||||
#if CFG_FIFO_MUTEX
|
||||
#if OSAL_MUTEX_REQUIRED
|
||||
tu_fifo_mutex_t mutex_wr;
|
||||
tu_fifo_mutex_t mutex_rd;
|
||||
#endif
|
||||
|
|
@ -99,13 +97,18 @@ bool tu_fifo_set_overwritable(tu_fifo_t *f, bool overwritable);
|
|||
bool tu_fifo_clear(tu_fifo_t *f);
|
||||
bool tu_fifo_config(tu_fifo_t *f, void* buffer, uint16_t depth, uint16_t item_size, bool overwritable);
|
||||
|
||||
#if CFG_FIFO_MUTEX
|
||||
#if OSAL_MUTEX_REQUIRED
|
||||
TU_ATTR_ALWAYS_INLINE static inline
|
||||
void tu_fifo_config_mutex(tu_fifo_t *f, tu_fifo_mutex_t write_mutex_hdl, tu_fifo_mutex_t read_mutex_hdl)
|
||||
{
|
||||
f->mutex_wr = write_mutex_hdl;
|
||||
f->mutex_rd = read_mutex_hdl;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#define tu_fifo_config_mutex(_f, _wr_mutex, _rd_mutex)
|
||||
|
||||
#endif
|
||||
|
||||
bool tu_fifo_write (tu_fifo_t* f, void const * p_data);
|
||||
|
|
|
|||
|
|
@ -281,6 +281,10 @@
|
|||
// Default Values
|
||||
//--------------------------------------------------------------------+
|
||||
|
||||
#ifndef TUP_MCU_MULTIPLE_CORE
|
||||
#define TUP_MCU_MULTIPLE_CORE 0
|
||||
#endif
|
||||
|
||||
#ifndef TUP_DCD_ENDPOINT_MAX
|
||||
#warning "TUP_DCD_ENDPOINT_MAX is not defined for this MCU, default to 8"
|
||||
#define TUP_DCD_ENDPOINT_MAX 8
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb
|
|||
/* MIDI Streaming (MS) Interface */\
|
||||
9, TUSB_DESC_INTERFACE, (uint8_t)((_itfnum) + 1), 0, 2, TUSB_CLASS_AUDIO, AUDIO_SUBCLASS_MIDI_STREAMING, AUDIO_FUNC_PROTOCOL_CODE_UNDEF, 0,\
|
||||
/* MS Header */\
|
||||
7, TUSB_DESC_CS_INTERFACE, MIDI_CS_INTERFACE_HEADER, U16_TO_U8S_LE(0x0100), U16_TO_U8S_LE(7 + (_numcables) * TUD_MIDI_DESC_JACK_LEN)
|
||||
7, TUSB_DESC_CS_INTERFACE, MIDI_CS_INTERFACE_HEADER, U16_TO_U8S_LE(0x0100), U16_TO_U8S_LE(7 + (_numcables) * TUD_MIDI_DESC_JACK_LEN + 2 * TUD_MIDI_DESC_EP_LEN(_numcables))
|
||||
|
||||
#define TUD_MIDI_JACKID_IN_EMB(_cablenum) \
|
||||
(uint8_t)(((_cablenum) - 1) * 4 + 1)
|
||||
|
|
@ -317,6 +317,7 @@ TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb
|
|||
9, TUSB_DESC_CS_INTERFACE, MIDI_CS_INTERFACE_OUT_JACK, MIDI_JACK_EMBEDDED, TUD_MIDI_JACKID_OUT_EMB(_cablenum), 1, TUD_MIDI_JACKID_IN_EXT(_cablenum), 1, _stridx,\
|
||||
/* MS Out Jack (External), connected to In Jack Embedded */\
|
||||
9, TUSB_DESC_CS_INTERFACE, MIDI_CS_INTERFACE_OUT_JACK, MIDI_JACK_EXTERNAL, TUD_MIDI_JACKID_OUT_EXT(_cablenum), 1, TUD_MIDI_JACKID_IN_EMB(_cablenum), 1, _stridx
|
||||
|
||||
#define TUD_MIDI_DESC_JACK(_cablenum) TUD_MIDI_DESC_JACK_DESC(_cablenum, 0)
|
||||
|
||||
#define TUD_MIDI_DESC_EP_LEN(_numcables) (9 + 4 + (_numcables))
|
||||
|
|
|
|||
|
|
@ -33,17 +33,24 @@
|
|||
|
||||
#include "common/tusb_common.h"
|
||||
|
||||
// Return immediately
|
||||
#define OSAL_TIMEOUT_NOTIMEOUT (0)
|
||||
// Default timeout
|
||||
#define OSAL_TIMEOUT_NORMAL (10)
|
||||
// Wait forever
|
||||
#define OSAL_TIMEOUT_WAIT_FOREVER (UINT32_MAX)
|
||||
|
||||
#define OSAL_TIMEOUT_CONTROL_XFER OSAL_TIMEOUT_WAIT_FOREVER
|
||||
|
||||
typedef void (*osal_task_func_t)( void * );
|
||||
|
||||
// Timeout
|
||||
#define OSAL_TIMEOUT_NOTIMEOUT (0) // Return immediately
|
||||
#define OSAL_TIMEOUT_NORMAL (10) // Default timeout
|
||||
#define OSAL_TIMEOUT_WAIT_FOREVER (UINT32_MAX) // Wait forever
|
||||
#define OSAL_TIMEOUT_CONTROL_XFER OSAL_TIMEOUT_WAIT_FOREVER
|
||||
|
||||
// Mutex is required when using a preempted RTOS or MCU has multiple cores
|
||||
#if (CFG_TUSB_OS == OPT_OS_NONE) && !TUP_MCU_MULTIPLE_CORE
|
||||
#define OSAL_MUTEX_REQUIRED 0
|
||||
#define OSAL_MUTEX_DEF(_name)
|
||||
#else
|
||||
#define OSAL_MUTEX_REQUIRED 1
|
||||
#define OSAL_MUTEX_DEF(_name) osal_mutex_def_t _name
|
||||
#endif
|
||||
|
||||
// OS thin implementation
|
||||
#if CFG_TUSB_OS == OPT_OS_NONE
|
||||
#include "osal_none.h"
|
||||
#elif CFG_TUSB_OS == OPT_OS_FREERTOS
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_semaphore_post(osal_semaphore_t se
|
|||
}
|
||||
else
|
||||
{
|
||||
BaseType_t xHigherPriorityTaskWoken;
|
||||
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
|
||||
BaseType_t res = xSemaphoreGiveFromISR(sem_hdl, &xHigherPriorityTaskWoken);
|
||||
|
||||
#if CFG_TUSB_MCU == OPT_MCU_ESP32S2 || CFG_TUSB_MCU == OPT_MCU_ESP32S3
|
||||
|
|
@ -189,7 +189,7 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_queue_send(osal_queue_t qhdl, void
|
|||
}
|
||||
else
|
||||
{
|
||||
BaseType_t xHigherPriorityTaskWoken;
|
||||
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
|
||||
BaseType_t res = xQueueSendToBackFromISR(qhdl, data, &xHigherPriorityTaskWoken);
|
||||
|
||||
#if CFG_TUSB_MCU == OPT_MCU_ESP32S2 || CFG_TUSB_MCU == OPT_MCU_ESP32S3
|
||||
|
|
|
|||
|
|
@ -82,6 +82,10 @@ TU_ATTR_ALWAYS_INLINE static inline void osal_semaphore_reset(osal_semaphore_t s
|
|||
typedef osal_semaphore_def_t osal_mutex_def_t;
|
||||
typedef osal_semaphore_t osal_mutex_t;
|
||||
|
||||
#if OSAL_MUTEX_REQUIRED
|
||||
// Note: multiple cores MCUs usually do provide IPC API for mutex
|
||||
// or we can use std atomic function
|
||||
|
||||
TU_ATTR_ALWAYS_INLINE static inline osal_mutex_t osal_mutex_create(osal_mutex_def_t* mdef)
|
||||
{
|
||||
mdef->count = 1;
|
||||
|
|
@ -98,6 +102,14 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_mutex_unlock(osal_mutex_t mutex_hd
|
|||
return osal_semaphore_post(mutex_hdl, false);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#define osal_mutex_create(_mdef) (NULL)
|
||||
#define osal_mutex_lock(_mutex_hdl, _ms) (true)
|
||||
#define osal_mutex_unlock(_mutex_hdl) (true)
|
||||
|
||||
#endif
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// QUEUE API
|
||||
//--------------------------------------------------------------------+
|
||||
|
|
|
|||
|
|
@ -299,9 +299,6 @@ typedef int make_iso_compilers_happy;
|
|||
#define CFG_TUSB_OS_INC_PATH
|
||||
#endif
|
||||
|
||||
// mutex is only needed for RTOS TODO also required with multiple core MCUs
|
||||
#define TUSB_OPT_MUTEX (CFG_TUSB_OS != OPT_OS_NONE)
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// Device Options (Default)
|
||||
//--------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD
|
||||
// Copyright 2018-2022 Espressif Systems (Shanghai) PTE LTD
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
|
@ -28,9 +28,9 @@ extern "C"
|
|||
/**
|
||||
* @brief Data struct of f32 fir filter
|
||||
*
|
||||
* This structure used by filter internally. User should access this structure only in case of
|
||||
* This structure is used by a filter internally. A user should access this structure only in case of
|
||||
* extensions for the DSP Library.
|
||||
* All fields of this structure initialized by dsps_fir_init_f32(...) function.
|
||||
* All fields of this structure are initialized by the dsps_fir_init_f32(...) function.
|
||||
*/
|
||||
typedef struct fir_f32_s {
|
||||
float *coeffs; /*!< Pointer to the coefficient buffer.*/
|
||||
|
|
@ -41,6 +41,23 @@ typedef struct fir_f32_s {
|
|||
int d_pos; /*!< Actual decimation counter.*/
|
||||
} fir_f32_t;
|
||||
|
||||
/**
|
||||
* @brief Data struct of s16 fir filter
|
||||
*
|
||||
* This structure is used by a filter internally. A user should access this structure only in case of
|
||||
* extensions for the DSP Library.
|
||||
* All fields of this structure are initialized by the dsps_fir_init_s16(...) function.
|
||||
*/
|
||||
typedef struct fir_s16_s{
|
||||
int16_t *coeffs; /*!< Pointer to the coefficient buffer.*/
|
||||
int16_t *delay; /*!< Pointer to the delay line buffer.*/
|
||||
int16_t coeffs_len; /*!< FIR filter coefficients amount.*/
|
||||
int16_t pos; /*!< Position in delay line.*/
|
||||
int16_t decim; /*!< Decimation factor.*/
|
||||
int16_t d_pos; /*!< Actual decimation counter.*/
|
||||
int16_t shift; /*!< shift value of the result.*/
|
||||
}fir_s16_t;
|
||||
|
||||
/**
|
||||
* @brief initialize structure for 32 bit FIR filter
|
||||
*
|
||||
|
|
@ -76,18 +93,37 @@ esp_err_t dsps_fir_init_f32(fir_f32_t *fir, float *coeffs, float *delay, int N);
|
|||
*/
|
||||
esp_err_t dsps_fird_init_f32(fir_f32_t *fir, float *coeffs, float *delay, int N, int decim, int start_pos);
|
||||
|
||||
/**
|
||||
* @brief initialize structure for 16 bit Decimation FIR filter
|
||||
* Function initialize structure for 16 bit signed fixed point FIR filter with decimation
|
||||
* The implementation use ANSI C and could be compiled and run on any platform
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be preallocated
|
||||
* @param coeffs: array with FIR filter coefficients. Must be length N
|
||||
* @param delay: array for FIR filter delay line. Must be length N
|
||||
* @param coeffs_len: FIR filter length. Length of coeffs and delay arrays.
|
||||
* @param decim: decimation factor.
|
||||
* @param start_pos: initial value of decimation counter. Must be [0..d)
|
||||
* @param shift: shift position of the result
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK on success
|
||||
* - One of the error codes from DSP library
|
||||
*/
|
||||
esp_err_t dsps_fird_init_s16(fir_s16_t *fir, int16_t *coeffs, int16_t *delay, int16_t coeffs_len, int16_t decim, int16_t start_pos, int16_t shift);
|
||||
|
||||
|
||||
/**@{*/
|
||||
/**
|
||||
* @brief FIR filter
|
||||
* @brief 32 bit floating point FIR filter
|
||||
*
|
||||
* Function implements FIR filter
|
||||
* The extension (_ansi) use ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ansi) uses ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ae32) is optimized for ESP32 chip.
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be initialized before
|
||||
* @param[in] input: input array
|
||||
* @param[out] output: array with result of FIR filter
|
||||
* @param[out] output: array with the result of FIR filter
|
||||
* @param[in] len: length of input and result arrays
|
||||
*
|
||||
* @return
|
||||
|
|
@ -101,24 +137,43 @@ esp_err_t dsps_fir_f32_aes3(fir_f32_t *fir, const float *input, float *output, i
|
|||
|
||||
/**@{*/
|
||||
/**
|
||||
* @brief Decimation FIR filter
|
||||
* @brief 32 bit floating point Decimation FIR filter
|
||||
*
|
||||
* Function implements FIR filter with decimation
|
||||
* The extension (_ansi) use ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ansi) uses ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ae32) is optimized for ESP32 chip.
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be initialized before
|
||||
* @param input: input array
|
||||
* @param output: array with result of FIR filter
|
||||
* @param output: array with the result of FIR filter
|
||||
* @param len: length of input and result arrays
|
||||
*
|
||||
* @return: function returns amount of samples stored to the output array
|
||||
* @return: function returns the number of samples stored in the output array
|
||||
* depends on the previous state value could be [0..len/decimation]
|
||||
*/
|
||||
int dsps_fird_f32_ansi(fir_f32_t *fir, const float *input, float *output, int len);
|
||||
int dsps_fird_f32_ae32(fir_f32_t *fir, const float *input, float *output, int len);
|
||||
/**@}*/
|
||||
|
||||
/**@{*/
|
||||
/**
|
||||
* @brief 16 bit signed fixed point Decimation FIR filter
|
||||
*
|
||||
* Function implements FIR filter with decimation
|
||||
* The extension (_ansi) uses ANSI C and could be compiled and run on any platform.
|
||||
* The extension (_ae32) is optimized for ESP32 chip.
|
||||
*
|
||||
* @param fir: pointer to fir filter structure, that must be initialized before
|
||||
* @param input: input array
|
||||
* @param output: array with the result of the FIR filter
|
||||
* @param len: length of the result array
|
||||
*
|
||||
* @return: function returns the number of samples stored in the output array
|
||||
* depends on the previous state value could be [0..len/decimation]
|
||||
*/
|
||||
int32_t dsps_fird_s16_ansi(fir_s16_t *fir, const int16_t *input, int16_t *output, int32_t len);
|
||||
int32_t dsps_fird_s16_ae32(fir_s16_t *fir, const int16_t *input, int16_t *output, int32_t len);
|
||||
/**@}*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
@ -139,9 +194,16 @@ int dsps_fird_f32_ae32(fir_f32_t *fir, const float *input, float *output, int le
|
|||
#define dsps_fird_f32 dsps_fird_f32_ansi
|
||||
#endif
|
||||
|
||||
#if (dsps_fird_s16_ae32_enabled == 1)
|
||||
#define dsps_fird_s16 dsps_fird_s16_ae32
|
||||
#else
|
||||
#define dsps_fird_s16 dsps_fird_s16_ansi
|
||||
#endif
|
||||
|
||||
#else // CONFIG_DSP_OPTIMIZED
|
||||
#define dsps_fir_f32 dsps_fir_f32_ansi
|
||||
#define dsps_fird_f32 dsps_fird_f32_ansi
|
||||
#define dsps_fird_s16 dsps_fird_s16_ansi
|
||||
#endif // CONFIG_DSP_OPTIMIZED
|
||||
|
||||
#endif // _dsps_fir_H_
|
||||
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#define dsps_fir_f32_ae32_enabled 1
|
||||
#define dsps_fird_f32_ae32_enabled 1
|
||||
#define dsps_fird_s16_ae32_enabled 1
|
||||
#define dsps_fird_s16_ae32_mul_enabled 1
|
||||
|
||||
#endif //
|
||||
#endif // __XTENSA__
|
||||
|
|
|
|||
|
|
@ -128,7 +128,11 @@ typedef struct {
|
|||
} esp_insights_transport_config_t;
|
||||
|
||||
/**
|
||||
* @brief Initialize ESP Insights
|
||||
* @brief Initialize ESP Insights.
|
||||
*
|
||||
* This initializes ESP Insights with the transport (HTTPS/MQTT) as per the sdkconfig.
|
||||
* To override the transport configuration, please use esp_insights_transport_register()
|
||||
* and esp_insights_enable().
|
||||
*
|
||||
* @param[in] config Configuration for ESP Insights.
|
||||
*
|
||||
|
|
@ -137,12 +141,19 @@ typedef struct {
|
|||
esp_err_t esp_insights_init(esp_insights_config_t *config);
|
||||
|
||||
/**
|
||||
* @brief Deinitialize ESP Insights
|
||||
* @brief Deinitialize ESP Insights.
|
||||
*
|
||||
* Disconnects the registered transport and disables ESP Insights
|
||||
*/
|
||||
void esp_insights_deinit(void);
|
||||
|
||||
/**
|
||||
* @brief Register insights transport
|
||||
* @brief Register insights transport.
|
||||
*
|
||||
* This function should be used only when default transport needs to be overridden.
|
||||
*
|
||||
* @note Call esp_insights_enable()
|
||||
* after registering your own transport to enable Insights.
|
||||
*
|
||||
* @param[in] config Configurations of type \ref esp_insights_transport_config_t
|
||||
*
|
||||
|
|
@ -151,12 +162,15 @@ void esp_insights_deinit(void);
|
|||
esp_err_t esp_insights_transport_register(esp_insights_transport_config_t *config);
|
||||
|
||||
/**
|
||||
* @brief Unregister insights transport
|
||||
* @brief Unregister insights transport.
|
||||
*
|
||||
* @note This API does not disable Insights.
|
||||
* Call esp_insights_disable() to turn off Insights.
|
||||
*/
|
||||
void esp_insights_transport_unregister(void);
|
||||
|
||||
/**
|
||||
* @brief Read insights data from buffers and send it to the cloud
|
||||
* @brief Read insights data from buffers and send it to the cloud.
|
||||
*
|
||||
* Call to this function is asynchronous, it may take some time to send the data.
|
||||
*
|
||||
|
|
@ -164,6 +178,33 @@ void esp_insights_transport_unregister(void);
|
|||
*/
|
||||
esp_err_t esp_insights_send_data(void);
|
||||
|
||||
/**
|
||||
* @brief Enable ESP Insights except transport.
|
||||
*
|
||||
* This API is used in conjunction with esp_insights_transport_register()
|
||||
* to start Insights with custom transport.
|
||||
*
|
||||
* @param[in] config Configuration for ESP Insights.
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise
|
||||
*/
|
||||
esp_err_t esp_insights_enable(esp_insights_config_t *config);
|
||||
|
||||
/**
|
||||
* @brief Disable ESP Insights.
|
||||
*
|
||||
* This API does not unregister the transport.
|
||||
*
|
||||
* @note Call esp_insights_transport_unregister() to remove the transport.
|
||||
*/
|
||||
void esp_insights_disable(void);
|
||||
|
||||
/**
|
||||
* @brief Returns pointer to the NULL terminated Node ID string.
|
||||
*
|
||||
* @return Pointer to a NULL terminated Node ID string.
|
||||
*/
|
||||
const char *esp_insights_get_node_id(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -36,6 +36,33 @@ typedef enum {
|
|||
RTC_STORE_EVENT_NON_CRITICAL_DATA_WRITE_FAIL, /*!< Non critical data write failed */
|
||||
} rtc_store_event_t;
|
||||
|
||||
#define SHA_SIZE (CONFIG_APP_RETRIEVE_LEN_ELF_SHA / 2)
|
||||
|
||||
/**
|
||||
* @brief header record to identify firmware/boot data a record represent
|
||||
*/
|
||||
typedef struct {
|
||||
uint8_t gen_id; // generated on each hard reset
|
||||
uint8_t boot_cnt; // updated on each soft reboot
|
||||
char sha_sum[SHA_SIZE]; // elf shasum
|
||||
bool valid; //
|
||||
} rtc_store_meta_header_t;
|
||||
|
||||
/**
|
||||
* @brief get meta header for idx
|
||||
*
|
||||
* @param idx idx of meta from records
|
||||
* @return rtc_store_meta_header_t*
|
||||
*/
|
||||
rtc_store_meta_header_t *rtc_store_get_meta_record_by_index(uint8_t idx);
|
||||
|
||||
/**
|
||||
* @brief get current meta header
|
||||
*
|
||||
* @return rtc_store_meta_header_t*
|
||||
*/
|
||||
rtc_store_meta_header_t *rtc_store_get_meta_record_current();
|
||||
|
||||
/**
|
||||
* @brief Non critical data header
|
||||
*/
|
||||
|
|
@ -57,44 +84,34 @@ esp_err_t rtc_store_critical_data_write(void *data, size_t len);
|
|||
/**
|
||||
* @brief Read critical data from the RTC storage
|
||||
*
|
||||
* @param[out] size Number of bytes read
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes to read
|
||||
*
|
||||
* @return Pointer to the data on success, otherwise NULL
|
||||
*
|
||||
* @note It is mandatory to call \ref rtc_store_critical_data_release_and_unlock() if \ref rtc_store_critical_data_read_and_lock() is successful.
|
||||
* @note Please avoid adding \ref ESP_DIAG_EVENT(), error/warning logs using esp_log module in between rtc_store_critical_data_read_and_lock() and rtc_store_critical_data_release_and_unlock() API calls. It may lead to a deadlock.
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
const void *rtc_store_critical_data_read_and_lock(size_t *size);
|
||||
|
||||
/**
|
||||
* @brief Release the utilized data read using \ref rtc_store_critical_data_read_and_lock()
|
||||
*
|
||||
* This API releases the utilized data read using \ref rtc_store_critical_data_read_and_lock().
|
||||
* Utilization may involve encoding data, sending data to the cloud, post processing or printing on the console, etc.
|
||||
*
|
||||
* @param[in] size Number of bytes to free. If all the data is utilized then pass the size returned by \ref rtc_store_critical_data_read_and_lock() or 0 if no data is utilized (e.g. sending to cloud failed).
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise.
|
||||
*
|
||||
* @note Please avoid adding \ref ESP_DIAG_EVENT(), error/warning logs using esp_log module in between rtc_store_critical_data_read_and_lock() and rtc_store_critical_data_release_and_unlock() API calls. It may lead to a deadlock.
|
||||
*/
|
||||
esp_err_t rtc_store_critical_data_release_and_unlock(size_t size);
|
||||
int rtc_store_critical_data_read(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Release the size bytes critical data from RTC storage
|
||||
*
|
||||
* This API can be used to remove data from buffer when data is sent asynchronously.
|
||||
*
|
||||
* Consider data is read using \ref rtc_store_critical_data_read_and_lock() and sent to cloud asynchronously.
|
||||
* Since status of data send is unknown, call \ref rtc_store_critical_data_release_and_unlock() with zero length.
|
||||
* When acknowledgement for data send is received use this API with appropriate size to remove the data from the buffer.
|
||||
*
|
||||
* @param[in] size Number of bytes to free.
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise.
|
||||
*/
|
||||
esp_err_t rtc_store_critical_data_release(size_t size);
|
||||
|
||||
/**
|
||||
* @brief Read critical data from the RTC storage and release that data
|
||||
*
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes to read
|
||||
*
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
int rtc_store_critical_data_read_and_release(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Write non critical data to the RTC storage
|
||||
*
|
||||
|
|
@ -116,26 +133,12 @@ esp_err_t rtc_store_non_critical_data_write(const char *dg, void *data, size_t l
|
|||
/**
|
||||
* @brief Read non critical data from the RTC storage
|
||||
*
|
||||
* @param[out] size Number of bytes read
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes read
|
||||
*
|
||||
* @return Pointer to the data on success, otherwise NULL
|
||||
*
|
||||
* @note It is mandatory to call \ref rtc_store_non_critical_data_release_and_unlock() if \ref rtc_store_non_critical_data_read_and_lock() is successful.
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
const void *rtc_store_non_critical_data_read_and_lock(size_t *size);
|
||||
|
||||
/**
|
||||
* @brief Release the utilized data read using \ref rtc_store_non_critical_data_read_and_lock()
|
||||
*
|
||||
* This API releases the utilized data read using \ref rtc_store_non_critical_data_read_and_lock().
|
||||
* Utilization may involve encoding data, sending data to the cloud, post processing or printing on the console, etc.
|
||||
*
|
||||
* @param[in] size Number of bytes to free. If all the data is utilized then pass the size returned by \ref rtc_store_non_critical_data_read_and_lock() or 0 if no data is utilized (e.g. sending to cloud failed).
|
||||
*
|
||||
* @return ESP_OK on success, appropriate error code otherwise.
|
||||
*
|
||||
*/
|
||||
esp_err_t rtc_store_non_critical_data_release_and_unlock(size_t size);
|
||||
int rtc_store_non_critical_data_read(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Release the size bytes non critical data from RTC storage
|
||||
|
|
@ -146,6 +149,16 @@ esp_err_t rtc_store_non_critical_data_release_and_unlock(size_t size);
|
|||
*/
|
||||
esp_err_t rtc_store_non_critical_data_release(size_t size);
|
||||
|
||||
/**
|
||||
* @brief Read non_critical data from the RTC storage and release that data
|
||||
*
|
||||
* @param[in] buf Buffer to read data in
|
||||
* @param[in] size Number of bytes read
|
||||
*
|
||||
* @return Number of bytes read or -1 on error
|
||||
*/
|
||||
int rtc_store_non_critical_data_read_and_release(uint8_t *buf, size_t size);
|
||||
|
||||
/**
|
||||
* @brief Initializes the RTC storage
|
||||
*
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -49,7 +49,7 @@
|
|||
#define CONFIG_ESPTOOLPY_MONITOR_BAUD 115200
|
||||
#define CONFIG_PARTITION_TABLE_SINGLE_APP 1
|
||||
#define CONFIG_PARTITION_TABLE_CUSTOM_FILENAME "partitions.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp_coredump.csv"
|
||||
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
|
||||
#define CONFIG_PARTITION_TABLE_MD5 1
|
||||
#define CONFIG_LIB_BUILDER_FLASHMODE "opi"
|
||||
|
|
@ -805,7 +805,12 @@
|
|||
#define CONFIG_ESP_WIFI_FTM_INITIATOR_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_FTM_RESPONDER_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_SOFTAP_SUPPORT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_NONE 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH 1
|
||||
#define CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECKSUM_CRC32 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
|
||||
#define CONFIG_FATFS_CODEPAGE_850 1
|
||||
#define CONFIG_FATFS_CODEPAGE 850
|
||||
#define CONFIG_FATFS_LFN_STACK 1
|
||||
|
|
@ -851,7 +856,7 @@
|
|||
#define CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1
|
||||
#define CONFIG_FREERTOS_ASSERT_FAIL_ABORT 1
|
||||
#define CONFIG_FREERTOS_IDLE_TASK_STACKSIZE 1024
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 1536
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 2096
|
||||
#define CONFIG_FREERTOS_MAX_TASK_NAME_LEN 16
|
||||
#define CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION 1
|
||||
#define CONFIG_FREERTOS_TIMER_TASK_PRIORITY 1
|
||||
|
|
@ -1088,6 +1093,8 @@
|
|||
#define CONFIG_DIAG_ENABLE_VARIABLES 1
|
||||
#define CONFIG_DIAG_VARIABLES_MAX_COUNT 20
|
||||
#define CONFIG_DIAG_ENABLE_NETWORK_VARIABLES 1
|
||||
#define CONFIG_ESP_INSIGHTS_ENABLED 1
|
||||
#define CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST "https://client.insights.espressif.com"
|
||||
#define CONFIG_ESP_INSIGHTS_CLOUD_POST_MIN_INTERVAL_SEC 60
|
||||
|
|
@ -1155,8 +1162,11 @@
|
|||
#define CONFIG_ESP32S2_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_ALLOW_RTC_FAST_MEM_AS_HEAP CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
|
||||
#define CONFIG_ESP32_APPTRACE_DEST_NONE CONFIG_APPTRACE_DEST_NONE
|
||||
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
|
||||
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
|
||||
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
|
||||
#define CONFIG_ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY CONFIG_PTHREAD_DEFAULT_CORE_NO_AFFINITY
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
|
||||
#define CONFIG_ESP32_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||
#define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -49,7 +49,7 @@
|
|||
#define CONFIG_ESPTOOLPY_MONITOR_BAUD 115200
|
||||
#define CONFIG_PARTITION_TABLE_SINGLE_APP 1
|
||||
#define CONFIG_PARTITION_TABLE_CUSTOM_FILENAME "partitions.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp_coredump.csv"
|
||||
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
|
||||
#define CONFIG_PARTITION_TABLE_MD5 1
|
||||
#define CONFIG_LIB_BUILDER_FLASHMODE "opi"
|
||||
|
|
@ -803,7 +803,12 @@
|
|||
#define CONFIG_ESP_WIFI_FTM_INITIATOR_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_FTM_RESPONDER_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_SOFTAP_SUPPORT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_NONE 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH 1
|
||||
#define CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECKSUM_CRC32 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
|
||||
#define CONFIG_FATFS_CODEPAGE_850 1
|
||||
#define CONFIG_FATFS_CODEPAGE 850
|
||||
#define CONFIG_FATFS_LFN_STACK 1
|
||||
|
|
@ -849,7 +854,7 @@
|
|||
#define CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1
|
||||
#define CONFIG_FREERTOS_ASSERT_FAIL_ABORT 1
|
||||
#define CONFIG_FREERTOS_IDLE_TASK_STACKSIZE 1024
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 1536
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 2096
|
||||
#define CONFIG_FREERTOS_MAX_TASK_NAME_LEN 16
|
||||
#define CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION 1
|
||||
#define CONFIG_FREERTOS_TIMER_TASK_PRIORITY 1
|
||||
|
|
@ -1086,6 +1091,8 @@
|
|||
#define CONFIG_DIAG_ENABLE_VARIABLES 1
|
||||
#define CONFIG_DIAG_VARIABLES_MAX_COUNT 20
|
||||
#define CONFIG_DIAG_ENABLE_NETWORK_VARIABLES 1
|
||||
#define CONFIG_ESP_INSIGHTS_ENABLED 1
|
||||
#define CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST "https://client.insights.espressif.com"
|
||||
#define CONFIG_ESP_INSIGHTS_CLOUD_POST_MIN_INTERVAL_SEC 60
|
||||
|
|
@ -1153,8 +1160,11 @@
|
|||
#define CONFIG_ESP32S2_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_ALLOW_RTC_FAST_MEM_AS_HEAP CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
|
||||
#define CONFIG_ESP32_APPTRACE_DEST_NONE CONFIG_APPTRACE_DEST_NONE
|
||||
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
|
||||
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
|
||||
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
|
||||
#define CONFIG_ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY CONFIG_PTHREAD_DEFAULT_CORE_NO_AFFINITY
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
|
||||
#define CONFIG_ESP32_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||
#define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -48,7 +48,7 @@
|
|||
#define CONFIG_ESPTOOLPY_MONITOR_BAUD 115200
|
||||
#define CONFIG_PARTITION_TABLE_SINGLE_APP 1
|
||||
#define CONFIG_PARTITION_TABLE_CUSTOM_FILENAME "partitions.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp_coredump.csv"
|
||||
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
|
||||
#define CONFIG_PARTITION_TABLE_MD5 1
|
||||
#define CONFIG_LIB_BUILDER_FLASHMODE "qio"
|
||||
|
|
@ -804,7 +804,12 @@
|
|||
#define CONFIG_ESP_WIFI_FTM_INITIATOR_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_FTM_RESPONDER_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_SOFTAP_SUPPORT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_NONE 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH 1
|
||||
#define CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECKSUM_CRC32 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
|
||||
#define CONFIG_FATFS_CODEPAGE_850 1
|
||||
#define CONFIG_FATFS_CODEPAGE 850
|
||||
#define CONFIG_FATFS_LFN_STACK 1
|
||||
|
|
@ -850,7 +855,7 @@
|
|||
#define CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1
|
||||
#define CONFIG_FREERTOS_ASSERT_FAIL_ABORT 1
|
||||
#define CONFIG_FREERTOS_IDLE_TASK_STACKSIZE 1024
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 1536
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 2096
|
||||
#define CONFIG_FREERTOS_MAX_TASK_NAME_LEN 16
|
||||
#define CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION 1
|
||||
#define CONFIG_FREERTOS_TIMER_TASK_PRIORITY 1
|
||||
|
|
@ -1087,6 +1092,8 @@
|
|||
#define CONFIG_DIAG_ENABLE_VARIABLES 1
|
||||
#define CONFIG_DIAG_VARIABLES_MAX_COUNT 20
|
||||
#define CONFIG_DIAG_ENABLE_NETWORK_VARIABLES 1
|
||||
#define CONFIG_ESP_INSIGHTS_ENABLED 1
|
||||
#define CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST "https://client.insights.espressif.com"
|
||||
#define CONFIG_ESP_INSIGHTS_CLOUD_POST_MIN_INTERVAL_SEC 60
|
||||
|
|
@ -1154,8 +1161,11 @@
|
|||
#define CONFIG_ESP32S2_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_ALLOW_RTC_FAST_MEM_AS_HEAP CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
|
||||
#define CONFIG_ESP32_APPTRACE_DEST_NONE CONFIG_APPTRACE_DEST_NONE
|
||||
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
|
||||
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
|
||||
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
|
||||
#define CONFIG_ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY CONFIG_PTHREAD_DEFAULT_CORE_NO_AFFINITY
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
|
||||
#define CONFIG_ESP32_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||
#define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -48,7 +48,7 @@
|
|||
#define CONFIG_ESPTOOLPY_MONITOR_BAUD 115200
|
||||
#define CONFIG_PARTITION_TABLE_SINGLE_APP 1
|
||||
#define CONFIG_PARTITION_TABLE_CUSTOM_FILENAME "partitions.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp.csv"
|
||||
#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp_coredump.csv"
|
||||
#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
|
||||
#define CONFIG_PARTITION_TABLE_MD5 1
|
||||
#define CONFIG_LIB_BUILDER_FLASHMODE "qio"
|
||||
|
|
@ -802,7 +802,12 @@
|
|||
#define CONFIG_ESP_WIFI_FTM_INITIATOR_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_FTM_RESPONDER_SUPPORT 1
|
||||
#define CONFIG_ESP_WIFI_SOFTAP_SUPPORT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_NONE 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH 1
|
||||
#define CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECKSUM_CRC32 1
|
||||
#define CONFIG_ESP_COREDUMP_CHECK_BOOT 1
|
||||
#define CONFIG_ESP_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_COREDUMP_MAX_TASKS_NUM 64
|
||||
#define CONFIG_FATFS_CODEPAGE_850 1
|
||||
#define CONFIG_FATFS_CODEPAGE 850
|
||||
#define CONFIG_FATFS_LFN_STACK 1
|
||||
|
|
@ -848,7 +853,7 @@
|
|||
#define CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1
|
||||
#define CONFIG_FREERTOS_ASSERT_FAIL_ABORT 1
|
||||
#define CONFIG_FREERTOS_IDLE_TASK_STACKSIZE 1024
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 1536
|
||||
#define CONFIG_FREERTOS_ISR_STACKSIZE 2096
|
||||
#define CONFIG_FREERTOS_MAX_TASK_NAME_LEN 16
|
||||
#define CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION 1
|
||||
#define CONFIG_FREERTOS_TIMER_TASK_PRIORITY 1
|
||||
|
|
@ -1085,6 +1090,8 @@
|
|||
#define CONFIG_DIAG_ENABLE_VARIABLES 1
|
||||
#define CONFIG_DIAG_VARIABLES_MAX_COUNT 20
|
||||
#define CONFIG_DIAG_ENABLE_NETWORK_VARIABLES 1
|
||||
#define CONFIG_ESP_INSIGHTS_ENABLED 1
|
||||
#define CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS 1
|
||||
#define CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST "https://client.insights.espressif.com"
|
||||
#define CONFIG_ESP_INSIGHTS_CLOUD_POST_MIN_INTERVAL_SEC 60
|
||||
|
|
@ -1152,8 +1159,11 @@
|
|||
#define CONFIG_ESP32S2_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_ALLOW_RTC_FAST_MEM_AS_HEAP CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
|
||||
#define CONFIG_ESP32_APPTRACE_DEST_NONE CONFIG_APPTRACE_DEST_NONE
|
||||
#define CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32 CONFIG_ESP_COREDUMP_CHECKSUM_CRC32
|
||||
#define CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
|
||||
#define CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM CONFIG_ESP_COREDUMP_MAX_TASKS_NUM
|
||||
#define CONFIG_ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY CONFIG_PTHREAD_DEFAULT_CORE_NO_AFFINITY
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
|
||||
#define CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH
|
||||
#define CONFIG_ESP32_PANIC_PRINT_REBOOT CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT
|
||||
#define CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||
#define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -139,7 +139,7 @@ CONFIG_PARTITION_TABLE_SINGLE_APP=y
|
|||
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
|
||||
# CONFIG_PARTITION_TABLE_CUSTOM is not set
|
||||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
||||
CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp.csv"
|
||||
CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp_coredump.csv"
|
||||
CONFIG_PARTITION_TABLE_OFFSET=0x8000
|
||||
CONFIG_PARTITION_TABLE_MD5=y
|
||||
# end of Partition Table
|
||||
|
|
@ -1634,9 +1634,15 @@ CONFIG_ESP_WIFI_SOFTAP_SUPPORT=y
|
|||
#
|
||||
# Core dump
|
||||
#
|
||||
# CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH is not set
|
||||
CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=y
|
||||
# CONFIG_ESP_COREDUMP_ENABLE_TO_UART is not set
|
||||
CONFIG_ESP_COREDUMP_ENABLE_TO_NONE=y
|
||||
# CONFIG_ESP_COREDUMP_ENABLE_TO_NONE is not set
|
||||
# CONFIG_ESP_COREDUMP_DATA_FORMAT_BIN is not set
|
||||
CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF=y
|
||||
CONFIG_ESP_COREDUMP_CHECKSUM_CRC32=y
|
||||
CONFIG_ESP_COREDUMP_CHECK_BOOT=y
|
||||
CONFIG_ESP_COREDUMP_ENABLE=y
|
||||
CONFIG_ESP_COREDUMP_MAX_TASKS_NUM=64
|
||||
# end of Core dump
|
||||
|
||||
#
|
||||
|
|
@ -1734,7 +1740,7 @@ CONFIG_FREERTOS_ASSERT_FAIL_ABORT=y
|
|||
# CONFIG_FREERTOS_ASSERT_FAIL_PRINT_CONTINUE is not set
|
||||
# CONFIG_FREERTOS_ASSERT_DISABLE is not set
|
||||
CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=1024
|
||||
CONFIG_FREERTOS_ISR_STACKSIZE=1536
|
||||
CONFIG_FREERTOS_ISR_STACKSIZE=2096
|
||||
# CONFIG_FREERTOS_LEGACY_HOOKS is not set
|
||||
CONFIG_FREERTOS_MAX_TASK_NAME_LEN=16
|
||||
CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION=y
|
||||
|
|
@ -2384,12 +2390,15 @@ CONFIG_DIAG_ENABLE_WIFI_METRICS=y
|
|||
CONFIG_DIAG_ENABLE_VARIABLES=y
|
||||
CONFIG_DIAG_VARIABLES_MAX_COUNT=20
|
||||
CONFIG_DIAG_ENABLE_NETWORK_VARIABLES=y
|
||||
# CONFIG_DIAG_MORE_NETWORK_VARS is not set
|
||||
# end of Diagnostics
|
||||
|
||||
#
|
||||
# ESP Insights
|
||||
#
|
||||
# CONFIG_ESP_INSIGHTS_ENABLED is not set
|
||||
CONFIG_ESP_INSIGHTS_ENABLED=y
|
||||
# CONFIG_ESP_INSIGHTS_DEBUG_ENABLED is not set
|
||||
CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE=y
|
||||
# CONFIG_ESP_INSIGHTS_TRANSPORT_MQTT is not set
|
||||
CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS=y
|
||||
CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS_HOST="https://client.insights.espressif.com"
|
||||
|
|
@ -2749,9 +2758,14 @@ CONFIG_TASK_WDT_CHECK_IDLE_TASK_CPU0=y
|
|||
# CONFIG_ESP32_DEBUG_STUBS_ENABLE is not set
|
||||
CONFIG_TIMER_TASK_STACK_SIZE=4096
|
||||
CONFIG_SW_COEXIST_ENABLE=y
|
||||
# CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH is not set
|
||||
CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH=y
|
||||
# CONFIG_ESP32_ENABLE_COREDUMP_TO_UART is not set
|
||||
CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE=y
|
||||
# CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE is not set
|
||||
# CONFIG_ESP32_COREDUMP_DATA_FORMAT_BIN is not set
|
||||
CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF=y
|
||||
CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32=y
|
||||
CONFIG_ESP32_ENABLE_COREDUMP=y
|
||||
CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM=64
|
||||
CONFIG_MB_MASTER_TIMEOUT_MS_RESPOND=150
|
||||
CONFIG_MB_MASTER_DELAY_MS_CONVERT=200
|
||||
CONFIG_MB_QUEUE_LENGTH=20
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
esp-idf: v4.4.3 6407ecb3f8
|
||||
arduino: master 5b61930b
|
||||
arduino: master 947ee6fd
|
||||
esp-dl: master f3006d7
|
||||
esp-dsp: master 5824900
|
||||
esp-insights: main aa8bece
|
||||
esp-dsp: master 8e5e9f6
|
||||
esp-insights: main 94f929d
|
||||
esp-rainmaker: master fe94cc6
|
||||
esp-sr: master fd05643
|
||||
esp32-camera: master 8bcc835
|
||||
esp-sr: master 7154450
|
||||
esp32-camera: master 402b811
|
||||
esp_littlefs: master f2a949f
|
||||
tinyusb: master f4f85bad5
|
||||
tinyusb: master 97984b420
|
||||
|
|
|
|||
Loading…
Reference in a new issue