Commit Graph

16997 Commits

Author SHA1 Message Date
jingli
04530d7112 esp_hw_support/esp32c2/rtc: take a safer xtal buf wait 2022-09-21 12:27:26 +00:00
Darian
9657e687e4 Merge branch 'feature/freertos_10.4.3_sync_various_functions' into 'master'
FreeRTOS: (Sync v10.4.3) Update various functions (Remerge)

See merge request espressif/esp-idf!20235
2022-09-21 16:04:06 +08:00
Rocha Euripedes
819dae8008 Merge branch 'feature/mqtt_cmakefile_cleanup' into 'master'
Mqtt:  Cmakelists.txt file simplification.

See merge request espressif/esp-idf!19966
2022-09-21 15:21:07 +08:00
Jiang Jiang Jian
a0908b1764 Merge branch 'bugfix/fix_xtal32k_error_detect' into 'master'
esp_hw_support/clk_cali: fix xtal32k error detect

Closes BT-2621 and IDF-5788

See merge request espressif/esp-idf!19500
2022-09-21 13:50:56 +08:00
Gao Xu
1005c3b9d5 Merge branch 'feature/add_flash_copy_to_psram_example' into 'master'
system: add an example showing moving Flash content to PSRAM feature

Closes IDF-5156

See merge request espressif/esp-idf!19340
2022-09-21 12:15:19 +08:00
Ivan Grokhotkov
4a69a3f7ef Merge branch 'feature/cmake_use_new_features' into 'master'
cmake: use features introduced between 3.5 and 3.16

Closes IDF-5955

See merge request espressif/esp-idf!19819
2022-09-21 11:05:06 +08:00
jingli
60c1811433 esp_hw_support/clk_cali: remove redundant check for cali value 2022-09-21 03:03:25 +00:00
jingli
05a2fbe810 esp_hw_support/clk_cali: fix xtal32k error detect 2022-09-21 03:03:25 +00:00
Jiang Jiang Jian
292fe7c57f Merge branch 'bugfix/ble_light_sleep_error_on_esp32c2_master' into 'master'
Bugfix/ble light sleep error on esp32c2 master

Closes BLE-161 and BLE-162

See merge request espressif/esp-idf!20248
2022-09-21 10:53:18 +08:00
Darian
5f85f507fb Merge branch 'feature/freertos_test_reorganization' into 'master'
FreeRTOS: Add test reorganization guidelines and initial batch of refactored tests

Closes IDF-5997

See merge request espressif/esp-idf!20233
2022-09-21 00:36:51 +08:00
Kapil Gupta
2bbd5ea69c Merge branch 'bugfix/wps_connect_to_open_ap' into 'master'
esp_wifi: bugfix wps connect to open AP

See merge request espressif/esp-idf!20247
2022-09-20 23:59:47 +08:00
Mahavir Jain
44bee0acfd Merge branch 'bugfix/esptool_secure_boot_signing_key_path' into 'master'
esptool: (re)populate the secure boot signing key path

Closes IDFGH-8075

See merge request espressif/esp-idf!20218
2022-09-20 22:26:34 +08:00
Jash Gujarathi
ee493e0b45 Merge branch 'bugfix/fix_sta_scan_when_already_connected' into 'master'
esp-wifi: Restores station status to connected when no other AP is found for roam

Closes WIFI-4785

See merge request espressif/esp-idf!20120

\[WiFi\]Fixed the bug that station connected to an AP already connected caused subsequent scan fail.
2022-09-20 20:59:44 +08:00
Kapil Gupta
1cfd20c476 Merge branch 'bugfix/wps_connection_optimization' into 'master'
wpa_supplicant: Use channel from WPS scan for WPS connect

See merge request espressif/esp-idf!20184
2022-09-20 20:09:31 +08:00
Island
cfbdc55717 Merge branch 'bugfix/lpn_not_recv_message_to_all_node' into 'master'
ble_mesh: stack: Add option for lpn auto sub all-nodes

See merge request espressif/esp-idf!19711
2022-09-20 20:03:08 +08:00
Marius Vikhammer
0b0a541c7d Merge branch 'feature/pthread_pytest' into 'master'
pthread: migrate unit tests to pytest test app

Closes IDF-5600

See merge request espressif/esp-idf!20188
2022-09-20 17:58:20 +08:00
Ivan Grokhotkov
66554aa215
cmake: remove unused defines from several host test apps
These macros are seemingly only used in the NVS host test, and are not
necessary in the other host test apps.
2022-09-20 11:35:45 +02:00
Ivan Grokhotkov
c392c06216
cmake: remove -D prefix from COMPILE_DEFINITIONS property
Unlike COMPILE_OPTIONS, COMPILE_DEFINITIONS CMake property assumes
values without the -D prefix, such as NAME or NAME=VAL.
Previously, IDF build system was passing COMPILE_DEFINITIONS build
property to CMake COMPILE_OPTIONS property, so -D prefix was not
a problem.
Now that COMPILE_DEFINITIONS CMake property is used, -D prefix has
to be removed.

(Note that this doesn't affect 'target_compile_definitions' function,
which strips -D prefix before adding the definition to the property.)
2022-09-20 11:08:02 +02:00
Ivan Grokhotkov
237b2ce40c
cmake: use target_link_options and _directories supported since 3.13
Now that the supported CMake version is >=3.16, this code can be
simplified.

The code to deduplicate the directories can be removed since this is
handled by target_link_directories.
2022-09-20 11:08:02 +02:00
Ivan Grokhotkov
72b8ff7f87
cmake: use the ternary generator expressions supported since 3.8
Now that the supported CMake version is >=3.16, this code can be
simplified.
2022-09-20 11:08:02 +02:00
Darian Leung
c126b910b6 freertos: Expand CONFIG_FREERTOS_SMP description
This commit adds more details to the CONFIG_FREERTOS_SMP option's description.
2022-09-20 16:46:43 +08:00
Darian Leung
882515fcef freertos: Add priority scheduling unit tests
This commit adds a priority scheduling unit test to test that the scheduler
always schedules the highest priority ready state task. Single core and SMP
variants of the test are both added.
2022-09-20 16:46:43 +08:00
Darian Leung
188c21319d freertos: Add test reorganization README.md and portTestMacro.h
This commit adds a README.md containing guidelines on how to refactor the
FreeRTOS unit tests for upstreaming. A portTestMacro.h header was also added
which contains port implementation specific macros used by the test cases.
2022-09-20 16:46:43 +08:00
Mahavir Jain
59f79a7b92 Merge branch 'bugfix/parttool_commands_extra_partition_subtypes' into 'master'
parttool: fix parttool commands attribute parsing

Closes IDF-5879

See merge request espressif/esp-idf!20122
2022-09-20 16:22:53 +08:00
Jiang Jiang Jian
19759d5d33 Merge branch 'bugfix/acl_buf_ocf_and_conn_fail' into 'master'
bugfix/fixed the exhaustion of ACL buffer and duplicated connection requests

Closes ESPCS-855

See merge request espressif/esp-idf!19794
2022-09-20 15:12:14 +08:00
Chen Jian Hua
6014e92a8d Merge branch 'bugfix/fix_ble_gen_rpa_by_host' into 'master'
Bluedroid: fix ble rpa generate and update by host

See merge request espressif/esp-idf!19617
2022-09-20 14:49:26 +08:00
zwl
16c8a369e6 fixed wifi can't be connected after enable bt sleep mode 2022-09-20 14:44:00 +08:00
Shreyas Sheth
d12351f7a6 esp_wifi: bugfix wps connect to open AP
Set Mac address in correct field
2022-09-20 11:43:53 +05:30
Wang Meng Yang
02aad58856 Merge branch 'bugfix/fix_ble_disconnect_due_to_channel_map_instant_passed' into 'master'
Fixed BLE disconnection issue when channel map instant passed due to bad channels

Closes BT-2764, BT-2730, and BT-2649

See merge request espressif/esp-idf!20189
2022-09-20 14:13:27 +08:00
harshal.patil
aca27c8db2 parttool: fix extra_partition_subtypes attribute parsing 2022-09-20 11:28:52 +05:30
jgujarathi
9e44dde2cd esp_wifi : updated the wifi lib to fix the printf issue on esp32c2 2022-09-20 05:45:30 +00:00
jgujarathi
b5b1a1f31d esp-wifi : Adds the status connected for station, when the station is already connected to the ap of the same bss- wifi-4785 2022-09-20 05:45:30 +00:00
zwl
f42eed9491 fixed ble can't enter light sleep 2022-09-20 12:08:09 +08:00
Jiang Jiang Jian
9d8d118397 Merge branch 'feature/add_mesh_support_macro' into 'master'
ble_mesh: docs: Remove BLE Mesh related reference for C2

Closes IDF-4215

See merge request espressif/esp-idf!19513
2022-09-20 11:06:25 +08:00
Jiang Jiang Jian
09f7589ef2 Merge branch 'bugfix/fix_extend_adv_tx_pwr_signed_type_err' into 'master'
Fixed extend adv tx power range error

See merge request espressif/esp-idf!20191
2022-09-20 10:45:25 +08:00
Jiang Jiang Jian
7df49f05c3 Merge branch 'bugfix/so_linger_close_wait_forever' into 'master'
lwip: Fix close() might block forever if SO_LINGER=y

Closes IDF-5851

See merge request espressif/esp-idf!20216
2022-09-20 10:44:49 +08:00
morris
6f1d1409d1 Merge branch 'bugfix/tinyusb_corrected_typo_naming_of_acm' into 'master'
tinyusb: fix typo naming of ACM

See merge request espressif/esp-idf!20212
2022-09-20 10:31:21 +08:00
Darian Leung
7e49d67bad freertos: Move some port functions into flash by default
This commit places some functions in port.c and port_common.c into flash by
default. These functions are mostly called once during startup, thus shouldn't
affect applications much when placed into flash instead of the default IRAM.
2022-09-19 23:35:25 +08:00
Darian Leung
aa5d74410b freertos: Synchronize tasks.c functions (minor changes) to v10.4.3
This commit synchronizes multiple functions in tasks.c with upstream v10.4.3
that contain minor differences.

The following functions have had their parameter names or code formatting
updated:

- xTaskCreateStaticPinnedToCore()
- xTaskCreatePinnedToCore()
- prvInitialiseNewTask()
- prvTaskIsTaskSuspended()
- vTaskStartScheduler()
- xTaskResumeAll()
- xTaskCheckForTimeOut()
- uxTaskResetEventItemValue()

The following functions have had their missing "xAlreadyYielded" restored

- xTaskDelayUntil()
- vTaskDelay()

The following functions have had their critical section/interrupt disdable
usage update

- vTaskSuspendAll()
- xTaskGetTickCountFromISR()
- xTaskGetApplicationTaskTagFromISR()
2022-09-19 21:30:52 +08:00
Darian Leung
5742c194e1 freertos: Synchronize tasks.c functions (major changes) to v10.4.3
This commit synchronizes multiple functions that contain major differences with
upstream v10.4.3. Multi-core modifications are then reapplied to the function.

Vanilla code uses "pxTCB == pxCurrentTCB" to check whether a task is currently
running. This commit adds the following macros instead.

- taskIS_CURRENTLY_RUNNING()
- taskIS_CURRENTLY_RUNNING_ON_CORE()

The following functions have been updated to use those macros instead.

- eTaskGetState()
- vTaskPrioritySet()
- vTaskResume()

The following functions have been synchronized with upstream v10.4.3.
Multi-core modifications are then reapplied.

- vTaskSuspend()
- vTaskDelete()
- prvGetExpectedIdleTime()
2022-09-19 21:30:47 +08:00
Darian Leung
15d8fc0722 freertos: Restore xAlreadyYielded usage in event_groups
This commit restores xAlreadyYielded in various event_group functions to
synchronize with upstream v10.4.3.
2022-09-19 21:30:43 +08:00
Darian Leung
5352ba06fa freertos: Synchronize xStreamBufferSend() to v10.4.3
This commit synchronizes xStreamBufferSend() with upstream v10.4.3.
2022-09-19 21:30:38 +08:00
Darian Leung
77f2eba57e freeRTOS: Synchronize queue functions to v10.4.3
This commit synchronizes multiple functions in queue.c with upstream v10.4.3.
Multi-core modifications are then reapplied to these functions. The following
functions were modified:

prvNotifyQueueSetContainer()
xQueueGenericCreateStatic()
xQueueGenericCreate()
xQueueGetMutexHolder()
xQueueCreateCountingSemaphoreStatic()
xQueueCreateCountingSemaphore()
xQueueGenericSend()
xQueueGenericSendFromISR()
xQueueReceiveFromISR()
uxQueueMessagesWaiting()
prvUnlockQueue()
prvIsQueueFull()
xQueueAddToSet()
xQueueRemoveFromSet()
prvNotifyQueueSetContainer()

Note: The SEGGER_SYSVIEW traceQUEUE_SEND() macro was updated as the
      xCopyPosition argument is no longer available in scenarios where the
      macro is called.
2022-09-19 21:30:32 +08:00
Island
728654a6d4 Merge branch 'bugfix/memory_leak_init_deinit_blufi_example' into 'master'
Fix: blufi example memory leak while init and deinit

Closes BT-2798

See merge request espressif/esp-idf!20196
2022-09-19 20:28:07 +08:00
Marius Vikhammer
46c092c04a pthread: migrate unit tests to pytest test app 2022-09-19 17:43:33 +08:00
Jiang Jiang Jian
5aeba87e51 Merge branch 'bugfix/change_mblock_size_on_esp32c2' into 'master'
change block1 size and num for esp ble controller

Closes BLE-157

See merge request espressif/esp-idf!20183
2022-09-19 17:21:53 +08:00
Euripedes Rocha
736424c366 [MQTT] Simplifies MQTT CMakeLists file
- Uses mocks from tools instead of creating them.
- Move host based definition to test code.
2022-09-19 09:11:15 +00:00
Mahavir Jain
64129c2e51 Merge branch 'ci/migrate_mbedtls_unit_test_app' into 'master'
ci: Migrate mbedtls unit tests from unit-test-app to component-test-app

Closes IDF-5593

See merge request espressif/esp-idf!19783
2022-09-19 16:52:02 +08:00
Mahavir Jain
ca851c87cf
esptool: (re)populate the secure boot signing key path
For project with reduced component list, secure boot signing key
path was not getting correctly. This change sets the secure boot
signing key path explicitly based on the relevant config option.

Closes https://github.com/espressif/esp-idf/issues/9578
Close IDFGH-8075
2022-09-19 11:43:34 +05:30
Marius Vikhammer
cb48a7b9f9 Merge branch 'feature/ulp_fsm_adc_s3' into 'master'
ulp-fsm: Update ulp-fsm ADC example with S3 support

Closes IDFGH-6299

See merge request espressif/esp-idf!19924
2022-09-19 14:08:33 +08:00