Skip to content

Commit 34e10b4

Browse files
committed
IDF release/v4.4 8f44525dd8
1 parent 9cf1e38 commit 34e10b4

File tree

116 files changed

+123
-76
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+123
-76
lines changed

platform.txt

+4-4
Large diffs are not rendered by default.

tools/platformio-build-esp32.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@
336336
"UNITY_INCLUDE_CONFIG_H",
337337
"WITH_POSIX",
338338
"_GNU_SOURCE",
339-
("IDF_VER", '\\"v4.4.7-170-g7cd82420c2-dirty\\"'),
339+
("IDF_VER", '\\"v4.4.7-178-g8f44525dd8-dirty\\"'),
340340
"ESP_PLATFORM",
341341
"_POSIX_READER_WRITER_LOCKS",
342342
"ARDUINO_ARCH_ESP32",

tools/platformio-build-esp32c3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333
"UNITY_INCLUDE_CONFIG_H",
334334
"WITH_POSIX",
335335
"_GNU_SOURCE",
336-
("IDF_VER", '\\"v4.4.7-170-g7cd82420c2-dirty\\"'),
336+
("IDF_VER", '\\"v4.4.7-178-g8f44525dd8-dirty\\"'),
337337
"ESP_PLATFORM",
338338
"_POSIX_READER_WRITER_LOCKS",
339339
"ARDUINO_ARCH_ESP32",

tools/platformio-build-esp32s2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
"UNITY_INCLUDE_CONFIG_H",
319319
"WITH_POSIX",
320320
"_GNU_SOURCE",
321-
("IDF_VER", '\\"v4.4.7-170-g7cd82420c2-dirty\\"'),
321+
("IDF_VER", '\\"v4.4.7-178-g8f44525dd8-dirty\\"'),
322322
"ESP_PLATFORM",
323323
"_POSIX_READER_WRITER_LOCKS",
324324
"ARDUINO_ARCH_ESP32",

tools/platformio-build-esp32s3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335
"UNITY_INCLUDE_CONFIG_H",
336336
"WITH_POSIX",
337337
"_GNU_SOURCE",
338-
("IDF_VER", '\\"v4.4.7-170-g7cd82420c2-dirty\\"'),
338+
("IDF_VER", '\\"v4.4.7-178-g8f44525dd8-dirty\\"'),
339339
"ESP_PLATFORM",
340340
"_POSIX_READER_WRITER_LOCKS",
341341
"ARDUINO_ARCH_ESP32",
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

tools/sdk/esp32/dio_qspi/include/sdkconfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -845,5 +845,5 @@
845845
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
846846
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
847847
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
848-
#define CONFIG_ARDUINO_IDF_COMMIT "7cd82420c2"
848+
#define CONFIG_ARDUINO_IDF_COMMIT "8f44525dd8"
849849
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

tools/sdk/esp32/dout_qspi/include/sdkconfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -845,5 +845,5 @@
845845
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
846846
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
847847
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
848-
#define CONFIG_ARDUINO_IDF_COMMIT "7cd82420c2"
848+
#define CONFIG_ARDUINO_IDF_COMMIT "8f44525dd8"
849849
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

tools/sdk/esp32/include/hal/esp32/include/hal/uart_ll.h

+10-16
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
/*
2+
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
146

157
// The LL layer for UART register operations.
168
// Note that most of the register operations in this layer are non-atomic operations.
@@ -36,7 +28,7 @@ extern "C" {
3628
// The timeout calibration factor when using ref_tick
3729
#define UART_LL_TOUT_REF_FACTOR_DEFAULT (8)
3830

39-
#define UART_LL_MIN_WAKEUP_THRESH (2)
31+
#define UART_LL_MIN_WAKEUP_THRESH (3)
4032
#define UART_LL_INTR_MASK (0x7ffff) //All interrupt mask
4133

4234
// Define UART interrupts
@@ -617,7 +609,9 @@ FORCE_INLINE_ATTR void uart_ll_set_dtr_active_level(uart_dev_t *hw, int level)
617609
*/
618610
FORCE_INLINE_ATTR void uart_ll_set_wakeup_thrd(uart_dev_t *hw, uint32_t wakeup_thrd)
619611
{
620-
hw->sleep_conf.active_threshold = wakeup_thrd - UART_LL_MIN_WAKEUP_THRESH;
612+
// System would wakeup when the number of positive edges of RxD signal is larger than or equal to (UART_ACTIVE_THRESHOLD+2)
613+
// Note: On ESP32, the minimum UART wakeup threshold is 2 + 1 = 3 (UART_ACTIVE_THRESHOLD set to 0 leads to consecutive triggering wakeup)
614+
hw->sleep_conf.active_threshold = wakeup_thrd - (UART_LL_MIN_WAKEUP_THRESH - 1);
621615
}
622616

623617
/**
@@ -759,7 +753,7 @@ FORCE_INLINE_ATTR void uart_ll_get_at_cmd_char(uart_dev_t *hw, uint8_t *cmd_char
759753
*/
760754
FORCE_INLINE_ATTR uint32_t uart_ll_get_wakeup_thrd(uart_dev_t *hw)
761755
{
762-
return hw->sleep_conf.active_threshold + UART_LL_MIN_WAKEUP_THRESH;
756+
return hw->sleep_conf.active_threshold + (UART_LL_MIN_WAKEUP_THRESH - 1);
763757
}
764758

765759
/**

tools/sdk/esp32/ld/sections.ld

+1-1
Large diffs are not rendered by default.

tools/sdk/esp32/lib/libapp_update.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libdriver.a

292 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libesp_gdbstub.a

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libesp_pm.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libesp_rom.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libesp_system.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libhal.a

-4 Bytes
Binary file not shown.

tools/sdk/esp32/lib/libvfs.a

0 Bytes
Binary file not shown.

tools/sdk/esp32/qio_qspi/include/sdkconfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -845,5 +845,5 @@
845845
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
846846
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
847847
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
848-
#define CONFIG_ARDUINO_IDF_COMMIT "7cd82420c2"
848+
#define CONFIG_ARDUINO_IDF_COMMIT "8f44525dd8"
849849
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

tools/sdk/esp32/qout_qspi/include/sdkconfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -845,5 +845,5 @@
845845
#define CONFIG_ULP_COPROC_ENABLED CONFIG_ESP32_ULP_COPROC_ENABLED
846846
#define CONFIG_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
847847
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
848-
#define CONFIG_ARDUINO_IDF_COMMIT "7cd82420c2"
848+
#define CONFIG_ARDUINO_IDF_COMMIT "8f44525dd8"
849849
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"
-36 Bytes
Binary file not shown.
-36 Bytes
Binary file not shown.
-36 Bytes
Binary file not shown.
-36 Bytes
Binary file not shown.
-36 Bytes
Binary file not shown.
-36 Bytes
Binary file not shown.
-36 Bytes
Binary file not shown.
-36 Bytes
Binary file not shown.

tools/sdk/esp32c3/dio_qspi/include/sdkconfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -851,5 +851,5 @@
851851
#define CONFIG_TOOLPREFIX CONFIG_SDK_TOOLPREFIX
852852
#define CONFIG_UDP_RECVMBOX_SIZE CONFIG_LWIP_UDP_RECVMBOX_SIZE
853853
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
854-
#define CONFIG_ARDUINO_IDF_COMMIT "7cd82420c2"
854+
#define CONFIG_ARDUINO_IDF_COMMIT "8f44525dd8"
855855
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"
0 Bytes
Binary file not shown.

tools/sdk/esp32c3/dout_qspi/include/sdkconfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -851,5 +851,5 @@
851851
#define CONFIG_TOOLPREFIX CONFIG_SDK_TOOLPREFIX
852852
#define CONFIG_UDP_RECVMBOX_SIZE CONFIG_LWIP_UDP_RECVMBOX_SIZE
853853
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
854-
#define CONFIG_ARDUINO_IDF_COMMIT "7cd82420c2"
854+
#define CONFIG_ARDUINO_IDF_COMMIT "8f44525dd8"
855855
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"
0 Bytes
Binary file not shown.

tools/sdk/esp32c3/include/hal/esp32c3/include/hal/gpio_ll.h

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2020-2024 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -322,7 +322,12 @@ static inline void gpio_ll_wakeup_disable(gpio_dev_t *hw, gpio_num_t gpio_num)
322322
*/
323323
static inline void gpio_ll_set_drive_capability(gpio_dev_t *hw, gpio_num_t gpio_num, gpio_drive_cap_t strength)
324324
{
325-
SET_PERI_REG_BITS(GPIO_PIN_MUX_REG[gpio_num], FUN_DRV_V, strength, FUN_DRV_S);
325+
uint32_t drv_cap = (uint32_t)strength;
326+
// DRV = 1 and DRV = 2 register bits are flipped for IO2, IO3, IO4, IO5, IO18, IO19 on the target
327+
if (gpio_num == 2 || gpio_num == 3 || gpio_num == 4 || gpio_num == 5 || gpio_num == 18 || gpio_num == 19) {
328+
drv_cap = ((drv_cap & 0x1) << 1) | ((drv_cap & 0x2) >> 1); // swap bit0 and bit1
329+
}
330+
SET_PERI_REG_BITS(IO_MUX_GPIO0_REG + (gpio_num * 4), FUN_DRV_V, drv_cap, FUN_DRV_S);
326331
}
327332

328333
/**
@@ -334,7 +339,12 @@ static inline void gpio_ll_set_drive_capability(gpio_dev_t *hw, gpio_num_t gpio_
334339
*/
335340
static inline void gpio_ll_get_drive_capability(gpio_dev_t *hw, gpio_num_t gpio_num, gpio_drive_cap_t *strength)
336341
{
337-
*strength = (gpio_drive_cap_t)GET_PERI_REG_BITS2(GPIO_PIN_MUX_REG[gpio_num], FUN_DRV_V, FUN_DRV_S);
342+
uint32_t drv_cap = GET_PERI_REG_BITS2(IO_MUX_GPIO0_REG + (gpio_num * 4), FUN_DRV_V, FUN_DRV_S);
343+
// DRV = 1 and DRV = 2 register bits are flipped for IO2, IO3, IO4, IO5, IO18, IO19 on the target
344+
if (gpio_num == 2 || gpio_num == 3 || gpio_num == 4 || gpio_num == 5 || gpio_num == 18 || gpio_num == 19) {
345+
drv_cap = ((drv_cap & 0x1) << 1) | ((drv_cap & 0x2) >> 1); // swap bit0 and bit1
346+
}
347+
*strength = (gpio_drive_cap_t)drv_cap;
338348
}
339349

340350
/**

tools/sdk/esp32c3/include/hal/esp32c3/include/hal/uart_ll.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern "C" {
2525
// Get UART hardware instance with giving uart num
2626
#define UART_LL_GET_HW(num) (((num) == 0) ? (&UART0) : (&UART1))
2727

28-
#define UART_LL_MIN_WAKEUP_THRESH (2)
28+
#define UART_LL_MIN_WAKEUP_THRESH (3)
2929
#define UART_LL_INTR_MASK (0x7ffff) //All interrupt mask
3030

3131
#define UART_LL_FSM_IDLE (0x0)
@@ -610,6 +610,7 @@ static inline void uart_ll_set_dtr_active_level(uart_dev_t *hw, int level)
610610
*/
611611
static inline void uart_ll_set_wakeup_thrd(uart_dev_t *hw, uint32_t wakeup_thrd)
612612
{
613+
// System would wakeup when the number of positive edges of RxD signal is larger than or equal to (UART_ACTIVE_THRESHOLD+3)
613614
hw->sleep_conf.active_threshold = wakeup_thrd - UART_LL_MIN_WAKEUP_THRESH;
614615
}
615616

tools/sdk/esp32c3/ld/sections.ld

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ SECTIONS
349349
_bss_start = ABSOLUTE(.);
350350

351351
*(EXCLUDE_FILE(*libbt.a *libbtdm_app.a *libnimble.a) .bss EXCLUDE_FILE(*libbt.a *libbtdm_app.a *libnimble.a) .bss.*)
352-
*(.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)
353352
*(.ext_ram.bss .ext_ram.bss.*)
353+
*(.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)
354354
*(EXCLUDE_FILE(*libbt.a *libbtdm_app.a *libnimble.a) COMMON)
355355
. = ALIGN(4);
356356
_bt_bss_start = ABSOLUTE(.);

tools/sdk/esp32c3/lib/libapp_update.a

0 Bytes
Binary file not shown.

tools/sdk/esp32c3/lib/libdriver.a

2.06 KB
Binary file not shown.
0 Bytes
Binary file not shown.

tools/sdk/esp32c3/lib/libesp_pm.a

0 Bytes
Binary file not shown.

tools/sdk/esp32c3/lib/libesp_system.a

0 Bytes
Binary file not shown.

tools/sdk/esp32c3/lib/libhal.a

36 Bytes
Binary file not shown.

tools/sdk/esp32c3/qio_qspi/include/sdkconfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -851,5 +851,5 @@
851851
#define CONFIG_TOOLPREFIX CONFIG_SDK_TOOLPREFIX
852852
#define CONFIG_UDP_RECVMBOX_SIZE CONFIG_LWIP_UDP_RECVMBOX_SIZE
853853
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
854-
#define CONFIG_ARDUINO_IDF_COMMIT "7cd82420c2"
854+
#define CONFIG_ARDUINO_IDF_COMMIT "8f44525dd8"
855855
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"
0 Bytes
Binary file not shown.

tools/sdk/esp32c3/qout_qspi/include/sdkconfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -851,5 +851,5 @@
851851
#define CONFIG_TOOLPREFIX CONFIG_SDK_TOOLPREFIX
852852
#define CONFIG_UDP_RECVMBOX_SIZE CONFIG_LWIP_UDP_RECVMBOX_SIZE
853853
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
854-
#define CONFIG_ARDUINO_IDF_COMMIT "7cd82420c2"
854+
#define CONFIG_ARDUINO_IDF_COMMIT "8f44525dd8"
855855
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"
0 Bytes
Binary file not shown.

tools/sdk/esp32s2/dio_qspi/include/sdkconfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,5 +717,5 @@
717717
#define CONFIG_USB_MSC_BUFSIZE CONFIG_TINYUSB_MSC_BUFSIZE
718718
#define CONFIG_USB_MSC_ENABLED CONFIG_TINYUSB_MSC_ENABLED
719719
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
720-
#define CONFIG_ARDUINO_IDF_COMMIT "7cd82420c2"
720+
#define CONFIG_ARDUINO_IDF_COMMIT "8f44525dd8"
721721
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

tools/sdk/esp32s2/dout_qspi/include/sdkconfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,5 +717,5 @@
717717
#define CONFIG_USB_MSC_BUFSIZE CONFIG_TINYUSB_MSC_BUFSIZE
718718
#define CONFIG_USB_MSC_ENABLED CONFIG_TINYUSB_MSC_ENABLED
719719
#define CONFIG_WARN_WRITE_STRINGS CONFIG_COMPILER_WARN_WRITE_STRINGS
720-
#define CONFIG_ARDUINO_IDF_COMMIT "7cd82420c2"
720+
#define CONFIG_ARDUINO_IDF_COMMIT "8f44525dd8"
721721
#define CONFIG_ARDUINO_IDF_BRANCH "release/v4.4"

tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/class/hid/hid_device.h

+3
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ TU_ATTR_WEAK bool tud_hid_set_idle_cb(uint8_t instance, uint8_t idle_rate);
128128
// Note: For composite reports, report[0] is report ID
129129
TU_ATTR_WEAK void tud_hid_report_complete_cb(uint8_t instance, uint8_t const* report, uint16_t len);
130130

131+
// Invoked when a transfer wasn't successful
132+
TU_ATTR_WEAK void tud_hid_report_fail_cb(uint8_t instance, uint8_t ep_addr, uint16_t len);
131133

132134
//--------------------------------------------------------------------+
133135
// Inline Functions
@@ -471,6 +473,7 @@ uint16_t hidd_open (uint8_t rhport, tusb_desc_interface_t const * itf
471473
bool hidd_control_xfer_cb (uint8_t rhport, uint8_t stage, tusb_control_request_t const * request);
472474
bool hidd_xfer_cb (uint8_t rhport, uint8_t ep_addr, xfer_result_t event, uint32_t xferred_bytes);
473475

476+
474477
#ifdef __cplusplus
475478
}
476479
#endif

tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/common/tusb_common.h

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
// Standard Headers
6666
#include <stdbool.h>
6767
#include <stdint.h>
68+
#include <inttypes.h>
6869
#include <stddef.h>
6970
#include <string.h>
7071
#include <stdio.h>

tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/common/tusb_mcu.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,9 @@
329329
#define TUP_USBIP_DWC2
330330
#define TUP_DCD_ENDPOINT_MAX 6
331331

332+
#elif TU_CHECK_MCU(OPT_MCU_ESP32) && (CFG_TUD_ENABLED || !(defined(CFG_TUH_MAX3421) && CFG_TUH_MAX3421))
333+
#error "MCUs are only supported with CFG_TUH_MAX3421 enabled"
334+
332335
//--------------------------------------------------------------------+
333336
// Dialog
334337
//--------------------------------------------------------------------+
@@ -426,8 +429,8 @@
426429
#define TUP_MCU_MULTIPLE_CORE 0
427430
#endif
428431

429-
#ifndef TUP_DCD_ENDPOINT_MAX
430-
#warning "TUP_DCD_ENDPOINT_MAX is not defined for this MCU, default to 8"
432+
#if !defined(TUP_DCD_ENDPOINT_MAX) && defined(CFG_TUD_ENABLED) && CFG_TUD_ENABLED
433+
#warning "TUP_DCD_ENDPOINT_MAX is not defined for this MCU, default to 8"
431434
#define TUP_DCD_ENDPOINT_MAX 8
432435
#endif
433436

tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/common/tusb_verify.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,15 @@
7676
#endif
7777

7878
// Halt CPU (breakpoint) when hitting error, only apply for Cortex M3, M4, M7, M33. M55
79-
#if defined(__ARM_ARCH_7M__) || defined (__ARM_ARCH_7EM__) || defined(__ARM_ARCH_8M_MAIN__) || defined(__ARM_ARCH_8_1M_MAIN__)
79+
#if defined(__ARM_ARCH_7M__) || defined (__ARM_ARCH_7EM__) || defined(__ARM_ARCH_8M_MAIN__) || defined(__ARM_ARCH_8_1M_MAIN__) || \
80+
defined(__ARM7M__) || defined (__ARM7EM__) || defined(__ARM8M_MAINLINE__) || defined(__ARM8EM_MAINLINE__)
8081
#define TU_BREAKPOINT() do \
8182
{ \
8283
volatile uint32_t* ARM_CM_DHCSR = ((volatile uint32_t*) 0xE000EDF0UL); /* Cortex M CoreDebug->DHCSR */ \
8384
if ( (*ARM_CM_DHCSR) & 1UL ) __asm("BKPT #0\n"); /* Only halt mcu if debugger is attached */ \
8485
} while(0)
8586

86-
#elif defined(__riscv)
87+
#elif defined(__riscv) && !TUP_MCU_ESPRESSIF
8788
#define TU_BREAKPOINT() do { __asm("ebreak\n"); } while(0)
8889

8990
#elif defined(_mips)

tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/tusb.h

-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
#include "osal/osal.h"
3939
#include "common/tusb_fifo.h"
4040

41-
#include "class/hid/hid.h"
42-
4341
//------------- TypeC -------------//
4442
#if CFG_TUC_ENABLED
4543
#include "typec/usbc.h"

tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/tusb_option.h

+4
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@
119119
// Espressif
120120
#define OPT_MCU_ESP32S2 900 ///< Espressif ESP32-S2
121121
#define OPT_MCU_ESP32S3 901 ///< Espressif ESP32-S3
122+
#define OPT_MCU_ESP32 902 ///< Espressif ESP32 (for host max3421e)
123+
#define OPT_MCU_ESP32C3 903 ///< Espressif ESP32-C3
124+
#define OPT_MCU_ESP32C6 904 ///< Espressif ESP32-C6
125+
#define TUP_MCU_ESPRESSIF (CFG_TUSB_MCU >= 900 && CFG_TUSB_MCU < 1000) // check if Espressif MCU
122126

123127
// Dialog
124128
#define OPT_MCU_DA1469X 1000 ///< Dialog Semiconductor DA1469x

tools/sdk/esp32s2/include/hal/esp32s2/include/hal/uart_ll.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern "C" {
2525
// Get UART hardware instance with giving uart num
2626
#define UART_LL_GET_HW(num) (((num) == 0) ? (&UART0) : (&UART1))
2727

28-
#define UART_LL_MIN_WAKEUP_THRESH (2)
28+
#define UART_LL_MIN_WAKEUP_THRESH (3)
2929
#define UART_LL_INTR_MASK (0x7ffff) //All interrupt mask
3030

3131
// Define UART interrupts
@@ -559,6 +559,7 @@ FORCE_INLINE_ATTR void uart_ll_set_dtr_active_level(uart_dev_t *hw, int level)
559559
*/
560560
FORCE_INLINE_ATTR void uart_ll_set_wakeup_thrd(uart_dev_t *hw, uint32_t wakeup_thrd)
561561
{
562+
// System would wakeup when the number of positive edges of RxD signal is larger than or equal to (UART_ACTIVE_THRESHOLD+3)
562563
hw->sleep_conf.active_threshold = wakeup_thrd - UART_LL_MIN_WAKEUP_THRESH;
563564
}
564565

0 commit comments

Comments
 (0)