Commit Graph

163 Commits

Author SHA1 Message Date
Roland Dobai
9c1d4f5b54 Build & config: Remove the "make" build system
The "make" build system was deprecated in v4.0 in favor of idf.py
(cmake). The remaining support is removed in v5.0.
2021-11-10 09:53:53 +01:00
morris
83d16aa00c gdma: support IRAM interrupt 2021-11-08 16:14:51 +08:00
morris
16677b0d3c global: make periph enable/disable APIs private
peripheral enable/disable usually should be managed by driver itself,
so make it as espressif private APIs, not recommended for user to use it
in application code.
However, if user want to re-write the driver or ports to other platform,
this is still possible by including the header in this way:
"esp_private/peripheral_ctrl.h"
2021-11-08 10:37:47 +08:00
Cao Sen Miao
f6da46d798 CI: add fast_template_app and tools support 2021-11-06 17:33:44 +08:00
Ivan Grokhotkov
0b376251df Merge branch 'feature/kconfig_for_reproducible_build' into 'master'
Feature: kconfig for reproducible build

See merge request espressif/esp-idf!15100
2021-11-04 22:07:29 +00:00
Ondrej Kosta
cb8432e0f2 esp_eth: KSZ8851SNL, enable Rx multicast in MAC filter
Closes https://github.com/espressif/esp-idf/issues/7750
2021-11-04 16:17:45 +00:00
Roland Dobai
71dd63c5f1 Merge branch 'feature/gcov_esp32c3' into 'master'
debug_stubs and gcov: Refactor and add support for RISCV

See merge request espressif/esp-idf!15212
2021-11-04 13:56:18 +00:00
Wang Meng Yang
328450b8c2 Merge branch 'bugfix/fix_ble_prefered_ext_conn_parameter_detection' into 'master'
component/bt: check the ble ext conn parameter

See merge request espressif/esp-idf!15767
2021-11-04 12:23:42 +00:00
Jakob Hasse
465d6a37cc Merge branch 'feature/wear_levelling_test_app' into 'master'
wear_levelling: move tests from unit-test-app to a component test app

See merge request espressif/esp-idf!15582
2021-11-04 06:58:04 +00:00
Wu Zheng Hui
f64efe6076 Merge branch 'feature/update_c3_h2_soc_caps' into 'master'
heap: update memory heap caps

See merge request espressif/esp-idf!15792
2021-11-04 06:34:25 +00:00
wuzhenghui
ca1c4114bc heap: update esp32&s2&c3&h2 soc caps 2021-11-04 10:40:57 +08:00
Alexey Gerenkov
e7dd7d3110 gcov: Fixes interference of gcov dump with normal IPC calls 2021-11-04 01:33:24 +03:00
Alexey Gerenkov
bb9cd84cdc debug_stubs: Refactor and add support for RISCV 2021-11-04 01:33:24 +03:00
David Čermák
9466fd1e16 Merge branch 'bugfix/LAN8720_reset_assertion' into 'master'
Increased LAN8720 ETH-PHY reset assertion time

Closes IDFGH-6132 and IDFGH-6018

See merge request espressif/esp-idf!15636
2021-11-03 16:29:09 +00:00
Ivan Grokhotkov
5962a7e931 wear_levelling: move tests from unit-test-app to a component test app
* Migrate test cases from IDF test runner to Unity fixture.
* Tighten heap checks in the test case a bit.
* Run formatting script on test_wl.c
* NEW: Define 4 test configurations, including configs with 512 byte
  sector size. Previously these configs weren't tested in CI.
* NEW: The test app only runs for ESP32 and ESP32-C3 (one chip for
  each architecture). The component is pretty high level so we don't
  need to test it for each chip. This reduces the load on CI.
2021-11-03 09:56:20 +01:00
Jakob Hasse
32e3444701 feat (pthread): reader-writer locks implementation
* Added implementation based on cond. variables
* Added unit tests

Closes https://github.com/espressif/esp-idf/issues/7411
2021-11-03 16:38:14 +08:00
Jakob Hasse
7df16fdf8f Merge branch 'feature/i2c_mock' into 'master'
feat (driver): Added mocking for i2c.h

See merge request espressif/esp-idf!15641
2021-11-03 05:49:04 +00:00
Mahavir Jain
268143b732 Merge branch 'bugfix/mbedtls_disable_dhe_by_default' into 'master'
mbedtls: disable Diffie-Hellman key exchange modes by default

Closes IDF-1230

See merge request espressif/esp-idf!15642
2021-11-03 04:30:30 +00:00
Anton Maklakov
4800f2f005 Merge branch 'ci/remove_make' into 'master'
CI: Don't build with "make" because the support is removed in v5.0

Closes IDF-4267

See merge request espressif/esp-idf!15762
2021-11-03 03:17:01 +00:00
Shu Chen
d756f31da9 Merge branch 'bugfix/esp32h2_iperf_set_dest_ip6_addr_bugs' into 'master'
openthread: fix iperf get dest_ip6_addr

See merge request espressif/esp-idf!15577
2021-11-03 02:57:02 +00:00
Shu Chen
117bb79ec2 Merge branch 'feature/add_ieee802154_timer' into 'master'
ieee802154: Add ieee802154 timer APIs

See merge request espressif/esp-idf!15752
2021-11-03 02:31:03 +00:00
Darian
ea6a0dde5a Merge branch 'bugfix/usb_hcd_robustness' into 'master'
USB Host: Fix how disconnections an EP halts are handled

Closes IDFGH-5797 and IDFGH-6108

See merge request espressif/esp-idf!15640
2021-11-02 13:50:09 +00:00
Roland Dobai
e89fc00e5b CI: Don't build with "make" because the support is removed in v5.0 2021-11-02 13:13:31 +01:00
David Čermák
7bd93e3362 Merge branch 'bugfix/eth_emac_reset_dma_desc' into 'master'
esp-eth: emac: Reset Tx DMA channel owner on init

Closes IDFGH-6071

See merge request espressif/esp-idf!15685
2021-11-02 10:29:02 +00:00
zhangwenxu
1bb69cde88 openthread: fix iperf get dest_ip6_addr
* update copyright headers
2021-11-02 17:10:12 +08:00
Ondrej Kosta
380864861f Copyright message fix for 'Increased LAN8720 ETH-PHY reset assertion time' 2021-11-02 09:57:03 +01:00
Mahavir Jain
f7ed95349f mbedtls: fix dynamic buffer feature build 2021-11-02 15:52:09 +08:00
xiewenxiang
f0ef891901 component/bt: check the ble ext conn parameter 2021-11-02 14:33:24 +08:00
Darian Leung
54b6c902d3 usb: Add USB Host Library sudden disconnect tests 2021-11-02 14:30:58 +08:00
Darian Leung
0c758c8557 usb: Fix how the HCD handles sudden disconnection
This commit fixes how the USB Host HCD handles sudden disconnections.

Bugs:
- HW channels remain active when the port suddenly disconnects, and
previously the channel would be disabled by setting the disabled bit,
then waiting for a disabled interrupt. However, ISOC channels do not
generate the disabled interrupt when the port is invalid, thus leading
to tasks getting indefinitely blocked in hcd_pipe_command().

Fix:
On a sudden disconnection, forcibly treat all channels as halted even
if their HCCHAR.ChEna bit is still set. We do a soft reset after a port
error anyways, so the channels will eventually be reset.

Closes https://github.com/espressif/esp-idf/issues/7505
2021-11-02 14:30:58 +08:00
Darian Leung
0159c37cf2 usb: Fix LL 8/16 bit register field access
This commit addes the 8/16 bit register field access workarounds to
the DWC_OTG peripheral. This workaround was applied to all other
peripherals in commit 874a720286.
2021-11-02 14:30:58 +08:00
Jakob Hasse
1eb96cfc79 feat (driver)!: Added mocking for i2c.h
BREAKING CHANGE: removed ringbuf.h from public i2c.h
2021-11-02 14:16:31 +08:00
xiaqilin
3fc4a0c9c1 ieee802154: add timer APIs 2021-11-02 14:08:34 +08:00
Zim Kalinowski
13ab2cd9f9 Merge branch 'bugfix/spiram_abort_allocation_failure' into 'master'
SPIRAM: 'Abort on allocation failure' should not trigger when there is available SPI ram

Closes IDFGH-5870

See merge request espressif/esp-idf!15454
2021-11-02 05:36:18 +00:00
Omar Chebib
96391ef62b SPIRAM: 'Abort on allocation failure' should not trigger when there is available SPI ram 2021-11-02 05:36:18 +00:00
morris
b2c2e2302b Merge branch 'feature/KSZ8091_support' into 'master'
Add support for Eth PHY KSZ8091

Closes IDFGH-5845

See merge request espressif/esp-idf!15702
2021-11-02 02:37:53 +00:00
Ivan Grokhotkov
f47e8f90ce Merge branch 'bugfix/multi_heap_get_info_impl' into 'master'
heap: fix multi_heap_get_info_impl

See merge request espressif/esp-idf!15470
2021-11-01 21:21:22 +00:00
gaoxiaojie
0028e2c23c heap: fix multi_heap_get_info_impl 2021-11-01 16:08:07 +00:00
ma-lalonde
0f754551dd Add support for Eth PHY KSZ8091 2021-11-01 11:11:18 -04:00
KonstantinKondrashov
884a6b17cc spi_flash: No CPU release time for an erase operation when OS is not running
During the early start, the virtual eFuse mode can call erase operations when OS is not yet running.

Possible workaround: CONFIG_SPI_FLASH_YIELD_DURING_ERASE=n

Fixed for the legacy flash driver as well.
2021-11-01 21:49:24 +08:00
Cao Sen Miao
049349a087 Merge branch 'feature/usb_serial_default_option' into 'master'
usb_serial_jtag: Add secondary menu to support using usb_serial port to print when primary is uart

Closes IDF-3525 and IDF-3555

See merge request espressif/esp-idf!14554
2021-11-01 11:22:35 +00:00
Cao Sen Miao
adfb7bed96 vfs_usb_serial: set secondary selection for making usb port can output under default menu 2021-11-01 15:48:36 +08:00
Jan Procházka
fb22c1f182 fatfs: Implementation of disk_status nad disk_initialize for SD/MMC card
FATFS provides a disk status and disk initialize callback which were not
implemented. Implementation has very low impact on SD/MMC speed and
fixes issues, when trying to open file when SD card was removed from
slot and not deinited.

If disk_status returns STA_NOINIT, it will always continue with
disk_initialize. If that returns 0, it will continue like everything is
working normally. So there has to be the same check as in disk_status.
Return of disk_initialize is always checked like this for STA_NOINIT or
STA_PROTECT so if command fails, we return the STA_NOINIT.

stat = disk_initialize(pdrv);
if (stat & STA_NOINIT) return FR_NOT_READY;
if (stat & STA_PROTECT) return FR_WRITE_PROTECTED;

Closes IDF-4125
2021-11-01 15:11:40 +08:00
Omar Chebib
5206afe755 Merge branch 'bugfix/fix_select_timeout' into 'master'
VFS: `select` function's timeout is now POSIX compliant

Closes IDFGH-5807

See merge request espressif/esp-idf!15374
2021-11-01 07:01:20 +00:00
Steinbart Andreas (HAU-EDS)
f9d6fa2b84 esp-eth: emac: Reset Tx DMA channel owner on init
Reset ethernet TX DMA descriptors sets owner to CPU, so re-installing the ethernet driver will now not result in packet loss

Merges https://github.com/espressif/esp-idf/pull/7752
2021-11-01 06:16:59 +00:00
Mahavir Jain
a89d56082f Merge branch 'bugfix/memprot_bad_esp_restart_check' into 'master'
System/Security: wrong check of the Memprot feature in esp_restart()/panic_restart()

See merge request espressif/esp-idf!15414
2021-10-29 12:17:32 +00:00
Island
c33db5d4f5 Merge branch 'bugfix/ble_mesh_update_license' into 'master'
ble_mesh: stack: update license of esp specific files

See merge request espressif/esp-idf!15603
2021-10-29 09:56:33 +00:00
Martin Vychodil
dffb92e45f System/Security: wrong check of the Memprot feature in esp_restart()/panic_restart()
esp_restart()/panic_restart() never resets the Digital system (so far required only by the Memprot feature) as there's a typo in the corresponding #define:
it checks CONFIG_ESP_SYSTEM_CONFIG_MEMPROT_FEATURE instead of CONFIG_ESP_SYSTEM_MEMPROT_FEATURE.
Issue fixed.

IDF-4094
2021-10-29 16:28:28 +08:00
Sudeep Mohanty
4846222102 freertos: update freertos folder structure to match upstream
The following changes have been made:
1. All FreeRTOS kernel source files are now placed in the
   freertos/FreeRTOS-Kernel folder to match with the upstream folder structure.
2. All kernel include files are now placed in freertos/FreeRTOS-Kernel/include.
3. All port files are now placed in freertos/FreeRTOS-Kernel/portable.
4. All additions/customizations are placed in freertos/esp_additions.
5. All other miscellaneous files (README, License files etc.) are moved to
   freertos/FreeRTOS-Kernel folder to match with the upstream.
6. Updated esp-cryptoauthlib to latest commit to resolve FreeRTOS
   include dependencies.

Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2021-10-29 12:05:13 +08:00
lly
eeb9a9bd2c ble_mesh: stack: Update license of esp specific files 2021-10-28 21:20:27 +08:00