Commit Graph

13487 Commits

Author SHA1 Message Date
wuzhenghui
8e1b8194f5 fix s2 efuse err address in block0 2021-09-16 20:08:59 +08:00
wuzhenghui
61b2c2d458 fix h2 efuse err address in block0 2021-09-16 20:08:59 +08:00
wuzhenghui
352ffbb78d fix c3 efuse err address in block0 2021-09-16 20:08:59 +08:00
Alex Lisitsyn
f40ae9cae9 Merge branch 'bugfix/fix_esp_restart_does_not_reset_timer_groups_periph' into 'master'
driver: fix esp_restart() does not reset timer group peripheral

Closes IDFGH-4652

See merge request espressif/esp-idf!12188
2021-09-16 11:45:42 +00:00
Alex Lisitsyn
c5d0d89508 driver: fix timer driver initialization sequence to not trigger interrupt immediately
add timer_hal_reset_periph()
fix timer_init() to reset timer counter during init
2021-09-16 19:45:33 +08:00
Armando (Dou Yiwen)
b9ea273e78 Merge branch 'feature/suppport_self_icode_calibration_on_s3' into 'master'
adc: support self calibration icode on s3

Closes IDF-3913

See merge request espressif/esp-idf!15195
2021-09-16 11:14:58 +00:00
Ivan Grokhotkov
ca73236f8e Merge branch 'bugfix/vfs_io_disabled_console' into 'master'
Fix console output flushing when CONFIG_VFS_SUPPORT_IO is disabled

Closes IDF-3892

See merge request espressif/esp-idf!15210
2021-09-16 10:27:04 +00:00
Ivan Grokhotkov
3c5e7b89ab spi_flash: extern spi_flash_chip_generic_timeout
spi_flash_generic_timeout is currently defined in the header file,
which makes it a common symbol between translation units where this
header file is included. It is also defined in
spi_flash_chip_generic.c.

Add an explicit `extern` to prevent multiple definition errors.
2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
b5606f5e81 esp_system: make the abort operation compatible with clang
Clang warns that the original code wouldn't have any effect:

    warning: indirection of non-volatile null pointer will be deleted,
             not trap [-Wnull-dereference]
    note: consider using __builtin_trap() or qualifying pointer
          with 'volatile'

__builtin_trap translates to 'break 1, 15' instruction on Xtensa,
which might be okay in this case. However to absolutely certainly not
break anything for GCC builds, add 'volatile' instead.
2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
82f0488f77 argtable: move GCC-specific pragma to cmake/make files
...and only add it when building with GCC.
2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
d0f960a634 newlib: don't use gcc-specific pragmas for clang 2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
1e2b1238c6 cbor: add a workaround for -ffreestanding being passed to clang
Toolchain CMake files for clang currently pass -ffreestanding option
to prevent clang from picking the wrong copy of stdint.h. This is a
temporary hack until we fix clang distributions to not include the
GCC version of stdint.h. This hack, however, results in setting
__STDC_HOSTED__=0, which is being checked by cbor header files,
making some required functions unavailable as a result.
Undefine __STDC_HOSTED__ as a workaround. This flag is only passed
when compiling cbor itself.
2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
81b97b9a6b spi_flash: only add GCC-specific flags when building with GCC 2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
370473b772 spiffs: only add GCC-specific flags when building with GCC 2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
90a87cf5e4 cmake: don't run crosstool-version-check for clang
We will likely need to check clang version as well, eventually.
However at the moment clang builds change too often for such check
to be maintainable. Disable it for clang.
2021-09-16 10:54:27 +02:00
Martin Valik
1f451a4a77 Added more convenient functions for sending data to websocket 2021-09-16 10:53:29 +02:00
Armando
ddd0235783 adc: support adc self-calibration on esp32s3 2021-09-16 15:17:29 +08:00
Ivan Grokhotkov
ccda990ce5 newlib: set errno in the explicitly provided reent structure
Since these functions receive the pointer to reent structure, they
should set errno in it rather than using thread-local errno.

This didn't cause practical issues because console functions in IDF
are only called from threads, and in that case 'r' is a pointer to
the thread-local structure, so &errno is the same thing as
&__errno_r(r). Still, fixing this for consistency.
2021-09-16 09:00:07 +02:00
Ivan Grokhotkov
5da66d1d39 newlib: implement _fstat_r stub for console
When CONFIG_VFS_SUPPORT_IO is disabled, _read_r and _write_r
implementations in syscalls.c are used to provide console I/O via
esp_rom_uart_tx_one_char/esp_rom_uart_rx_one_char.

When newlib opens a (FILE*) stream, it calls fstat to check if the
underlying file is character-oriented. In this case, it configures the
stream to use line buffering. Otherwise (or if fstat fails) the stream
is opened as block buffered.

Since fstat wasn't provided, stdin/stdout/stderr streams got opened in
block buffered mode. For console, we need line buffered output so that
the stream buffer is flushed each time a complete line (ending with
'\n') is sent to stdout or stderr.

Fix by implementing _fstat_r stub, setting st->st_mdoe=S_IFCHR.
2021-09-16 09:00:07 +02:00
Li Shuai
b3e27403f3 esp_hw_support: keep external 40 MHz xtal related analog circuit power on during sleep 2021-09-16 14:46:21 +08:00
Li Shuai
58292a7d22 Power Management: add XTAL power domain to control whether external 40MHz xtal is powered down during sleep 2021-09-16 14:43:43 +08:00
Li Shuai
f5b39a7cde esp_hw_support: No voltage drop during light sleep to ensure stable output clock of rtc8m oscillator 2021-09-16 14:40:46 +08:00
Shivani Tipnis
d8b1c3d44a nvs_tool: Update Readme with supports of multiline strings and comments in the CSV file
Closes https://github.com/espressif/esp-idf/issues/7175
2021-09-16 11:11:19 +05:30
Li Shuai
b59902f4d1 Merge branch 'bugfix/esp32s3_lightsleep_psram_leakage_current' into 'master'
fix SPIRAM leakage when its CS pin has no hardware pullup

See merge request espressif/esp-idf!14730
2021-09-16 04:07:58 +00:00
Aditya Patwardhan
b4e4b9f20d Added support for client session tickets in esp-tls (with mbedtls)
* client session tickets for individual tls connections are supported
* reorganize the esp-tls error codes.
* Update esp_err_to_name.c
* Fix styling
2021-09-15 22:19:04 +05:30
Daniel Bahrdt
7e886ca9ed Implement server session ticket support with mbedtls
Closes https://github.com/espressif/esp-idf/pull/7048

Signed-off-by: Aditya Patwardhan <aditya.patwardhan@espressif.com>
2021-09-15 22:19:04 +05:30
Aditya Patwardhan
c6c2ea975f Fix esp_mbedtls_write API
Fix esp_wolfssl_write API
Closes https://github.com/espressif/esp-idf/issues/7461
2021-09-15 21:40:54 +05:30
wuzhenghui
b2c028085a fix reg name character error 2021-09-15 21:51:20 +08:00
Shu Chen
8f283421da Merge branch 'feature/ot_example_doc' into 'master'
openthread: enrich documentation for openthread examples

See merge request espressif/esp-idf!15156
2021-09-15 13:48:17 +00:00
Ondrej Kosta
61455ddc19 Merge branch 'feature/set_phy_loopback' into 'master'
esp_eth: add PHY loopback control via esp_eth_ioctl

Closes IDF-3865

See merge request espressif/esp-idf!15096
2021-09-15 13:07:21 +00:00
Li Shuai
c5b481c6da light sleep: fix Flash leakage when its CS pin has no hardware pullup 2021-09-15 20:34:18 +08:00
Li Shuai
af4f2075ac light sleep: fix SPIRAM leakage when its CS pin has no hardware pullup 2021-09-15 20:34:18 +08:00
Armando
ea10dacf68 mspi: add octal psram get_cs_io function 2021-09-15 20:34:18 +08:00
chenjianqiang
9b53e18c44 add flash and PSRAM CS IO acquire function 2021-09-15 20:34:17 +08:00
Shu Chen
c09633d41b openthread: enrich documentation for openthread examples 2021-09-15 15:44:07 +08:00
Sudeep Mohanty
7eb75428d5 Merge branch 'feature/freertos-upgrade-to-10.4.3-FreeRTOSConfig.h-location-update' into 'master'
freertos: updated the location of FreeRTOSConfig.h

Closes IDF-3721

See merge request espressif/esp-idf!15119
2021-09-15 07:11:12 +00:00
boarchuz
cda459672a fix bootloader build with rom flash driver
Closes https://github.com/espressif/esp-idf/pull/7508
Closes https://github.com/espressif/esp-idf/issues/6849
2021-09-15 14:51:35 +08:00
David Čermák
29fac4faa0 Merge branch 'bugfix/tcp_transport_null_deref' into 'master'
tcp_transport: Fix NULL pointer deference in esp_tls_create (GitHub PR)

Closes IDFGH-5834

See merge request espressif/esp-idf!15125
2021-09-15 06:06:17 +00:00
baohongde
eb176c3453 Fix bt init error with psram 2021-09-15 10:57:45 +08:00
baohongde
05768e9878 components/bt: Combine 3 Bluetooth controller menu 2021-09-15 10:57:37 +08:00
Shu Chen
6704f4c92f Merge branch 'add_openthread_srp_client_option' into 'master'
openthread : update openthread submodule

See merge request espressif/esp-idf!15161
2021-09-14 14:39:51 +00:00
morris
9e50eafcec Merge branch 'bugfix/cbor_build_sys_cleanup' into 'master'
cbor: build system cleanup

See merge request espressif/esp-idf!15190
2021-09-14 13:01:48 +00:00
Zim Kalinowski
1ab631449f Merge branch 'bugfix/fix-invalid-task-exit-critical' into 'master'
fixed invalid taskEXIT_CRITICAL

See merge request espressif/esp-idf!15191
2021-09-14 12:02:10 +00:00
Mahavir Jain
ae7030ccd0 esp_log: add note about reentrancy for custom logging function 2021-09-14 16:57:15 +05:30
xiaqilin
988ec8be56 ieee802154: add zigbee pending mode and config coordinator function 2021-09-14 19:19:30 +08:00
WangQixiang
c5a52c605f openthread: update openthread submodule
openthread: add srp client enable option for openthread component

ieee802154: set ieee802154 default PTI to 6
2021-09-14 17:13:19 +08:00
Anton Maklakov
c94b913ced Merge branch 'bugfix/esp32s3_chip_id' into 'master'
esp_hw_support: update esp32s3 chip ID to the MP version

See merge request espressif/esp-idf!15183
2021-09-14 09:09:38 +00:00
Armando (Dou Yiwen)
13b63cd9d2 Merge branch 'feature/support_adc_calibration_s3' into 'master'
adc: support adc calibration on s3

Closes IDF-1950, IDF-3730, and IDF-3036

See merge request espressif/esp-idf!15031
2021-09-14 08:51:03 +00:00
Kevin (Lao Kaiyao)
a287f34f88 Merge branch 'bugfix/i2s_apll_fixed_clock' into 'master'
i2s: fix apll bug introduced in 'refactor/i2s_driver'

Closes IDFGH-5824

See merge request espressif/esp-idf!15109
2021-09-14 08:31:12 +00:00
Ondrej Kosta
76326e8268 esp_eth: add PHY loopback control via esp_eth_ioctl
Fixed esp_eth_ioctl command's data argument non-standard handling
2021-09-14 09:13:54 +02:00
Zim Kalinowski
da65a010a3 fixed invalid taskEXIT_CRITICAL 2021-09-14 15:03:46 +08:00
morris
502e132e5d Merge branch 'feature/fast_gpio_c3' into 'master'
fast gpio support on esp32-c3

Closes IDF-3783

See merge request espressif/esp-idf!14986
2021-09-14 06:09:34 +00:00
Song Ruo Jing
10b848327b Merge branch 'feature/usb_phy' into 'master'
usb: Add usb_phy driver to support operations on USB PHY

Closes IDF-3574 and IDF-1882

See merge request espressif/esp-idf!14879
2021-09-14 06:06:06 +00:00
Mahavir Jain
8e720db65a cbor: build system cleanup
Some of the special CFLAGS required for masking warnings are no more
required with updated tinycbor release.
2021-09-14 09:45:43 +05:30
Armando
9aae92fd16 adc: add a ut for calibration speed 2021-09-14 11:42:50 +08:00
Armando
c45c6f52f1 adc: support adc efuse-based calibration on esp32s3 2021-09-14 11:42:50 +08:00
Sudeep Mohanty
0912df611f freertos: updated the location of FreeRTOSConfig.h
Moved FreeRTOSConfig.h from include/freertos to include/esp_additions/freertos.
Updated FreeRTOS.h file to include FreeRTOSConfig.h without the
freertos/ prefix to match with the upstream file.
Renamed architecture specific FreeRTOSConfig.h files to FreeRTOSConfig_arch.h

Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2021-09-14 08:46:01 +05:30
Ivan Grokhotkov
e21e5aac64 esp_hw_support: update esp32s3 chip ID to the MP version
- Update 7.2.5 chip ID (4) to 7.2.8 chip ID (9).
- Remove TODO in espcoredump regarding this mismatch.
2021-09-13 15:16:45 +02:00
Ivan Grokhotkov
c54caa457e Merge branch 'feature/espcoredump_4_esp32s3' into 'master'
Add Esp32s3 support to the coredump component.

See merge request espressif/esp-idf!15097
2021-09-13 12:37:12 +00:00
Kapil Gupta
25585202f5 Merge branch 'bugfix/eap_client_iot_issues' into 'master'
ESP_WiFi: Fix some wpa enterprise issue

Closes https://github.com/espressif/esp-idf/issues/7384
Closes https://github.com/espressif/esp-idf/issues/7465

See merge request espressif/esp-idf!15116
2021-09-13 12:13:19 +00:00
Li Shuai
e44ead5356 Power Management: add RTC8M power domain to control whether internal 8m oscillator is powered down during sleep 2021-09-13 17:36:54 +08:00
dmitry
5d859f1404 Add Esp32s3 to the coredump component.
Add changed expected_output for esp32, esp32s2 and esp32c3. coredump tag update.
2021-09-13 05:20:34 -04:00
Zim Kalinowski
028ff956b2 Merge branch 'docs/core_components_description' into 'master'
docs: core components description

Closes IDF-2833

See merge request espressif/esp-idf!12978
2021-09-13 09:19:27 +00:00
Kapil Gupta
393a9d5a94 wpa_supplicant: Update internal tls client with sha384/sha512 support
Add support for validating certificates with SHA384 and SHA512 hashes.
2021-09-13 14:11:55 +05:30
Kapil Gupta
6647f48dda esp_wifi: Fix interoperability issue with windows 2008 2021-09-13 14:11:37 +05:30
baohongde
6fc4bf7145 components/bt: Fix link error of Kconfig 2021-09-13 15:45:27 +08:00
David Čermák
9f957cbfe2 Merge branch 'bugfix/memprot_panic_print_const_correction' into 'master'
panic: Fix minor const string correction on meprot panic print

See merge request espressif/esp-idf!14851
2021-09-13 06:13:33 +00:00
songruojing
1fcd639224 usb: Add usb_phy driver to support operations on USB PHY 2021-09-13 12:39:56 +08:00
Renz Bagaporo
bb5544b8a4 docs: core components description 2021-09-13 12:05:20 +08:00
Zim Kalinowski
fa56351261 Merge branch 'feature/freertos-upgrade-to-10.4.3-extras' into 'master'
freertos: upgrade to 10.4.3 -- extras from SMP base

See merge request espressif/esp-idf!15144
2021-09-13 03:44:18 +00:00
morris
9d97d01679 Merge branch 'bugfix/mcpwm_cpp_reserved_word' into 'master'
bugfix/mcpwm: rename invalid keyword 'operator'

Closes IDFGH-5840

See merge request espressif/esp-idf!15159
2021-09-13 03:10:04 +00:00
Ivan Grokhotkov
f94035ad85 spi_flash: state that esp_partition_iterator_release allows NULL arg
The implementation allows passing the NULL argument, and the function
is used in the examples accordingly. Fix the discrepancy in the
doxygen comment.

Closes https://github.com/espressif/esp-idf/issues/7545
2021-09-10 20:55:01 +02:00
Andrei Safronov
9159aa58d3 tests: refactoring of the gcc's inner functions, because clang doesn't support them 2021-09-10 19:51:27 +03:00
Zim Kalinowski
59f6087b55 Merge branch 'feature/freertos-upgrade-to-10.4.3-reconcile-traces' into 'master'
freertos: upgrade to 10.4.3 - reconcile traces

See merge request espressif/esp-idf!15104
2021-09-10 10:18:20 +00:00
Bao Hong De
7fc071e133 Merge branch 'feature/high_level_interrupt_in_bluetooth' into 'master'
Bluetooth: High level interrupt in bluetooth

See merge request espressif/esp-idf!11156
2021-09-10 09:50:39 +00:00
SalimTerryLi
d9f4ae02f1
mcpwm: rename keyword 'operator' which is not valid in cpp
Closes https://github.com/espressif/esp-idf/issues/7542
2021-09-10 12:41:42 +08:00
morris
25f723765e Merge branch 'feature/lcd_driver_follow_up' into 'master'
lcd: add PM lock

Closes IDF-3631, IDF-3704, and IDF-3317

See merge request espressif/esp-idf!14880
2021-09-10 03:14:50 +00:00
Zim Kalinowski
1041288402 Merge branch 'feature/freertos-upgrade-to-10.4.3-added-vapplication-prototypes' into 'master'
freertos: upgrade to 10.4.3 - added vapplication... prototypes to tasks.h

See merge request espressif/esp-idf!15102
2021-09-10 03:07:11 +00:00
Wei Tian Hua
5c9502427a Merge branch 'component_bt/fix_hid_unit_test' into 'master'
Component_bt/Fix esp_hid unit test failure

See merge request espressif/esp-idf!15151
2021-09-10 02:56:50 +00:00
Zim Kalinowski
f3b3c1697c added vApplication... prototypes to tasks.h 2021-09-10 09:37:01 +08:00
morris
691780ffa6 Merge branch 'feature/mcpwm_timer_sync' into 'master'
mcpwm: add driver option to sync with internal signals

Closes IDFGH-3469

See merge request espressif/esp-idf!9259
2021-09-09 19:05:10 +00:00
baohongde
006a10b050 components/doc: Update doc about high-level interrupt
some bugfix.
2021-09-09 20:40:09 +08:00
Zim Kalinowski
917391f59f Merge branch 'feature/freertos-upgrade-to-10.4.3-move-esp-header-from-FreeRTOS.h' into 'master'
freertos: move esp_compiler.h include from FreeRTOS.h

Closes IDF-3720

See merge request espressif/esp-idf!15103
2021-09-09 10:02:07 +00:00
Zim Kalinowski
a1c85515f6 Merge branch 'bugfix/bootloader_size_log' into 'master'
check_sizes.py: Fix bootloader size message in build log

Closes IDFGH-5798

See merge request espressif/esp-idf!15047
2021-09-09 09:58:43 +00:00
David Cermak
0ee4c235eb panic/memprot: Fix minor const string correction on panic print 2021-09-09 11:46:21 +02:00
SalimTerryLi
932d4d13f0
MCPWM/sync: expose API for configuring timer sync
removed example: mcpwm_basic_config

Closes https://github.com/espressif/esp-idf/issues/5429

Co-authored-by: wubowen <wubowen@espressif.com>
2021-09-09 17:33:37 +08:00
liqigan
97e2465439 fix unit test failure for report_len in Boot Protocol 2021-09-09 17:32:22 +08:00
Yuan Jian Min
8fd591390a Merge branch 'bugfix/fix_cplusplus_miss_in_dhcp' into 'master'
dhcpserver: support cplusplus

Closes IDFGH-5786 and IDFGH-5821

See merge request espressif/esp-idf!15018
2021-09-09 06:11:56 +00:00
morris
54abf1d0b9 Merge branch 'ci/esp_eth_new_runners' into 'master'
feature/ci/esp_eth: new app_test and runner

Closes IDF-3561 and IDFGH-1736

See merge request espressif/esp-idf!14392
2021-09-09 04:16:08 +00:00
Zim Kalinowski
5f522cd6f3 freertos: upgrade to 10.4.3 -- extras 2021-09-09 11:54:47 +08:00
Shu Chen
e1ff05fe4d Merge branch 'feature/esp32h2_phy_refactor' into 'master'
esp_phy: support phy init on esp32h2 chip

See merge request espressif/esp-idf!14983
2021-09-09 03:33:45 +00:00
baohongde
57eeb4d953 components/driver: support static allocation of FreeRTOS queues used by ISR routine 2021-09-09 11:29:19 +08:00
baohongde
e2fb413329 components/bt: add config option to choose Bluetooth intterupt level. 2021-09-09 11:29:17 +08:00
baohongde
6d63fe06fa components/os: add config option to choose system check intterupt level. 2021-09-09 11:29:12 +08:00
baohongde
8a4696d25a components/os: Fix live lock int bt isr using ocd multicore debug
components/os: Fix live lock in bt isr immediately
2021-09-09 11:29:08 +08:00
baohongde
d1db2df316 components/bt: High level interrupt in bluetooth
components/os: Move ETS_T1_WDT_INUM, ETS_CACHEERR_INUM and ETS_DPORT_INUM to l5 interrupt

components/os: high level interrupt(5)

components/os: hli_api: meta queue: fix out of bounds access, check for overflow

components/os: hli: don't spill registers, instead save them to a separate region

Level 4 interrupt has a chance of preempting a window overflow or underflow exception.
Therefore it is not possible to use standard context save functions,
as the SP on entry to Level 4 interrupt may be invalid (e.g. in WindowUnderflow4).

Instead, mask window overflows and save the entire general purpose register file,
plus some of the special registers.
Then clear WindowStart, allowing the C handler to execute without spilling the old windows.
On exit from the interrupt handler, do everything in reverse.

components/bt: using high level interrupt in lc

components/os: Add DRAM_ATTR to avoid feature `Allow .bss segment placed in external memory`

components/bt: optimize code structure

components/os: Modify the BT assert process to adapt to coredump and HLI

components/os: Disable exception mode after saving special registers

To store some registers first, avoid stuck due to live lock after disabling exception mode

components/os: using dport instead of AHB in BT to fix live lock

components/bt: Fix hli queue send error

components/bt: Fix CI fail

# Conflicts:
#	components/bt/CMakeLists.txt
#	components/bt/component.mk
#	components/bt/controller/bt.c
#	components/bt/controller/lib
#	components/esp_common/src/int_wdt.c
#	components/esp_system/port/soc/esp32/dport_panic_highint_hdl.S
#	components/soc/esp32/include/soc/soc.h
2021-09-09 11:29:06 +08:00
laokaiyao
dfbe76e988 i2s: fix return value when failed to register i2s 2021-09-09 10:33:15 +08:00
laokaiyao
b3193e233c i2s: fix apll bugs introduced in 'refactor/i2s_driver'
Closes https://github.com/espressif/esp-idf/issues/7529
2021-09-09 10:23:52 +08:00
David Čermák
39b7d3e13f Merge branch 'bugfix/eth_dm9051_not_responding' into 'master'
esp_eth: Fix dm9051 Rx interrupt processing

Closes IDFGH-4598

See merge request espressif/esp-idf!15073
2021-09-08 14:25:27 +00:00
zhangwenxu
8f76a98c1b esp_phy: support phy init on esp32h2 chip 2021-09-08 21:20:37 +08:00
SalimTerryLi
14a6ab4a8e
esp_eth: new test_app: emac layer tests 2021-09-08 20:00:14 +08:00
Wang Meng Yang
80c3aaab7c Merge branch 'feature/add_bt_hid_host_support_dev' into 'master'
Feature/add bt hid host btc layer

Closes IDFGH-3329, IDFGH-1104, IDFGH-3724, IDFGH-4383, and IDFGH-5428

See merge request espressif/esp-idf!12016
2021-09-08 11:54:19 +00:00
Mahavir Jain
66b26abc87 Merge branch 'bugfix/http_client_eagain' into 'master'
esp_http_client: Fixed handling of EAGAIN return

See merge request espressif/esp-idf!14610
2021-09-08 08:17:09 +00:00
yuanjm
f2d32d5c0a dhcpserver: support cplusplus
Closes https://github.com/espressif/esp-idf/issues/7494

Merges https://github.com/espressif/esp-idf/pull/7526
2021-09-08 15:52:12 +08:00
liqigan
2078dfe293 1. update esp_hid component to use esp HID API
2. add esp_hidh_config_t::callback_arg
2021-09-08 14:08:34 +08:00
Wang Meng Yang
a885c42cda Merge branch 'example/controller_hci_uart_for_esp32s3' into 'master'
examples: added support of ESP32-S3 chip in controller_hci_uart example

Closes BT-1906

See merge request espressif/esp-idf!14935
2021-09-08 06:02:18 +00:00
Cao Sen Miao
e85e9dc824 Merge branch 'feature/esp_flash_octal_api_support_xmic' into 'master'
esp_flash: Add new octal flash chip support in new chip driver (for MXIC)

Closes IDF-2859

See merge request espressif/esp-idf!14185
2021-09-08 03:59:34 +00:00
morris
7dc9c7aa05 lcd: allow execlusive use of i80 bus 2021-09-08 11:34:46 +08:00
morris
02e470bc50 lcd: add pm lock 2021-09-08 11:34:46 +08:00
morris
a6661bdf90 lcd: spi-lcd send command and parameter with big-endian 2021-09-08 11:30:30 +08:00
Axel Lin
9d07e89f13 tcp_transport: Fix NULL pointer dereference in esp_transport_esp_tls_create
Add missing NULL checking to prevent NULL pointer dereference if calloc failed.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
2021-09-08 11:04:08 +08:00
David Čermák
25e14bd8d9 Merge branch 'feature/esp_netif_ppp_params' into 'master'
Examples: Add esp_modem example to experimental cxx components

Closes IDF-1923, IDFGH-217, IDFGH-2608, IDFGH-4838, IDFGH-1229, IDFGH-3848, and IDFGH-3809

See merge request espressif/esp-idf!13161
2021-09-07 18:16:13 +00:00
morris
fbc81c3d44 Merge branch 'bugfix/force_u32_macro_cpp_typeof' into 'master'
HAL: Fix Force U32 macros for C++ typeof()

Closes IDF-3862

See merge request espressif/esp-idf!15066
2021-09-07 16:08:44 +00:00
David Cermak
676cd99c42 esp_eth: Fix dm9051 Rx interrupt processing
* Disable Tx interrupts to fix race condition of missing Rx interrupt
* Check if GPIO interrupt is asserted periodically if the ISR event missed

Closes https://github.com/espressif/esp-idf/issues/6414
2021-09-07 16:38:43 +02:00
Mahavir Jain
d504ca614c Merge branch 'feature/clock_glitch_enable' into 'master'
bootloader: Enable clock glitch detection

Closes IDF-2453, IDF-1720, IDFGH-5721, and IDFGH-5327

See merge request espressif/esp-idf!14868
2021-09-07 11:38:18 +00:00
Vikram Dattu
1c57dbcb3c esp_http_client: Fixed handling of EAGAIN return
For https connection `ESP_TLS_ERR_SSL_WANT_READ` of esp_transport_read was getting treated as error.
Treated this as a timeout to fix connection abort issue!

Also handled http connection EAGAIN with `errno == EAGAIN` check.

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2021-09-07 14:33:49 +05:30
liqigan
1c15c9207c 1. transparent HID device
2. add esp API for HID
3. add PM config for HID
4. add HID device demo

Closes https://github.com/espressif/esp-idf/issues/5311
Closes https://github.com/espressif/esp-idf/issues/5635
Merges https://github.com/espressif/esp-idf/pull/3425
2021-09-07 16:59:30 +08:00
liqigan
9049974d6b fix deep copy bugs for esp_hid component
Closes https://github.com/espressif/esp-idf/issues/6217
Closes https://github.com/espressif/esp-idf/issues/7169
2021-09-07 16:58:19 +08:00
Zim Kalinowski
538911e9ee reconcile traces 2021-09-07 15:57:50 +08:00
Sudeep Mohanty
3b40d77584 freertos: move esp_compiler.h include from FreeRTOS.h
Moved the inclusion of esp_compiler.h from FreeRTOS.h to
the app specific FreeRTOSConfig.h where the unlikely()
macro is used. This change is in alignment with the upstream
FreeRTOS.h file.

Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2021-09-07 13:12:04 +05:30
David Cermak
825bbb08e3 esp_netif: Added argument checks for PPP public API 2021-09-07 09:03:15 +02:00
David Cermak
2f6c60573e esp_netif: Extend PPP netif API to control connection failure 2021-09-07 09:03:15 +02:00
David Cermak
213727c4f2 lwip: IPv6: Add support for DHCPv6 stateless config
Closes https://github.com/espressif/esp-idf/issues/5245
2021-09-07 14:48:21 +08:00
Cao Sen Miao
6c0aebe279 esp_flash: add opi flash support in esp_flash chip driver, for MXIC 2021-09-07 14:44:40 +08:00
Sudeep Mohanty
1a19014d3d Merge branch 'feature/move-esp-macros-from-freetos-upstream-files' into 'master'
freertos: remove xSemaphoreAltTake/Give macros from semphr.h

Closes IDF-3814

See merge request espressif/esp-idf!15088
2021-09-07 04:45:18 +00:00
Zim Kalinowski
092b903320 Merge branch 'feature/freertos-upgrade-to-10.4.3-missing-layout-changes' into 'master'
freertos: upgrade to 10.4.3 - missing code layout changes

See merge request espressif/esp-idf!15098
2021-09-07 04:07:26 +00:00
Mahavir Jain
0c027cf4d2 Merge branch 'feature/hmac_downstream_jtag' into 'master'
hmac: Added Downstream JTAG enable mode for esp32c3 and esp32s3

Closes IDF-3664

See merge request espressif/esp-idf!15034
2021-09-07 03:34:22 +00:00
Marius Vikhammer
3c9f94d739 Merge branch 'feature/publish_s3_docs' into 'master'
docs: enable publishing of S3 docs

Closes IDF-3385 and IDF-3285

See merge request espressif/esp-idf!15074
2021-09-07 03:30:36 +00:00
Darian Leung
14fe6dcaaf HAL: Fix Force U32 macros for C++ typeof()
When using the Force U32 macros in C++, the peripheral structs will not
have copy constructors due to them being volatile. Thus, doing temp_reg = reg
via typeof() will not work and cause a "ambiguous overload of operator=" error.

This commit fixes the macros by reading the reg into a uint32_t value first.
2021-09-07 11:23:06 +08:00
Zim Kalinowski
8f06bf6e44 freertos: upgrade to 10.4.3 - missing code layout changes
(cherry picked from commit 46477d85bb43aafac688747ad0c4090030410e3a)
2021-09-07 10:31:26 +08:00
Shu Chen
1e0219f16f Merge branch 'feature/add_openthread_iperf' into 'master'
openthread: add iperf example for ot-network test

See merge request espressif/esp-idf!14635
2021-09-07 02:07:44 +00:00
morris
6cec256a34 fast_gpio: driver support on esp32c3 2021-09-06 19:39:09 +08:00
Sudeep Mohanty
46d54990d8 freertos: remove xSemaphoreAltTake/Give macros from upstream files
xSemaphoreAltTake and xSemaphoreAltGive are Espressif defined macros and
are not being used. The respective definitions, xQueueAltGenericReceive
and xQueueAltGenericSend are also not part of current FreeRTOS source
(v10.4.3). Hence, removed xSemaphoreAltTake and xSemaphoreAltGive
definitions to align with upstream code.

Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2021-09-06 15:55:23 +05:30
Mahavir Jain
bc3c9d27f6 Merge branch 'feature/esp-mqtt_esp32s3_support' into 'master'
ESP32S3 support for ESP-MQTT SSL Mutual Authentication with Digital Signature

Closes IDF-3859

See merge request espressif/esp-idf!15065
2021-09-06 09:52:29 +00:00
Guo Jia Cheng
8d51f554db Merge branch 'feature/otbr-discovery-delegate' into 'master'
openthread: support discovery delegate in border router

See merge request espressif/esp-idf!15041
2021-09-06 09:29:09 +00:00
zhangwenxu
2be77287b3 openthread: add iperf example for ot-network test 2021-09-06 15:32:38 +08:00
Zim Kalinowski
ef75b5a188 Merge branch 'feature/zim-freertos-upgrade-missing-files-etc' into 'master'
freertos: upgrade to 10.4.3 - missing files from upstream

See merge request espressif/esp-idf!15061
2021-09-06 06:40:04 +00:00
Zim Kalinowski
3f2f6d0cf5 freertos: upgrade to 10.4.3 - missing files from upstream 2021-09-06 14:39:48 +08:00
Zim Kalinowski
cbb087ae9c Merge branch 'zim-marking-vtasksuspendall' into 'master'
freertos: clearly marking vTaskSuspendAll and a few other small cleanups

See merge request espressif/esp-idf!15048
2021-09-06 06:01:28 +00:00
Sachin Parekh
0e6b03f343 esp32s2/hmac: Release HMAC lock in downstream mode incase of failure 2021-09-06 11:21:39 +05:30
Sachin Billore
667017d517 ESP32S3 support for ESP-MQTT SSL Mutual Authentication with Digital Signature
Closes IDF-3859
2021-09-06 11:17:30 +05:30
Sachin Parekh
fd5a7df404 esp32h2: Replicated HMAC JTAG downstream enable mode implementation 2021-09-06 11:06:50 +05:30
Sachin Parekh
fa2707f1f3 hmac: Added Downstream JTAG enable mode for esp32c3 and esp32s3
If JTAG is disabled temporarily by burning SOFT_DIS_JTAG, it can be
re-enabled temporarily through esp_hmac_jtag_enable API
2021-09-06 11:06:50 +05:30
Zim Kalinowski
17140be432 Merge branch 'zim-indexed-notifications-from-older-base' into 'master'
freertos: upgrade - indexed notifications

See merge request espressif/esp-idf!14910
2021-09-06 04:46:23 +00:00
Zim Kalinowski
61ac7c3368 freertos: upgrade - indexed notifications 2021-09-06 12:46:14 +08:00
Jiang Jiang Jian
316988bd2d Merge branch 'feature/support_esp32s3_cpu_tagmem_retention' into 'master'
support esp32s3 cpu + tagmem retention

See merge request espressif/esp-idf!14579
2021-09-06 03:47:44 +00:00
Kevin (Lao Kaiyao)
2991eea97d Merge branch 'refactor/i2s_driver' into 'master'
driver/i2s: bugfix and refactor for i2s

Closes IDF-3656 and IDF-3738

See merge request espressif/esp-idf!14704
2021-09-06 02:07:40 +00:00
Marius Vikhammer
1cf61c849f docs: enable publishing of S3 docs 2021-09-06 09:11:17 +08:00
Cao Sen Miao
559c1ac3f9 esp_flash: add support mxic as a main flash under spi mode 2021-09-05 00:33:28 +08:00
boarchuz
ec70bc0523 fix compiler warning with silent panic option 2021-09-04 14:46:26 +10:00
Jiacheng Guo
51372704bf openthread: support discovery delegate in border router 2021-09-03 19:07:59 +08:00
laokaiyao
c5afd7ce34 i2s: fix write failure on ESP32 in 32bit slave mode 2021-09-03 17:36:44 +08:00
Sachin Billore
81391fb18c Merge branch 'feature/esp_ds_s3' into 'master'
[esp_hw_support]: Digital Signature support for S3

Closes IDF-1791

See merge request espressif/esp-idf!14955
2021-09-03 07:57:26 +00:00
Wei Tian Hua
00dfe84c58 Merge branch 'bugfix/hf_disc_acl_no_disc' into 'master'
bugfix/acl can't disconnect when hfp_client disconnect

See merge request espressif/esp-idf!12819
2021-09-03 06:01:50 +00:00
Mahavir Jain
bce9d7c0d1 Merge branch 'feature/esp_system_common_ld_settings' into 'master'
esp_system: create ld template to abstract few common settings

Closes IDF-3624

See merge request espressif/esp-idf!14700
2021-09-03 04:24:16 +00:00
Shu Chen
0f00a17e17 Merge branch 'featue/enable_openthread_ping_sender_module' into 'master'
openthread: enable ping sender module

See merge request espressif/esp-idf!14984
2021-09-03 02:34:26 +00:00
Wang Meng Yang
e09818bd33 Merge branch 'bugfix/btdm_fix_some_Document_Description_Error' into 'master'
component/bt: fix some ble document description error

See merge request espressif/esp-idf!14816
2021-09-03 01:40:15 +00:00
Darian
c8aab00fdb Merge branch 'feature/usb_host_docs' into 'master'
Add USB Host Library API docs

See merge request espressif/esp-idf!15013
2021-09-02 14:05:08 +00:00
Martin Vychodil
3d29b01a02 Merge branch 'bugfix/fix_SD_card_tests_timeout' into 'master'
vfs/fatfs: fix failed tests by increasing timeout

See merge request espressif/esp-idf!14905
2021-09-02 12:16:15 +00:00
Darian Leung
963836f491 Add USB Host Library API docs
- This commit adds the API documentation for the USB Host Library.
- Warnings about the beta API are also added.
- usb_host_misc.h renamed to usb_helpers.h
2021-09-02 18:40:24 +08:00
Zim Kalinowski
b7dbd3ffc1 Merge branch 'zim-xtaskdelayuntil-and-a-few-minor' into 'master'
freertos: upgrade to 10.4.3 - xTaskDelayUntil change and a few minor changes

See merge request espressif/esp-idf!15011
2021-09-02 10:01:16 +00:00
Zim Kalinowski
704a092550 freertos: upgrade to 10.4.3 - xTaskDelayUntil change and a few minor changes 2021-09-02 18:01:08 +08:00
Mahavir Jain
e0d29d4ada esp_system: create ld template to abstract few common settings
PMS aware chips require prefetch padding size for instruction fetch, or
some memory alignment considerations. These settings are now exposed
through kconfig options (hidden) and used through common ld template.
This shall help to add and manage future chips support easily for
these considerations.

Closes IDF-3624
2021-09-02 16:13:17 +08:00
Zim Kalinowski
07bd686471 marking vTaskSuspendAll and a few other small cleanups
(cherry picked from commit dc61510249fe441189ea1ca557deb9f003bbd374)
2021-09-02 15:20:19 +08:00
Sachin Parekh
bf1dde7233 bootloader: Enable clock glitch detection
Reset the device when clock glitch detected. Clock glitch detection is
only active in bootloader
2021-09-02 12:25:12 +05:30
Yuriy Shestakov
87b958c814 Fixed GLITCH_RTC_RST for esp32-c3 revision 3
* Issue: https://github.com/espressif/esp-idf/issues/7082

Signed-off-by: Yuriy Shestakov <yshestakov@gmail.com>

Closes https://github.com/espressif/esp-idf/issues/7082
Closes https://github.com/espressif/esp-idf/pull/7441
2021-09-02 12:25:12 +05:30
laokaiyao
0ff3dd9778 i2s: fix mono support issue 2021-09-02 14:33:36 +08:00
laokaiyao
b26da6f115 driver/i2s: refactor for i2s driver layer 2021-09-02 14:33:36 +08:00
Sachin Billore
f80d6f8c21 Digital Signature support for S3
Closes IDF-1791
2021-09-02 11:59:24 +05:30
boarchuz
c098dce1e5 check_sizes.py: Fix bootloader size message in build log
Closes https://github.com/espressif/esp-idf/pull/7506
2021-09-02 10:28:34 +05:00
Zim Kalinowski
701c4fb2e3 upgrade freertos version and history 2021-09-02 11:02:34 +08:00
Marius Vikhammer
88e7b5f7be Merge branch 'feature/s3_cache_bringup' into 'master'
soc: S3 cache bringup

Closes IDF-2952

See merge request espressif/esp-idf!12887
2021-09-02 02:51:10 +00:00
Marius Vikhammer
bdf3a8ff29 Merge branch 'feature/xtwdt' into 'master'
WDT: Add support for XTAL32K Watchdog timer

Closes IDF-2575

See merge request espressif/esp-idf!15000
2021-09-02 02:44:47 +00:00
Kevin (Lao Kaiyao)
61299f879e Merge branch 'bugfix/iperf_tcp_performance_become_bad' into 'master'
emac: optimise performance regression introduced in hal refactor

Closes IDF-3527 and IDFCI-795

See merge request espressif/esp-idf!14282
2021-09-02 02:36:20 +00:00
Omar Chebib
19e0663edd Merge branch 'bugfix/task_snapshot_kconfig' into 'master'
freertos: add kconfig options for task snapshot functions

See merge request espressif/esp-idf!14871
2021-09-02 02:27:12 +00:00
Marius Vikhammer
4869b3cd4a WDT: Add support for XTAL32K Watchdog timer 2021-09-02 09:09:00 +08:00
wanglei
c3abbe3866 cache: Update cache.h and autoload api 2021-09-02 02:27:40 +08:00
gaoxiaojie
191a494e08 support dcache 64Byte and 16k 2021-09-02 02:27:40 +08:00
jiangguangming
f7137254e9 flash_mmap: register flash2spiram info to ROM 2021-09-02 02:27:40 +08:00
Mahavir Jain
e93cee4605 Merge branch 'bugfix/encrypted-flash-dependency' into 'master'
Missing dependency for idf.py 'encrypted-flash' target

Closes IDFGH-5766

See merge request espressif/esp-idf!15036
2021-09-01 15:02:17 +00:00
XieWenxiang
461f2bd186 component/bt: fix some ble document description error 2021-09-01 20:39:13 +08:00
laokaiyao
04970fe487 iperfUtility: add udp rx bandwidth scan 2021-09-01 19:11:28 +08:00
laokaiyao
8d18a9c614 emac: optimise iperf performane 2021-09-01 19:11:28 +08:00
Li Hang Fan
b1f851b8f8 Merge branch 'refactor/remove_usage_of_logging_in_hal' into 'master'
hal: remove usages of esp_log in HAL

Closes IDF-2159

See merge request espressif/esp-idf!15017
2021-09-01 10:53:38 +00:00
morris
8f3dadf46a Merge branch 'refactor/rom_tjpgd_unify' into 'master'
refactor/rom: unify tjpgd library

Closes IDF-3615

See merge request espressif/esp-idf!14977
2021-09-01 10:05:11 +00:00
Omar Chebib
92cf321677 freertos: add kconfig options for task snapshot functions
Task snapshots is required by other modules that don't use gdbstub
or core dump. Add a Kconfig option to manage these possibilities.
2021-09-01 15:13:48 +08:00
SalimTerryLi
23e23b697c
rom/tjpgd: unify library & add rom patch
remove external tjpgd library inside example

enable tjpgd decoding on all chips
2021-09-01 14:42:17 +08:00
SalimTerryLi
6af8d2edee
hal: remove usages of esp_log in HAL 2021-09-01 13:58:47 +08:00
Armando (Dou Yiwen)
5f38b766a8 Merge branch 'feature/support_120mhz_quad_psram_quad_flash' into 'master'
mspi: support 120MHz clock freq on QSPI flash/psram on ESP32-S3

Closes IDF-3711

See merge request espressif/esp-idf!14849
2021-09-01 02:46:05 +00:00
Kapil Gupta
e8360fe075 Merge branch 'bugfix/eap_client_windows' into 'master'
wpa_supplicant: clean tls client state machine

Closes IDFGH-5702, IDFGH-5662, and IDFGH-119

Closes https://github.com/espressif/esp-idf/issues/7422
Closes https://github.com/espressif/esp-idf/issues/1297

See merge request espressif/esp-idf!14968
2021-08-31 19:06:35 +00:00
Armando
a3dc625da6 mspi: support 120MHz Quad Flash and PSRAM on ESP32S3 2021-08-31 16:06:44 +08:00
Mahavir Jain
b9ce1ed06d Merge branch 'feature/update_libcoap_to_v4_3_0' into 'master'
libcoap_430: Update code for use with libcoap 4.3.0

Closes IDFGH-5355

See merge request espressif/esp-idf!13937
2021-08-31 06:57:26 +00:00
Mahavir Jain
148794f208 Merge branch 'bugfix/fix_ws_handle_big_messages' into 'master'
esp_http_server: Fix ws server handle length over 1440(MTU) messages incorrectly.

Closes IDFGH-5740

See merge request espressif/esp-idf!14978
2021-08-31 05:24:52 +00:00
Marius Vikhammer
ba3b34583a Merge branch 'bugfix/himem_error_checks' into 'master'
himem: reverse error check logic in himem

Closes IDFCI-857 and IDFCI-859

See merge request espressif/esp-idf!15009
2021-08-31 04:05:45 +00:00
Jon Shallow
ed3d440428 libcoap_430: Update code for use with libcoap 4.3.0
Remove no longer needed code from coap_server/coap_client.

Add in multicast support for coap_server/coap_client.

Update libcoap logging to use esp-idf logging

Signed-off-by: Harshit Malpani <harshit.malpani@espressif.com>
2021-08-31 12:05:30 +08:00
Zim Kalinowski
268eace13a Merge branch 'zim-some-esp-platform-markers' into 'master'
freertos: several ESP specific things clearly marked

See merge request espressif/esp-idf!14995
2021-08-31 02:33:00 +00:00
Zim Kalinowski
4bad316700 freertos: several ESP specific things clearly marked 2021-08-31 10:32:54 +08:00
Michael (XIAO Xufeng)
f1cbf746b7 Merge branch 'bugfix/crypto_gdma' into 'master'
aes/sha: fixed driver reseting the wrong GDMA channel

Closes FCS-701

See merge request espressif/esp-idf!14989
2021-08-31 01:36:45 +00:00
Marius Vikhammer
2e0cab6f94 himem: reverse error check logic in himem 2021-08-31 08:46:27 +08:00
Zim Kalinowski
9c666875dc Merge branch 'zim-pre-to-endcode-remaining' into 'master'
freertos:remaining <pre> to @code changes

See merge request espressif/esp-idf!14997
2021-08-30 13:17:42 +00:00
morris
2e0ffbd543 Merge branch 'bugfix/fix-driver-8_16bit-reg-access' into 'master'
bugfix/driver: fix and cleanup soc/ll stuffs

Closes IDF-3722

See merge request espressif/esp-idf!14829
2021-08-30 10:27:05 +00:00
Michael (XIAO Xufeng)
d910d42a8d Merge branch 'bugfix/soc_interrupt_source' into 'master'
soc: remove outdated description of interrupts on RISCV CPUs

See merge request espressif/esp-idf!14974
2021-08-30 09:38:24 +00:00
Michael (XIAO Xufeng)
59cedcb748 soc: remove outdated description of interrupts on RISCV CPUs 2021-08-30 17:38:16 +08:00
Darian
8af7292496 Merge branch 'feature/new_usb_host_driver' into 'master'
(5) USB: Add public USB Host Driver

Closes IDF-3121, IDF-3509, and IDF-3557

See merge request espressif/esp-idf!13145
2021-08-30 09:28:43 +00:00
David Čermák
82eccf434e Merge branch 'bugfix/wifi_ap_handler_docs' into 'master'
wifi/netif: Fix wifi_ap_handlers comments to relate to AP

Closes DOC-1929

See merge request espressif/esp-idf!14903
2021-08-30 07:31:37 +00:00
Zim Kalinowski
29ae014fd6 remaining <pre> to @code changes 2021-08-30 15:13:27 +08:00
Li Hang Fan
9625f0618f Merge branch 'refactor/update-esp_check-for-himem-rtcio' into 'master'
rtc_io, esp_himem: replace XXX_CHECK with ESP_RETURN_ON_FALSE

Closes IDF-3669 and IDF-3035

See merge request espressif/esp-idf!14992
2021-08-30 07:10:31 +00:00
yuanjm
5db3853c2c esp_http_server: Fix ws server handle length over 1440(MTU) messages incorrectly.
Closes https://github.com/espressif/esp-idf/issues/7457
2021-08-30 14:50:19 +08:00
yuanjm
5bdbfd1d05 Revert "Merge branch 'bugfix/fix_ws_handle_big_messages_error' into 'master'"
This reverts commit d838a11d78, reversing
changes made to 70fd8529e9.
2021-08-30 14:50:19 +08:00
Zim Kalinowski
39046c5e3e Merge branch 'zim-reduce-esp-specific-code' into 'master'
freertos: Reduce ESP specific code

See merge request espressif/esp-idf!14969
2021-08-30 06:45:36 +00:00
Zim Kalinowski
5f2a66a8a5 freertos: Reduce ESP specific code 2021-08-30 14:45:31 +08:00
SalimTerryLi
892f5e7df3
timer_group: fix wrongly generated reg header that introduced in 443845fd54 2021-08-30 13:51:25 +08:00
SalimTerryLi
874a720286
soc/ll: workaround compiler bug that generate 8/16 bits inst instead of 32 bits one
update all struct headers to be more "standardized":

- bit fields are properly wrapped with struct
- bitwidth sum should be 32 within same struct, so that it's correctly padded with reserved bits
- bit field should be uint32_t
- typedef volatile struct xxx{} yyy;: xxx must exists. refer: https://github.com/espressif/esp-idf/pull/3199

added helper macros to force peripheral registers being accessed in 32 bitwidth

added a check script into ci
2021-08-30 13:50:58 +08:00
Zim Kalinowski
b843eb61a7 Merge branch 'zim-cherrypicked-coroutine' into 'master'
freertos: upgrade to 10.4.3 - vCoRoutineSchedule fix

See merge request espressif/esp-idf!14942
2021-08-30 04:46:28 +00:00
Zim Kalinowski
0583bda9c7 Merge branch 'zim-fix-defines-in-doc' into 'master'
freertos: fix defines in documentation

See merge request espressif/esp-idf!14987
2021-08-30 03:36:20 +00:00
SalimTerryLi
55a5c444b5
rtc_io, esp_himem: replace XXX_CHECK with ESP_RETURN_ON_FALSE 2021-08-30 11:18:34 +08:00
Marius Vikhammer
63280dfec0 aes/sha: fixed driver reseting the wrong GDMA channel
Driver was using the channel ID from tx when reseting rx.
But since rx and tx is not necessarily from the same pair this could lead
to the driver reseting the wrong DMA channel.
2021-08-30 10:37:03 +08:00
Zim Kalinowski
41c0e44185 freertos: Upgrade to 10.4.3 - timers
(cherry picked from commit c22a4c355603318a16adb3b898943744d9b826a5)
2021-08-30 10:10:29 +08:00
Shu Chen
ec31f2338b Merge branch 'bugfix/fix_esp32h2_apb_frequency_temp_fix' into 'master'
[bugfix] esp32h2: fix apb freq err temporarily

See merge request espressif/esp-idf!14982
2021-08-30 00:16:45 +00:00
Zim Kalinowski
13360ab126 fix defines in doc 2021-08-29 21:02:33 +08:00
Mahavir Jain
b63ec47238 Merge branch 'feature/update_cjson_submodule' into 'master'
cJSON: Update submodule to v1.7.15

Closes IDFGH-5595

See merge request espressif/esp-idf!14958
2021-08-27 17:14:34 +00:00
Mahavir Jain
286c035064 Merge branch 'bugfix/rename_newlib_header' into 'master'
esp_rom: remove "newlib.h" header

See merge request espressif/esp-idf!14975
2021-08-27 14:57:03 +00:00
zhangwenxu
489033d8e3 openthread: enable ping sender module 2021-08-27 21:23:33 +08:00
morris
22dddb46d8 Merge branch 'bugfix/check_nego_timeout_when_link_up' into 'master'
eth_phy: dont warn nego timeout if link is down

Closes IDFGH-5415

See merge request espressif/esp-idf!13997
2021-08-27 13:09:17 +00:00
wuzhenghui
32abe5ce42 fix apb freq err temporarily 2021-08-27 19:59:33 +08:00
Mahavir Jain
f7d2f283b3 Merge branch 'bugfix/bugfix/esp32s2_memprot_no_logging_2' into 'master'
System/Security: ESP32S2 Memprot uses no abort() calls neither does logging

Closes IDF-3634

See merge request espressif/esp-idf!14852
2021-08-27 11:17:31 +00:00
Shu Chen
89b316b6e0 Merge branch 'bugfix/border-agent-mesh-local-prefix' into 'master'
openthread: fix mesh local prefix missing in border agent example

See merge request espressif/esp-idf!14920
2021-08-27 09:10:08 +00:00
Mahavir Jain
d9fdb9dc3f esp_rom: remove "newlib.h" header
We found conflict in "sizeof(time_t)" due to inclusion of this
header over toolchain specific "newlib.h".

Moreover, there are no users for this header and implementation
for API is also not available in ROM. Hence removing it.
2021-08-27 14:33:05 +05:30
Mahavir Jain
3850eba152 Merge branch 'feature/local_control_sec1' into 'master'
Added support for security1 in local control

See merge request espressif/esp-idf!13684
2021-08-27 08:31:33 +00:00
Michael (XIAO Xufeng)
64581b36f7 Merge branch 'refactor/dac_apply_generic_check' into 'master'
apply generic check macro

Closes IDF-3658

See merge request espressif/esp-idf!14944
2021-08-27 07:49:53 +00:00
morris
ab0c5fed25 eth: dont warn nego timeout if link is down 2021-08-27 15:30:46 +08:00
Jiacheng Guo
2213a35156 openthread: fix mesh local prefix missing in border agent example 2021-08-27 14:21:47 +08:00
Cao Sen Miao
c47ad5d22f Merge branch 'bugfix/gpio_cant_hold' into 'master'
GPIO: fix issue that gpio cannot hold during deep-sleep on c3

Closes IDFGH-5738 and IDF-3526

See merge request espressif/esp-idf!14939
2021-08-27 06:16:45 +00:00
Ondrej Kosta
300618e5be Merge branch 'feature/dual_eth' into 'master'
esp_eth: add support for multiple Ethernets modules at a time

Closes IDFGH-5596

See merge request espressif/esp-idf!14640
2021-08-27 06:11:48 +00:00
Shubham Kulkarni
b975bc9d38 cJSON: Update submodule to latest release.
This update fixes NULL pointer dereference issues in previous release

Closes https://github.com/espressif/esp-idf/issues/7317
2021-08-27 12:04:38 +08:00
morris
ba3168d1d5 Merge branch 'zim-missing-semicolon' into 'master'
missing semicolon

See merge request espressif/esp-idf!14965
2021-08-27 03:15:01 +00:00
Li Shuai
ccf1a9a1fc light sleep: add i/d-cache tagmem retention support for esp32s3 2021-08-27 11:11:09 +08:00
Li Shuai
03746de96f light sleep: add cpu power down support for esp32s3 2021-08-27 11:11:06 +08:00
Marius Vikhammer
2206c5315e Merge branch 'bugfix/aes_unaligned_access' into 'master'
aes: fix unaligned access

Closes IDFGH-5506

See merge request espressif/esp-idf!14659
2021-08-27 01:33:44 +00:00
Kapil Gupta
d3a42d787d wpa_supplicant: clean tls client state machine 2021-08-27 00:19:32 +08:00
Shu Chen
ab0d0b7dd2 Merge branch 'festure/add_ot_rcp_base_master' into 'master'
add ot-rcp

See merge request espressif/esp-idf!14609
2021-08-26 11:44:28 +00:00
sU8U7SfkcwTJVH7PjaVmej7D
91a40044f5 [freertos] Silence sign-conversion warning 2021-08-26 12:36:46 +02:00
morris
2deeba9d1a Merge branch 'feature/mcpwm-IRAM_ISR-kconfig' into 'master'
mcpwm: ISR can be placed to IRAM by menuconfig

Closes IDFGH-5732

See merge request espressif/esp-idf!14947
2021-08-26 10:08:16 +00:00
sU8U7SfkcwTJVH7PjaVmej7D
6672862db8 Missing dependency for idf.py 'encrypted-flash' target 2021-08-26 12:00:00 +02:00
Vikram Dattu
5691c9a8e8 Added support for security1 in local control
1. Added config options to chose from protocom security.
    It can be chosen 0/1 or custom.
    Possible to set POP as well

2. Added support in `esp_local_ctrl.py` test script for sec_ver selection

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2021-08-26 17:35:09 +08:00
Zim Kalinowski
dbdcada2e5 missing semicolon 2021-08-26 16:55:53 +08:00
Michael (XIAO Xufeng)
375145ecdb Merge branch 'feature/mcpwm_bldc_hall_example' into 'master'
mcpwm: bldc hall example

Closes IDF-3648

See merge request espressif/esp-idf!14578
2021-08-26 08:28:27 +00:00
Shu Chen
e770817dc7 openthread: refine ot_rcp example documentation and APIs 2021-08-26 16:10:16 +08:00
SalimTerryLi
e67bcda6d1
mcpwm: ISR can be placed to IRAM by menuconfig
resolves https://github.com/espressif/esp-idf/issues/7449
2021-08-26 15:58:46 +08:00
Martin Vychodil
58aed7df98 ESP32S2: No assert()/abort() in Memprot API, use esp_err_t instead
JIRA IDF-3634
2021-08-26 09:20:00 +02:00