Commit Graph

11857 Commits

Author SHA1 Message Date
Michael (XIAO Xufeng)
a0d13a31ec uart: fix misleading files for UART2
Includes: header files, ld files and clk.c

ESP32-C3 only have UART0 and UART1.
2021-04-27 17:40:19 +08:00
Michael (XIAO Xufeng)
835a652a63 Merge branch 'feature/usb_hcd_uses_irp_directly' into 'master'
USB HCD uses IRPs directly

Closes IDF-2937

See merge request espressif/esp-idf!12646
2021-04-26 03:57:23 +00:00
Darian Leung
738af3fd38 USB HCD uses IRPs directly for transfer
This commit updates the HCD so that transfer requests are no longer used.
The USB IRP object is updated so that the it can be directly passed to the HCD
to start a transfer. HCD API, tests, and documentation updated accordingly.
2021-04-25 21:52:07 +08:00
Jiang Jiang Jian
3f7b637a15 Merge branch 'bugfix/update_esp32c3_phy_init_data' into 'master'
esp_wifi: update esp32c3 phy init data

See merge request espressif/esp-idf!13282
2021-04-25 13:23:13 +00:00
Shu Chen
00a66083c7 Merge branch 'roll-openthread-210416' into 'master'
openthread: update openthread submodule

See merge request espressif/esp-idf!13166
2021-04-25 02:18:03 +00:00
Angus Gratton
f2d193a7c3 Merge branch 'bugfix/esp32c3_eco3_efuse_programming' into 'master'
esp32c3 espefuse: Fix efuse programming timing on ESP32-C3 ECO3

See merge request espressif/esp-idf!13295
2021-04-23 22:30:41 +00:00
David Čermák
4dc024422c Merge branch 'feature/lwip-route-hook' into 'master'
lw-ip: add config options and hooks for Thread IPv6 border routing

See merge request espressif/esp-idf!13099
2021-04-23 18:41:11 +00:00
Angus Gratton
69309c88a0 Merge branch 'bugfix/fix_c3_typos' into 'master'
esp32c3: fix typos of c3 path

See merge request espressif/esp-idf!13318
2021-04-23 13:05:09 +00:00
Michael (XIAO Xufeng)
5997fcd45d Merge branch 'feature/update_adc_programming_guide_on_c3' into 'master'
adc: update esp32c3 programming guide

Closes IDF-2333

See merge request espressif/esp-idf!12563
2021-04-23 12:52:07 +00:00
Michael (XIAO Xufeng)
bea022ce1c Merge branch 'refactor/usb_common_and_hal_types' into 'master'
Separate USB HAL and common USB types

Closes IDF-2931

See merge request espressif/esp-idf!12642
2021-04-23 12:50:35 +00:00
Ivan Grokhotkov
83e68ee19e Merge branch 'bugfix/replace_setjmp_rom' into 'master'
[system]: Made longjmp save for context switch

Closes IDFGH-3232

See merge request espressif/esp-idf!13119
2021-04-23 12:39:29 +00:00
Angus Gratton
65fc657339 Merge branch 'bugfix/otatool_wrong_switch_ota_partition_slots' into 'master'
otatool: Fix incorrect using otadata.seq&crc in switch_ota_partition cmd

Closes IDFGH-4983

See merge request espressif/esp-idf!12900
2021-04-23 12:37:13 +00:00
Angus Gratton
2f70a76572 Merge branch 'bugfix/mac_addr_target_support' into 'master'
system: Restructure MAC address support documentation

See merge request espressif/esp-idf!13298
2021-04-23 10:56:42 +00:00
Shu Chen
ff3320ca8a esp32c3: fix typos of c3 path 2021-04-23 18:11:39 +08:00
Ivan Grokhotkov
ea7d020f20 Merge branch 'feature/ubsan' into 'master'
system: add option to enable undefined behavior sanitizer (UBSAN)

Closes IDF-166 and IDF-1824

See merge request espressif/esp-idf!11318
2021-04-23 09:27:42 +00:00
Ivan Grokhotkov
9522034144 Merge branch 'doc/linux_host_testing' into 'master'
Doc: Linux host test documentation

See merge request espressif/esp-idf!11857
2021-04-23 09:08:42 +00:00
Jakob Hasse
fc22e3c645 [system]: Made longjmp save for context switch
* Patched longjmp to be context-switch safe
  longjmp modifies the windowbase and windowstart
  registers, which isn't safe if a context switch
  occurs during the modification. After a context
  switch, windowstart and windowbase will be
  different, leading to a wrongly set windowstart
  bit due to longjmp writing it based on the
  windowbase before the context switch. This
  corrupts the registers at the next window
  overflow reaching that wrongly set bit.

  The solution is to disable interrupts during
  this code. It is only 6 instructions long,
  the impact shouldn't be significant.

  The fix is implemented as a wrapper which
  replaces the original first instructions of
  longjmp which are buggy. Then, it jumps back
  to execute the rest of the original longjmp
  function.

  Added a comparably reliable test to the
  test apps.
2021-04-23 15:55:31 +08:00
Angus Gratton
0be81903cc Merge branch 'bugfix/hal_duplicated_interrupt_functions' into 'master'
[hal]: merged duplicated HAL layer functions

Closes IDF-2308

See merge request espressif/esp-idf!12444
2021-04-23 07:47:51 +00:00
Angus Gratton
96c2acd9a8 Merge branch 'refactor/strip_systimer_hal_layer' into 'master'
refactor HAL driver of systimer to a common systimer_hal

Closes IDF-2996

See merge request espressif/esp-idf!13027
2021-04-23 07:45:31 +00:00
Wang Meng Yang
85841922a1 Merge branch 'refactor/bt_lib_submodules' into 'master'
Refactor/bt lib submodules

See merge request espressif/esp-idf!13247
2021-04-23 07:19:18 +00:00
David Čermák
0d6482b8ee Merge branch 'feature/esp_eth_ksz8851snl' into 'master'
Add a KSZ8851SNL SPI Ethernet driver

Closes IDFGH-4736 and IDFGH-4837

See merge request espressif/esp-idf!12574
2021-04-23 05:14:16 +00:00
Angus Gratton
64a96ca96d Merge branch 'bugfix/RTC_CLK_CAL_CYCLES' into 'master'
esp32xx: Fix the Number of cycles for RTC_SLOW_CLK calibration

See merge request espressif/esp-idf!13202
2021-04-23 04:55:28 +00:00
KonstantinKondrashov
d1befe83ef otatool: Fix incorrect using otadata.seq&crc in switch_ota_partition cmd
Closes: https://github.com/espressif/esp-idf/issues/6773
2021-04-23 04:55:06 +00:00
Angus Gratton
7bb5c8cc82 esp32c3 espefuse: Fix efuse programming timing on ESP32-C3 ECO3
Without this timing change, efuse programming occasionally appears to fail
(although the efuse is programmed correctly).
2021-04-23 13:42:23 +10:00
Michael (XIAO Xufeng)
fdb8736a95 Merge branch 'feature/spi_slave_hd_segment_example' into 'master'
spi_slave_halfduplex: add an example for segment mode

Closes IDF-1699

See merge request espressif/esp-idf!10043
2021-04-23 03:23:25 +00:00
Michael (XIAO Xufeng)
dfdc337e27 Merge branch 'bugfix/twai_caps_naming_and_tidy_up' into 'master'
Fix TWAI caps

Closes IDF-2456

See merge request espressif/esp-idf!13172
2021-04-23 02:21:47 +00:00
Jakob Hasse
68393c41c4 doc: linux host test documentation 2021-04-23 09:27:35 +08:00
Ivan Grokhotkov
e449728b7d hal: fix planted break instruction for Xtensa targets
On Xtensa, "break 0, 0" encodes a software breakpoint which is placed
into the program by the debug monitor. Planted breakpoints (added in
the code to trap into debugger) should be encoded as "break 1, 15".
See table "Breakpoint Instruction Operand Conventions" in the ISA
Reference manual.
2021-04-22 23:33:47 +02:00
Ivan Grokhotkov
da90775d98 hal: mpu: fix signed overflow error 2021-04-22 23:33:47 +02:00
Ivan Grokhotkov
4e73cff729 esp_netif: enable UBSAN in component test app 2021-04-22 23:33:47 +02:00
Ivan Grokhotkov
9069f70db3 system: add option to enable undefined behavior sanitizer (UBSAN)
Closes https://github.com/espressif/esp-idf/issues/1574
2021-04-22 23:33:45 +02:00
Ivan Grokhotkov
cfdfeed973 freertos: linker.lf rules fixes
1. Add conditions based on Kconfig options for functions which are
   compiled based on those options.
2. Static allocation is always enabled, move corresponding functions
   into the common list.
2021-04-22 17:14:46 +02:00
David Cermak
1e674f1d20 esp_eth: Update KSZ8851SNL driver to use global error checkers
Also updated KSZ8851SNL per internal code review:
* Removed Link status change interrupt as it's handled with polling
* Added auto negotiation timeout
* Updated typedefs, moved types to appropriate source, updated
  components/esp_eth/src/ksz8851.h to use only inherent device types
* Applied IDF code formatting
* Updated header file order to include first the most generic to more
  specific
2021-04-22 13:55:51 +00:00
Vladimir Chistyakov
c4f131e6ee esp_eth: Add a KSZ8851SNL SPI Ethernet driver
Implement the PHY and MAC layers in the driver similar to
the W5500 driver.

Update Kconfig, CMakeLists.txt, and component.mk to incorporate
the changes.

Resolves: #6542

Merges https://github.com/espressif/esp-idf/pull/6636
Closes https://github.com/espressif/esp-idf/issues/6542
2021-04-22 13:55:51 +00:00
morris
ec898b771e systimer: strip hal driver 2021-04-22 21:08:39 +08:00
morris
7c1e1c9e2d systimer: update soc data 2021-04-22 21:07:35 +08:00
morris
7eb9ecb4f6 esp_ds: move timeout mechanism to driver layer 2021-04-22 21:07:35 +08:00
Mahavir Jain
812d61295d Merge branch 'bugfix/log_arg_in_bootloader_support' into 'master'
bootloader_support: Fix min size of OTA partition in error log

See merge request espressif/esp-idf!13288
2021-04-22 12:31:56 +00:00
Darian Leung
2906a25988 Separate USB HAL and common USB types
This commit separates out the common USB types used throughout most of the stack into its
own header file inside the USB component. The types used in the USB HAL are now exclusive
to the HAL.
2021-04-22 19:24:48 +08:00
chenjianxing
372d8c6003 esp_wifi: update esp32c3 phy init data 2021-04-22 19:17:20 +08:00
yuanjm
93604b1a11 mbedtls: Fix mbedtls_ssl_send_alert_message crash due to ssl->out_iv is NULL 2021-04-22 09:33:59 +00:00
Shubham Patil
c2b0db75e8 bootloader_support: Fix min size of OTA partition in error log 2021-04-22 14:00:42 +05:30
Jiacheng Guo
fd3553b66d lwip: add config options for Thread IPv6 border routing 2021-04-22 06:13:47 +00:00
Angus Gratton
7cb83c8787 system doc: Re-structure description of MAC addresses, especially on newer chip targets
Includes a note about calculating the Ethernet MAC on platforms with no built-in
Ethernet, and removes documentation for esp_efuse_mac_get_custom() on targets
other than ESP32
2021-04-22 16:08:55 +10:00
David Čermák
7f34657013 Merge branch 'feature/ethernet_link_check_esp_timer' into 'master'
esp_eth: using esp_timer to check link status

Closes IDFGH-4953

See merge request espressif/esp-idf!13155
2021-04-22 06:08:00 +00:00
Angus Gratton
eb38eb670c system: Return ESP_ERR_NOT_SUPPORTED for esp_read_mac(ESP_MAC_BT, ...) on ESP32-S2
Previously this function returned ESP_OK but no MAC was set.
2021-04-22 12:22:46 +10:00
Angus Gratton
c8cb803378 system: Simplify esp_derive_local_mac() function
Previously this function included a loop but would never run more
than one iteration of it.
2021-04-22 12:22:46 +10:00
Mahavir Jain
a82466674a Merge branch 'bugfix/esp_http_client_read' into 'master'
Fix esp_http_client_read for file size aligned to 289 bytes

Closes IDFGH-4981

See merge request espressif/esp-idf!13193
2021-04-22 01:48:00 +00:00
wangmengyang
d703424ef7 component/bt: add another bt-lib submodule and refactor the directories 2021-04-22 07:41:46 +08:00
Angus Gratton
f91d6c7a69 Merge branch 'bugfix/tls_threadptr_calculation' into 'master'
freertos: fix TLS run-time address calculation

See merge request espressif/esp-idf!13271
2021-04-21 23:13:13 +00:00