Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

update 04022022 #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 161 commits into from
Feb 4, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
b974fbd
Fix wdt OTA update
Jason2866 Jul 20, 2021
cd56d8d
Fix ESP32-Solo WDT on HTTP OTA update
Jason2866 Jul 21, 2021
51e9c0b
IDF master c69f0ec32
me-no-dev Jul 25, 2021
dce7bc9
Merge branch 'espressif:master' into master
Jason2866 Jul 25, 2021
7db15b4
Fix WDT only for solo core
Jason2866 Jul 25, 2021
f3600ac
Merge pull request #9 from espressif/idf-master
Jason2866 Jul 25, 2021
5334075
Merge branch 'espressif:master' into master
Jason2866 Jul 26, 2021
43a39f7
Merge branch 'espressif:master' into master
Jason2866 Jul 26, 2021
505926c
IDF master 58022f859
me-no-dev Jul 29, 2021
0174bf2
IDF master 606557b48
me-no-dev Aug 4, 2021
c8a8313
IDF master 8131d6f46
me-no-dev Aug 5, 2021
5b04b60
IDF master 59aa60d52
me-no-dev Aug 6, 2021
5614564
IDF master 83956ebba
me-no-dev Aug 7, 2021
a7fd5f6
IDF master 83956ebbae
me-no-dev Aug 10, 2021
0d5a12f
IDF master b1c3ee71c5
me-no-dev Aug 12, 2021
29cd5cd
IDF master 2c49af9e75
me-no-dev Aug 12, 2021
8fe7dce
Merge branch 'espressif:master' into master
Jason2866 Aug 12, 2021
fa81335
IDF master eb1a66e7c9
me-no-dev Aug 13, 2021
dc0ff8c
IDF master a20df743f1
me-no-dev Aug 13, 2021
9ced459
Fix build compilation due to changes in the HW_TIMER's structs
me-no-dev Aug 30, 2021
249a3e2
Merge branch 'master' into idf-master
me-no-dev Aug 30, 2021
82404b0
Fix compilation warnings and errors with USB
me-no-dev Aug 30, 2021
c6ff727
Update USBCDC.cpp
me-no-dev Aug 30, 2021
f5fee39
Update CMakeLists.txt
me-no-dev Aug 30, 2021
9afc0bd
IDF master b63ec47238
me-no-dev Aug 30, 2021
b05f3f5
Update libarduino_tinyusb.a
me-no-dev Aug 30, 2021
6c72afd
Merge branch 'master' into idf-master
me-no-dev Aug 31, 2021
0101877
Update HWCDC.cpp
me-no-dev Aug 31, 2021
6ed9294
IDF master 5f38b766a8
me-no-dev Sep 1, 2021
b3c651c
IDF master b1f851b8f8
me-no-dev Sep 1, 2021
5641a10
IDF master 61299f879e
me-no-dev Sep 2, 2021
52404b4
Merge branch 'espressif:master' into master
Jason2866 Sep 2, 2021
48fb4e4
Merge pull request #14 from espressif/idf-master
Jason2866 Sep 2, 2021
861c608
Delete tools/sdk/esp32/include/coap directory
Jason2866 Oct 2, 2021
8016a5d
Delete tools/sdk/esp32c3/include/coap directory
Jason2866 Oct 2, 2021
f50cd1c
Delete tools/sdk/esp32s2/include/coap directory
Jason2866 Oct 2, 2021
285c2de
Merge branch 'master' of https://github.com/espressif/arduino-esp32 i…
Jason2866 Oct 2, 2021
d4afbe5
solve conflicts
Jason2866 Oct 2, 2021
e3855a1
Merge pull request #16 from tasmota/espressif-master
Jason2866 Oct 2, 2021
9c86ab1
Merge pull request #17 from espressif/master
Jason2866 Oct 14, 2021
cafa5f1
force Dynamic Buffer instead of Static ones
Jason2866 Oct 20, 2021
32528ec
Remove debug if
Jason2866 Oct 21, 2021
3577e28
Resolve conflicts
Jason2866 Oct 22, 2021
a443b81
Merge pull request #21 from espressif/master
Jason2866 Oct 22, 2021
f0db73b
Merge pull request #22 from espressif/master
Jason2866 Oct 24, 2021
6b86f97
Merge pull request #23 from espressif/master
Jason2866 Oct 25, 2021
7d79518
Merge pull request #24 from espressif/master
Jason2866 Nov 4, 2021
cae60af
Merge pull request #25 from espressif/master
Jason2866 Nov 5, 2021
4337295
Merge pull request #26 from espressif/master
Jason2866 Nov 9, 2021
b801c8c
Merge pull request #27 from espressif/master
Jason2866 Nov 19, 2021
036c778
Revert #5861
Jason2866 Nov 20, 2021
c8ee89b
Merge pull request #30 from espressif/master
Jason2866 Nov 22, 2021
c9f7c87
add GPIO defines for C3
Jason2866 Dec 2, 2021
f32c0da
Edit sd_diskio to check card status
P-R-O-C-H-Y Dec 7, 2021
6c89d9e
Merge pull request #34 from tasmota/ADC_C3_fix
Jason2866 Dec 17, 2021
1f458aa
Merge pull request #35 from espressif/master
Jason2866 Dec 17, 2021
d3eb46a
Update CMakeLists.txt
Jason2866 Dec 18, 2021
72917b8
Merge pull request #36 from tasmota/remove_rainmaker
Jason2866 Dec 18, 2021
e7972d7
Delete libraries/RainMaker directory
Jason2866 Dec 18, 2021
c4da03b
Merge pull request #37 from tasmota/delete_rainmaker_folder
Jason2866 Dec 18, 2021
c94535b
Update README.md
Jason2866 Dec 18, 2021
d770321
Update README.md
Jason2866 Dec 18, 2021
b588778
Merge branch 'master' of https://github.com/espressif/arduino-esp32 i…
Dec 21, 2021
5e3ff29
Merge pull request #39 from tasmota/espressif-master
Jason2866 Dec 21, 2021
c2c02cf
Merge pull request #40 from espressif/master
Jason2866 Dec 21, 2021
107ca03
Revert "RMT refactor"
Jason2866 Dec 21, 2021
857a9f7
Merge pull request #41 from tasmota/revert-40-master
Jason2866 Dec 21, 2021
cae14e9
Fixes Lib Builder compiling errors
SuGlider Dec 22, 2021
3a2285c
Fixes Lib Builder compiling errors
SuGlider Dec 22, 2021
0c310e3
Revert "Revert "RMT refactor""
Jason2866 Dec 22, 2021
27b992f
Merge pull request #42 from tasmota/revert-41-revert-40-master
Jason2866 Dec 22, 2021
d7a2f88
Merge pull request #43 from SuGlider/rmt-fix
Jason2866 Dec 22, 2021
e61dbe0
Update esp32-hal-rmt.c
Jason2866 Dec 22, 2021
b2f7f0a
Update esp32-hal-rmt.c
Jason2866 Dec 22, 2021
685fa2a
Update esp32-hal-rmt.c
Jason2866 Dec 22, 2021
cb97343
Merge pull request #44 from tasmota/try_fix_rmt
Jason2866 Dec 22, 2021
de4e9b7
Merge pull request #45 from espressif/master
Jason2866 Dec 22, 2021
2876c87
Update esp32-hal-rmt.c
Jason2866 Dec 22, 2021
b8758af
Update esp32-hal-gpio.c
Jason2866 Dec 22, 2021
dd04cd6
Merge branch 'espressif:master' into master
Jason2866 Dec 23, 2021
69dd123
Bugfix of ff_sd_status
P-R-O-C-H-Y Jan 6, 2022
e89e289
Merge branch 'master' into SD_check_status_fix
P-R-O-C-H-Y Jan 6, 2022
13a8f5b
Fix I2C Slave Compile
mrengineer7777 Jan 7, 2022
dbdad26
Merge pull request #46 from mrengineer7777/patch-1
Jason2866 Jan 8, 2022
bffb300
add missing c3 define
Jason2866 Jan 8, 2022
ac3ba98
Merge pull request #47 from tasmota/hal_lock
Jason2866 Jan 8, 2022
2b2a0bd
add ESP32C3 `esp32_adc2gpio`
Jason2866 Jan 8, 2022
967db8f
Merge pull request #48 from tasmota/esp32c3_adc2gpio
Jason2866 Jan 8, 2022
f727393
Merge pull request #49 from P-R-O-C-H-Y/SD_check_status_fix
Jason2866 Jan 10, 2022
8c919f1
Fixes UART MODBUS and Loopback issue
SuGlider Jan 13, 2022
cee23f1
Merge pull request #50 from SuGlider/flush_fix
Jason2866 Jan 13, 2022
5e063be
Update esp32-hal-uart.c
Jason2866 Jan 17, 2022
94807ab
Merge branch 'master' of https://github.com/espressif/arduino-esp32 i…
Jason2866 Jan 17, 2022
8196631
Merge pull request #53 from tasmota/espressif-master
Jason2866 Jan 17, 2022
bbf86ce
Merge pull request #54 from espressif/master
Jason2866 Jan 20, 2022
464d22d
Merge branch 'espressif:master' into master
Jason2866 Jan 21, 2022
e097f03
Revert "Fixing interrupts in LEDC (#6160)"
Jason2866 Jan 22, 2022
6d394c2
Merge pull request #55 from Jason2866/revert-6160-master
Jason2866 Jan 22, 2022
30e7b0e
Update esp32-hal.h
Jason2866 Jan 24, 2022
615a517
use Tasmota github
Jason2866 Jan 24, 2022
e56880a
Use Tasmota platform for CI
Jason2866 Jan 24, 2022
4a90f05
tasmota eaptool v3.2
Jason2866 Jan 24, 2022
5dbd8d9
Merge branch 'master' of https://github.com/espressif/arduino-esp32 i…
Jason2866 Jan 29, 2022
562d3bb
add missing c3 define
Jason2866 Jan 29, 2022
aa03636
enable SPI hal for S3
Jason2866 Jan 29, 2022
57a7c8d
revert enable spi for S3
Jason2866 Jan 29, 2022
65f913e
Update Esp.cpp
Jason2866 Jan 29, 2022
fdaf448
Update Esp.cpp
Jason2866 Jan 29, 2022
a28ee01
fix S3 uart gpios
Jason2866 Jan 30, 2022
6b4b7f5
Merge pull request #57 from tasmota/uart_s3
Jason2866 Jan 30, 2022
1d44d5f
fix S3 flash image base (#6208)
Jason2866 Jan 31, 2022
fd78585
Added my new Unexpected Maker ESP32-S3 boards (#6211)
UnexpectedMaker Jan 31, 2022
ce68d72
Fixes UART1 and UART2 default pins for ESP32-S3 (#6202)
SuGlider Jan 31, 2022
1116f2d
Merge branch 'master' into esp32-s3-support
me-no-dev Jan 31, 2022
bb7df04
Fix - SD mount issue (#6162)
P-R-O-C-H-Y Jan 31, 2022
0d665d7
fix: restoring handshake timeout (#6165) (#6166)
vlastahajek Jan 31, 2022
9555ed4
Use 8.4.0+2021r2-patch2 toolchains for CI (#6184)
Jason2866 Jan 31, 2022
39a2080
Fixes onReceive deadlock (#6201)
SuGlider Jan 31, 2022
754cedd
added explanatory comments to WebServer.h (#6204)
h-enes-simsek Jan 31, 2022
cbeb7c4
Add conditional include to WiFiProv.h (#6192)
mrengineer7777 Jan 31, 2022
9fe34f6
Resolve WString TODO (#6190)
mrengineer7777 Jan 31, 2022
96a5ddc
Allow HTTPCLIENT_1_1_COMPATIBLE to be disabled (#6200)
everslick Jan 31, 2022
9f08cf4
Update RequestHandlersImpl.h (#6179)
mathertel Jan 31, 2022
7a6dae0
Refactor the CI scripts (#6191)
Ouss4 Jan 31, 2022
b75a08c
Fixes UART_1 TX Pin setup
SuGlider Jan 31, 2022
ef35baf
Fix random CaptivePortal.ino crashes (#6206)
im-pro-at Jan 31, 2022
ed2a988
Update HardwareSerial.cpp
Jason2866 Jan 31, 2022
b407a76
Update Esp.cpp
Jason2866 Jan 31, 2022
1a0f5d5
Merge pull request #58 from espressif/esp32-s3-support
Jason2866 Jan 31, 2022
05fc3ed
Update Esp.cpp
Jason2866 Jan 31, 2022
5f5a5b5
Bootloader is at 0x0000 for S3
Jason2866 Jan 31, 2022
2299de5
Initial SPI support and S3-Box variant
me-no-dev Feb 1, 2022
dafdc05
Docs cleanup and version updated to 2.0.2 (#6213)
pedrominatel Feb 1, 2022
e3eabf5
Bootloader is at 0x0000 for S3 (#6215)
Jason2866 Feb 1, 2022
fb7efde
Update esp32-hal-cpu.c
Jason2866 Feb 1, 2022
2f9d1e6
Update esp32-hal-spi.c
Jason2866 Feb 1, 2022
0d3d4c7
Merge pull request #60 from espressif/esp32-s3-support
Jason2866 Feb 1, 2022
5be3ff7
Unnecessary operation removed from map() in WMath.cpp (#6218)
IanSC Feb 1, 2022
3a96fc0
framebuffer location for no-psram boards (#6219)
renebohne Feb 1, 2022
46f283a
Merge branch 'master' into esp32-s3-support
me-no-dev Feb 1, 2022
3479080
Update install-platformio-esp32.sh
Jason2866 Feb 1, 2022
fef912e
Merge pull request #61 from espressif/esp32-s3-support
Jason2866 Feb 1, 2022
c210d24
small adjustments for NVS and PSRAM init
me-no-dev Feb 1, 2022
82e41de
WIP: Initial support for PSRAM (QSPI and OPI)
me-no-dev Feb 2, 2022
021b93d
Fix replace() failing
s-hadinger Feb 2, 2022
6a775a6
Merge pull request #64 from s-hadinger/patch-1
Jason2866 Feb 2, 2022
4b6540f
Merge pull request #65 from espressif/esp32-s3-support
Jason2866 Feb 2, 2022
0ea485e
Touch Sensor IDF Refactoring (#6194)
SuGlider Feb 3, 2022
b70fedc
Merge branch 'master' into esp32-s3-support
me-no-dev Feb 3, 2022
65933d8
Merge pull request #66 from espressif/esp32-s3-support
Jason2866 Feb 3, 2022
747b6d0
[FEATURE] Basic implementation of Arduino's I2S library (#5304)
PilnyTomas Feb 4, 2022
66cf2f7
Update CMakeLists.txt
Jason2866 Feb 4, 2022
22f39f0
Merge pull request #68 from tasmota/orig_cmakelist
Jason2866 Feb 4, 2022
7b16915
Merge pull request #67 from espressif/esp32-s3-support
Jason2866 Feb 4, 2022
1232dc0
remove Rainmaker
Jason2866 Feb 4, 2022
9b76da7
[I2S] Fix lib-builder error
me-no-dev Feb 4, 2022
57e236f
Merge pull request #69 from espressif/esp32-s3-support
Jason2866 Feb 4, 2022
8f4ae91
Update CMakeLists.txt
Jason2866 Feb 4, 2022
0baa6a8
try to find lib builder fail
Jason2866 Feb 4, 2022
5959423
Update CMakeLists.txt
Jason2866 Feb 4, 2022
ef841cc
Update idf_component.yml
Jason2866 Feb 4, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 9 additions & 9 deletions 18 platform.txt

Large diffs are not rendered by default.

226 changes: 130 additions & 96 deletions 226 tools/esptool.py

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions 19 tools/platformio-build-esp32.py

Large diffs are not rendered by default.

17 changes: 9 additions & 8 deletions 17 tools/platformio-build-esp32c3.py

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions 18 tools/platformio-build-esp32s2.py

Large diffs are not rendered by default.

Binary file modified BIN -464 Bytes (97%) tools/sdk/esp32/bin/bootloader_dio_40m.bin
Binary file not shown.
Binary file modified BIN -464 Bytes (97%) tools/sdk/esp32/bin/bootloader_dio_80m.bin
Binary file not shown.
Binary file modified BIN -464 Bytes (97%) tools/sdk/esp32/bin/bootloader_dout_40m.bin
Binary file not shown.
Binary file modified BIN -464 Bytes (97%) tools/sdk/esp32/bin/bootloader_dout_80m.bin
Binary file not shown.
Binary file modified BIN -480 Bytes (97%) tools/sdk/esp32/bin/bootloader_qio_40m.bin
Binary file not shown.
Binary file modified BIN -480 Bytes (97%) tools/sdk/esp32/bin/bootloader_qio_80m.bin
Binary file not shown.
Binary file modified BIN -480 Bytes (97%) tools/sdk/esp32/bin/bootloader_qout_40m.bin
Binary file not shown.
Binary file modified BIN -480 Bytes (97%) tools/sdk/esp32/bin/bootloader_qout_80m.bin
Binary file not shown.
1 change: 1 addition & 0 deletions 1 tools/sdk/esp32/include/app_update/include/esp_ota_ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "esp_partition.h"
#include "esp_image_format.h"
#include "esp_flash_partitions.h"
#include "soc/soc_caps.h"

#ifdef __cplusplus
extern "C"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
#include "esp_flash_partitions.h"
#include "esp_image_format.h"
#include "esp_app_format.h"
// RESET_REASON is declared in rom/rtc.h
// [refactor-todo]: we shouldn't expose ROM header files in a public API header, remove them in v5.0
// Tracked in IDF-1968
#if CONFIG_IDF_TARGET_ESP32
#include "esp32/rom/rtc.h"
#elif CONFIG_IDF_TARGET_ESP32S2
Expand Down Expand Up @@ -62,18 +63,37 @@ bool bootloader_common_ota_select_valid(const esp_ota_select_entry_t *s);
bool bootloader_common_ota_select_invalid(const esp_ota_select_entry_t *s);

/**
* @brief Check if the GPIO input is a long hold or a short hold.
* @brief Check if a GPIO input is held low for a long period, short period, or not
* at all.
*
* This function will configure the specified GPIO as an input with internal pull-up enabled.
*
* Number of the GPIO input will be configured as an input with internal pull-up enabled.
* If the GPIO input is held low continuously for delay_sec period then it is a long hold.
* If the GPIO input is held low for less period then it is a short hold.
*
* @param[in] num_pin Number of the GPIO input.
* @param[in] delay_sec Input must be driven low for at least this long, continuously.
* @return esp_comm_gpio_hold_t Defines type of hold a GPIO in low state.
* @return esp_comm_gpio_hold_t Type of low level hold detected, if any.
*/
esp_comm_gpio_hold_t bootloader_common_check_long_hold_gpio(uint32_t num_pin, uint32_t delay_sec);

/**
* @brief Check if a GPIO input is held low or high for a long period, short period, or not
* at all.
*
* This function will configure the specified GPIO as an input with internal pull-up enabled.
*
* If the GPIO input is held at 'level' continuously for delay_sec period then it is a long hold.
* If the GPIO input is held at 'level' for less period then it is a short hold.
*
* @param[in] num_pin Number of the GPIO input.
* @param[in] delay_sec Input must be driven to 'level' for at least this long, continuously.
* @param[in] level Input pin level to trigger on hold
* @return esp_comm_gpio_hold_t Type of hold detected, if any.
*/
esp_comm_gpio_hold_t bootloader_common_check_long_hold_gpio_level(uint32_t num_pin, uint32_t delay_sec, bool level);


/**
* @brief Erase the partition data that is specified in the transferred list.
*
Expand Down
32 changes: 32 additions & 0 deletions 32 tools/sdk/esp32/include/bt/include/esp32/include/esp_bt.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,38 @@
extern "C" {
#endif

#ifdef CONFIG_BT_ENABLED

#define SOC_MEM_BT_DATA_START 0x3ffae6e0
#define SOC_MEM_BT_DATA_END 0x3ffaff10
#define SOC_MEM_BT_EM_START 0x3ffb0000
#define SOC_MEM_BT_EM_END 0x3ffb7cd8
#define SOC_MEM_BT_EM_BTDM0_START 0x3ffb0000
#define SOC_MEM_BT_EM_BTDM0_END 0x3ffb09a8
#define SOC_MEM_BT_EM_BLE_START 0x3ffb09a8
#define SOC_MEM_BT_EM_BLE_END 0x3ffb1ddc
#define SOC_MEM_BT_EM_BTDM1_START 0x3ffb1ddc
#define SOC_MEM_BT_EM_BTDM1_END 0x3ffb2730
#define SOC_MEM_BT_EM_BREDR_START 0x3ffb2730
#define SOC_MEM_BT_EM_BREDR_NO_SYNC_END 0x3ffb6388 //Not calculate with synchronize connection support
#define SOC_MEM_BT_EM_BREDR_END 0x3ffb7cd8 //Calculate with synchronize connection support
#define SOC_MEM_BT_EM_SYNC0_START 0x3ffb6388
#define SOC_MEM_BT_EM_SYNC0_END 0x3ffb6bf8
#define SOC_MEM_BT_EM_SYNC1_START 0x3ffb6bf8
#define SOC_MEM_BT_EM_SYNC1_END 0x3ffb7468
#define SOC_MEM_BT_EM_SYNC2_START 0x3ffb7468
#define SOC_MEM_BT_EM_SYNC2_END 0x3ffb7cd8
#define SOC_MEM_BT_BSS_START 0x3ffb8000
#define SOC_MEM_BT_BSS_END 0x3ffb9a20
#define SOC_MEM_BT_MISC_START 0x3ffbdb28
#define SOC_MEM_BT_MISC_END 0x3ffbdb5c

#define SOC_MEM_BT_EM_PER_SYNC_SIZE 0x870

#define SOC_MEM_BT_EM_BREDR_REAL_END (SOC_MEM_BT_EM_BREDR_NO_SYNC_END + CONFIG_BTDM_CTRL_BR_EDR_MAX_SYNC_CONN_EFF * SOC_MEM_BT_EM_PER_SYNC_SIZE)

#endif //CONFIG_BT_ENABLED

#define ESP_BT_CONTROLLER_CONFIG_MAGIC_VAL 0x20200622

/**
Expand Down
6 changes: 5 additions & 1 deletion 6 tools/sdk/esp32/include/config/sdkconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@
#define CONFIG_FMB_SERIAL_ASCII_BITS_PER_SYMB 8
#define CONFIG_FMB_SERIAL_ASCII_TIMEOUT_RESPOND_MS 1000
#define CONFIG_FMB_PORT_TASK_PRIO 10
#define CONFIG_FMB_PORT_TASK_AFFINITY_CPU0 1
#define CONFIG_FMB_PORT_TASK_AFFINITY 0x0
#define CONFIG_FMB_CONTROLLER_NOTIFY_TIMEOUT 20
#define CONFIG_FMB_CONTROLLER_NOTIFY_QUEUE_SIZE 20
#define CONFIG_FMB_CONTROLLER_STACK_SIZE 4096
Expand Down Expand Up @@ -454,6 +456,8 @@
#define CONFIG_MBEDTLS_SSL_PROTO_DTLS 1
#define CONFIG_MBEDTLS_SSL_ALPN 1
#define CONFIG_MBEDTLS_CLIENT_SSL_SESSION_TICKETS 1
#define CONFIG_MBEDTLS_X509_CHECK_KEY_USAGE 1
#define CONFIG_MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE 1
#define CONFIG_MBEDTLS_SERVER_SSL_SESSION_TICKETS 1
#define CONFIG_MBEDTLS_AES_C 1
#define CONFIG_MBEDTLS_RC4_DISABLED 1
Expand Down Expand Up @@ -686,5 +690,5 @@
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
#define CONFIG_ARDUINO_IDF_COMMIT "d93887f9f"
#define CONFIG_ARDUINO_IDF_COMMIT "c69f0ec32"
#define CONFIG_ARDUINO_IDF_BRANCH "master"
2 changes: 2 additions & 0 deletions 2 tools/sdk/esp32/include/console/esp_console.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ typedef struct {
uint32_t task_stack_size; //!< repl task stack size
uint32_t task_priority; //!< repl task priority
const char *prompt; //!< prompt (NULL represents default: "esp> ")
size_t max_cmdline_length; //!< maximum length of a command line. If 0, default value will be used
} esp_console_repl_config_t;

/**
Expand All @@ -61,6 +62,7 @@ typedef struct {
.task_stack_size = 4096, \
.task_priority = 2, \
.prompt = NULL, \
.max_cmdline_length = 0, \
}

/**
Expand Down
1 change: 1 addition & 0 deletions 1 tools/sdk/esp32/include/console/linenoise/linenoise.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ void linenoiseSetDumbMode(int set);
bool linenoiseIsDumbMode(void);
void linenoisePrintKeyCodes(void);
void linenoiseAllowEmpty(bool);
int linenoiseSetMaxLineLen(size_t len);

#ifdef __cplusplus
}
Expand Down
13 changes: 7 additions & 6 deletions 13 tools/sdk/esp32/include/driver/include/driver/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,15 @@ typedef struct{

union {
struct {
uint32_t clk_speed; /*!< I2C clock frequency for master mode, (no higher than 1MHz for now) */
} master; /*!< I2C master config */
uint32_t clk_speed; /*!< I2C clock frequency for master mode, (no higher than 1MHz for now) */
} master; /*!< I2C master config */
struct {
uint8_t addr_10bit_en; /*!< I2C 10bit address mode enable for slave mode */
uint16_t slave_addr; /*!< I2C address for slave mode */
} slave; /*!< I2C slave config */
uint8_t addr_10bit_en; /*!< I2C 10bit address mode enable for slave mode */
uint16_t slave_addr; /*!< I2C address for slave mode */
uint32_t maximum_speed; /*!< I2C expected clock speed from SCL. */
} slave; /*!< I2C slave config */
};
uint32_t clk_flags; /*!< Bitwise of ``I2C_SCLK_SRC_FLAG_**FOR_DFS**`` for clk source choice*/
uint32_t clk_flags; /*!< Bitwise of ``I2C_SCLK_SRC_FLAG_**FOR_DFS**`` for clk source choice*/
} i2c_config_t;


Expand Down
8 changes: 5 additions & 3 deletions 8 tools/sdk/esp32/include/driver/include/driver/spi_master.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ typedef struct {
#define SPI_TRANS_VARIABLE_ADDR (1<<6) ///< Use the ``address_bits`` in ``spi_transaction_ext_t`` rather than default value in ``spi_device_interface_config_t``.
#define SPI_TRANS_VARIABLE_DUMMY (1<<7) ///< Use the ``dummy_bits`` in ``spi_transaction_ext_t`` rather than default value in ``spi_device_interface_config_t``.
#define SPI_TRANS_SET_CD (1<<7) ///< Set the CD pin

#define SPI_TRANS_CS_KEEP_ACTIVE (1<<8) ///< Keep CS active after data transfer
/**
* This structure describes one SPI transaction. The descriptor should not be modified until the transaction finishes.
*/
Expand Down Expand Up @@ -194,7 +194,8 @@ esp_err_t spi_bus_remove_device(spi_device_handle_t handle);
* @param ticks_to_wait Ticks to wait until there's room in the queue; use portMAX_DELAY to
* never time out.
* @return
* - ESP_ERR_INVALID_ARG if parameter is invalid
* - ESP_ERR_INVALID_ARG if parameter is invalid. This can happen if SPI_DEVICE_CS_KEEP_LOW flag is specified while
* the bus was not acquired (`spi_device_acquire_bus()` should be called first)
* - ESP_ERR_TIMEOUT if there was no room in the queue before ticks_to_wait expired
* - ESP_ERR_NO_MEM if allocating DMA-capable temporary buffer failed
* - ESP_ERR_INVALID_STATE if previous transactions are not finished
Expand Down Expand Up @@ -257,7 +258,8 @@ esp_err_t spi_device_transmit(spi_device_handle_t handle, spi_transaction_t *tra
* currently only portMAX_DELAY is supported.
*
* @return
* - ESP_ERR_INVALID_ARG if parameter is invalid
* - ESP_ERR_INVALID_ARG if parameter is invalid. This can happen if SPI_DEVICE_CS_KEEP_LOW flag is specified while
* the bus was not acquired (`spi_device_acquire_bus()` should be called first)
* - ESP_ERR_TIMEOUT if the device cannot get control of the bus before ``ticks_to_wait`` expired
* - ESP_ERR_NO_MEM if allocating DMA-capable temporary buffer failed
* - ESP_ERR_INVALID_STATE if previous transactions are not finished
Expand Down
33 changes: 31 additions & 2 deletions 33 tools/sdk/esp32/include/driver/include/esp_private/gdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ typedef enum {
GDMA_TRIG_PERIPH_ADC, /*!< GDMA trigger peripheral: ADC */
GDMA_TRIG_PERIPH_DAC, /*!< GDMA trigger peripheral: DAC */
GDMA_TRIG_PERIPH_LCD, /*!< GDMA trigger peripheral: LCD */
GDMA_TRIG_PERIPH_CAM /*!< GDMA trigger peripheral: CAM */
GDMA_TRIG_PERIPH_CAM, /*!< GDMA trigger peripheral: CAM */
GDMA_TRIG_PERIPH_RMT, /*!< GDMA trigger peripheral: RMT */
} gdma_trigger_peripheral_t;

/**
Expand All @@ -58,10 +59,23 @@ typedef struct {
gdma_channel_handle_t sibling_chan; /*!< DMA sibling channel handle (NULL means having sibling is not necessary) */
gdma_channel_direction_t direction; /*!< DMA channel direction */
struct {
int reserve_sibling: 1; /*!< If set, DMA channel allocator would prefer to allocate new channel in a new pair, and reserve sibling channel for future use */
int reserve_sibling: 1; /*!< If set, DMA channel allocator would prefer to allocate new channel in a new pair, and reserve sibling channel for future use */
} flags;
} gdma_channel_alloc_config_t;

/**
* @brief GDMA transfer ability
*
* @note The alignment set in this structure is **not** a guarantee that gdma driver will take care of the nonalignment cases.
* Actually the GDMA driver has no knowledge about the DMA buffer (address and size) used by upper layer.
* So it's the responsibility of the **upper layer** to take care of the buffer address and size.
*
*/
typedef struct {
size_t sram_trans_align; /*!< DMA transfer alignment for memory in SRAM, in bytes. The driver enables/disables burst mode based on this value. 0 means no alignment is required */
size_t psram_trans_align; /*!< DMA transfer alignment for memory in PSRAM, in bytes. The driver sets proper burst block size based on the alignment value. 0 means no alignment is required */
} gdma_transfer_ability_t;

/**
* @brief Type of GDMA event data
*
Expand All @@ -79,6 +93,9 @@ typedef struct {
* @param event_data GDMA event data
* @param user_data User registered data from `gdma_register_tx_event_callbacks` or `gdma_register_rx_event_callbacks`
*
* @return Whether a task switch is needed after the callback function returns,
* this is usually due to the callback wakes up some high priority task.
*
*/
typedef bool (*gdma_event_callback_t)(gdma_channel_handle_t dma_chan, gdma_event_data_t *event_data, void *user_data);

Expand Down Expand Up @@ -171,6 +188,18 @@ esp_err_t gdma_connect(gdma_channel_handle_t dma_chan, gdma_trigger_t trig_perip
*/
esp_err_t gdma_disconnect(gdma_channel_handle_t dma_chan);

/**
* @brief Set DMA channel transfer ability
*
* @param[in] dma_chan GDMA channel handle, allocated by `gdma_new_channel`
* @param[in] ability Transfer ability, e.g. alignment
* @return
* - ESP_OK: Set DMA channel transfer ability successfully
* - ESP_ERR_INVALID_ARG: Set DMA channel transfer ability failed because of invalid argument
* - ESP_FAIL: Set DMA channel transfer ability failed because of other error
*/
esp_err_t gdma_set_transfer_ability(gdma_channel_handle_t dma_chan, const gdma_transfer_ability_t *ability);

/**
* @brief Apply channel strategy for GDMA channel
*
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.