Commit Graph

22461 Commits

Author SHA1 Message Date
David Cermak
079611dd16 lwip/sntp: Fix esp_sntp_ API races (v4.4)
Some of the esp_sntp_...() APIs that wrap lwip's SNTP
module use tcpip_callback() to execute the lwip functionality
in the correct state (either with locked TCP/IP core,
or within the TCP/IP thread).
tcpip_callback() however doesn't wait for completion of the callback,
which doesn't prevent from using the stack variables after destroy
if used as a parameter.
Introduced in a71fa82.
Fixed by using of tcpip_api_call() instead of the tcpip_callback().

Closes https://github.com/espressif/esp-idf/issues/10611
2023-03-21 10:31:25 +01:00
David Cermak
29b8a00c0a esp_netif/lwip: Fix core-locking config (v4.4)
* Fix thread safety issues in non-core locking
* Add option to verify thread safety issues in lwip (core-lock assertion)
* Make esp_sntp.h thread safe API
* Fix sntp example
(v4.4 - fixes minor merge issue that duplicated
DHCP_DEFINE_CUSTOM_TIMEOUTS and DHCP_REQUEST_TIMEOUT_SEQUENCE)

Closes https://github.com/espressif/esp-idf/issues/9908
Closes https://github.com/espressif/esp-idf/issues/10502
Closes https://github.com/espressif/esp-idf/issues/10466
2023-03-21 10:31:20 +01:00
Jiang Jiang Jian
48b3f236d3 Merge branch 'contrib/github_pr_10402_v4.4' into 'release/v4.4'
ledc: move callback to IRAM as it's called from an ISR (GitHub PR) (v4.4)

See merge request espressif/esp-idf!22593
2023-03-20 14:06:23 +08:00
Jiang Jiang Jian
3c8bc2213c Merge branch 'feature/esp32c3_uart_add_wakeup_event_v4.4' into 'release/v4.4'
UART: add uart wakeup event for esp32c3 and esp32s3 (v4.4)

See merge request espressif/esp-idf!22647
2023-03-20 14:05:42 +08:00
Jiang Jiang Jian
188bb8df22 Merge branch 'bugfix/add_debug_check_v4.4' into 'release/v4.4'
Nimble: Added debug relate flag around debug code_v4.4

See merge request espressif/esp-idf!22783
2023-03-20 14:04:54 +08:00
Jiang Jiang Jian
c5e4b7d7d4 Merge branch 'bugfix/close_rf_in_deep_sleep_backport_v4.4' into 'release/v4.4'
deep sleep: further optimize sleep current if RF is enabled (backport v4.4)

See merge request espressif/esp-idf!22737
2023-03-20 14:04:36 +08:00
Roland Dobai
e47aaa7088 Merge branch 'contrib/github_pr_10935_v4.4' into 'release/v4.4'
export: avoid error on unbound variable (GitHub PR) (v4.4)

See merge request espressif/esp-idf!22821
2023-03-18 15:38:58 +08:00
Roland Dobai
e619c17871 Merge branch 'feature/export_fish_exit_code_success_v4.4' into 'release/v4.4'
Tools: export.fish exit with success exit code (v4.4)

See merge request espressif/esp-idf!22819
2023-03-18 15:37:15 +08:00
Marc Finet
2a3cdb090f export: avoid error on unbound variable
I the shell has `set -u` (to abort on unbound variable), sourcing
export.sh currently fails when IDF_EXPORT_QUIET or IDF_PATH is not set:
> /path/to/esp-idf/export.sh:16: IDF_EXPORT_QUIET: unbound variable

This commit sets a default empty value to those variable, as done
in 16731833fb (which forgot IDF_PATH as it's usually set, the other
variable landed later in the file).
2023-03-17 18:46:42 +01:00
Max Larsson
3ed0f1665f Make export.fish exit with SUCCESS exit code
The export.fish script exits with an exit code of 4. Thus, any shell checks that make sure the source command exits successfully always failed. This was due to the last line trying to erase the __main function. In fish, you can't erase a function using the `set` command, you can only erase variables. By removing that line the script now exits with an exit code of 0 instead of 4.

Erase __main function at the end of export.fish

Closes https://github.com/espressif/esp-idf/pull/10828
2023-03-17 18:08:41 +01:00
Jiang Jiang Jian
7cfc1a747f Merge branch 'docs/update_esp_hid_device_v4.4' into 'release/v4.4'
docs: fixed missing API-reference documents for Bluetooth HID device(backport v4.4)

See merge request espressif/esp-idf!19582
2023-03-17 19:40:43 +08:00
Michael (XIAO Xufeng)
61521da8d0 Merge branch 'test/add_spi_slave_freq_test_v4.4' into 'release/v4.4'
spi_slave: fix io re-config issue (v4.4)

See merge request espressif/esp-idf!22591
2023-03-17 19:25:07 +08:00
Jiang Jiang Jian
012b5006c0 Merge branch 'bugfix/more_data_bit_issue_v4.4' into 'release/v4.4'
esp_wifi: fix more data bit cause not go to modem sleep(v4.4)

See merge request espressif/esp-idf!22791
2023-03-17 13:52:48 +08:00
Jiang Jiang Jian
11e20bbf7b Merge branch 'bugfix/avrcp_psth_cmd_rsp_v4.4' into 'release/v4.4'
bt:Added a parameter to tell the user the result of the pass through command implementation(v4.4)

See merge request espressif/esp-idf!22789
2023-03-17 13:52:39 +08:00
Jiang Jiang Jian
4ceb928831 Merge branch 'feature/gatt_server_improvements_v4.4' into 'release/v4.4'
NimBLE: Added custom GATT Server functionality and encryption (v4.4)

See merge request espressif/esp-idf!22741
2023-03-17 10:53:01 +08:00
chenjianxing
bf92b0dda8 esp_wifi: fix more data bit cause not go to modem sleep
Closes AUD-4173
2023-03-16 15:45:21 +08:00
Jiang Jiang Jian
0c0d7bb1a3 Merge branch 'bufix/Backport_some_lwip_bugs_for_4.4_0315' into 'release/v4.4'
bugfix/Backport_some_lwip_bugs_for_4.4_0315

See merge request espressif/esp-idf!22762
2023-03-16 10:31:13 +08:00
Rahul Tank
4b40662fad Nimble: Added debug relate flag around debug code 2023-03-15 16:49:25 +05:30
Marius Vikhammer
207e7e6692 Merge branch 'docs/broken_links_2_v4.4' into 'release/v4.4'
docs: fix broken links (v4.4)

See merge request espressif/esp-idf!22749
2023-03-15 14:16:30 +08:00
xueyunfei
8331ae8586 lwip: solve some routers do not forward multicast packet issue 2023-03-14 19:03:23 +08:00
xueyunfei
9403854bed tcp_in/ooseq: Fix incorrect segment trim when FIN moved
* Update submodule: git log --oneline a7abf28e02282b32479f4bbaf2d90f09d2a60f4c..6bb132e3797d5449a923804c75c57d458920f8ac

Detailed description of the changes:
  - tcp_in/ooseq: Fix incorrect segment trim when FIN moved (esp-lwip@6bb132e3)
  - api_msg: fix tcp_abort thread safety (esp-lwip@53a6e019)
2023-03-14 18:46:00 +08:00
xueyunfei
109eec4033 dhcp server:bugfix softap excedes the range of subnet 2023-03-14 18:45:43 +08:00
xiongweichao
0ac35d3f09 bt:Added a parameter to tell the user the result of the pass through command implementation 2023-03-14 16:44:10 +08:00
Krzysztof Budzynski
6d09159974 Merge branch 'docs/format_temp_sensor' into 'release/v4.4'
format temp_sensor.rst

See merge request espressif/esp-idf!22475
2023-03-14 14:15:30 +08:00
wuzhenghui
e357de5406 deep sleep: close rf to optimize sleep current 2023-03-14 14:05:15 +08:00
Linda
aac827ede7 format temp_sensor.rst 2023-03-14 13:04:34 +08:00
wangmengyang
a13f65206c examples/Bluetooth/bt_hid_mouse_device: improved the exmaple README 2023-03-14 12:13:48 +08:00
wangmengyang
b419830cb0 examples/bluetooth/bt_hid_mouse_device: fixed code format, added more comments to improve code readability 2023-03-14 12:13:48 +08:00
wangmengyang
67cc93b1d5 bt: fix the documentations for Bluetooth HID device APIs 2023-03-14 12:13:48 +08:00
wangmengyang
a91d53f04f docs: fixed missing API-reference documents for Bluetooth HID device
# Conflicts:
#	docs/docs_not_updated/esp32c2.txt
#	docs/doxygen/Doxyfile
2023-03-14 12:13:48 +08:00
Marius Vikhammer
f262f1c361 docs: fix broken links 2023-03-14 10:26:37 +08:00
Sumeet Singh
1c4a48bd11 NimBLE: Added custom GATT Server functionality and encryption (v4.4) 2023-03-13 19:46:38 +05:30
Zim Kalinowski
63f78a82f0 Merge branch 'bugfix/ulp_docs_incorrect_jump_desc_v4.4' into 'release/v4.4'
docs: Updated incorrect description for ULP FSM JUMPR and JUMPS instructions (v4.4)

See merge request espressif/esp-idf!22732
2023-03-13 21:29:27 +08:00
wuzhenghui
91b9483987 Revert "optimize deep sleep current in wifi softap mode"
This reverts commit 344ec80fad.
2023-03-13 20:41:16 +08:00
Sudeep Mohanty
c1ca9222fa docs: Updated incorrect description for ULP FSM JUMPR and JUMPS instructions
This commit updates the incorrect description for the JUMPR and JUMPS
instructions for ULP FSM on esp32/s2/s3.

Closes https://github.com/espressif/esp-idf/issues/10923
2023-03-13 11:04:30 +01:00
Zim Kalinowski
82f10149c2 Merge branch 'feature/docker_add_ruby_bsd_4.4' into 'release/v4.4'
feat (cmock): add ruby and libbsd-dev to docker image (backport v4.4)

See merge request espressif/esp-idf!22705
2023-03-13 15:37:22 +08:00
Jiang Jiang Jian
9f8f60ddb8 Merge branch 'bugfix/fix_hidh_connection_bug_v4.4' into 'release/v4.4'
Bugfix/Fix HID Host bug when handling the two consecutive connection request[backport 4.4]

See merge request espressif/esp-idf!22722
2023-03-13 15:07:11 +08:00
Jiang Jiang Jian
d56a3b5dd3 Merge branch 'bugfix/wifi_enterprise_example_typo_v4.4' into 'release/v4.4'
esp_wifi: fix typo in wifi_enterprise example README (Backport v4.4)

See merge request espressif/esp-idf!22651
2023-03-13 14:06:24 +08:00
liqigan
f0394b03bc fix HID Host bug when handling the two consecutive connection request
Closes https://github.com/espressif/esp-idf/issues/10504
2023-03-13 10:22:28 +08:00
Jakob Hasse
2b9053fe97 feat (cmock): add ruby and libbsd-dev to docker image
Closes https://github.com/espressif/esp-idf/issues/9342
2023-03-10 17:54:33 +08:00
Ivan Grokhotkov
fee50c208a Merge branch 'bugfix/modbus_remove_manifest_from_subrepo' into 'release/v4.4'
freemodbus: remove component manifest file from freemodbus subrepo

See merge request espressif/esp-idf!22693
2023-03-10 17:23:32 +08:00
Alex Lisitsyn
67b3b263db freemodbus: remove component manifest file from freemodbus subrepo 2023-03-10 17:23:32 +08:00
Wang Meng Yang
712f6cb95c Merge branch 'bugfix/spp_server_doc_v4.4' into 'release/v4.4'
SPP server documentation fix (v4.4)

See merge request espressif/esp-idf!22679
2023-03-10 17:22:19 +08:00
Michael (XIAO Xufeng)
8232f23f65 Merge branch 'feature/apply_new_version_logic_v4.4' into 'release/v4.4'
all: Apply new version logic (major * 100 + minor) (v4.4)

See merge request espressif/esp-idf!22481
2023-03-10 14:52:18 +08:00
Zim Kalinowski
1500d703a1 Merge branch 'bugfix/spram_and_virt_efuse_can_work_v4.4' into 'release/v4.4'
esp_psram: Use efuse_ll instead of efuse API (v4.4)

See merge request espressif/esp-idf!22642
2023-03-09 22:19:12 +08:00
isha.pardikar@espressif.com
e0aa158399 Doc : SPP server documentation fix
Closes https://github.com/espressif/esp-idf/issues/10930
2023-03-09 11:59:00 +05:30
morris
6e950ad679 Merge branch 'bugfix/adc2_legacy_oneshot_clk_gating_issue' into 'release/v4.4'
adc: fix legacy oneshot driver clock gating issue on c3 (v4.4)

See merge request espressif/esp-idf!22609
2023-03-09 13:29:40 +08:00
morris
7d727fffdd Merge branch 'bugfix/return_error_when_fail_detect_oct_psram_v4.4' into 'release/v4.4'
esp_psram: return error when fail to detect oct psram (v4.4)

See merge request espressif/esp-idf!22613
2023-03-09 13:28:58 +08:00
morris
4b498e8bce Merge branch 'bugfix/fix_btld_app_overlap_c2_v4.4' into 'release/v4.4'
ld: fixed bootloader and app potential overlap issue (v4.4)

See merge request espressif/esp-idf!22570
2023-03-09 13:28:36 +08:00
morris
028f48369c Merge branch 'bugfix/no_more_public_adc2_dma_on_c3_s3_v4.4' into 'release/v4.4'
adc: no longer support adc2 continuous mode on esp32c3 and esp32s3 (v4.4)

See merge request espressif/esp-idf!21649
2023-03-09 13:27:25 +08:00