esp-idf/components/freertos/FreeRTOS-Kernel
Darian Leung 9b3796d2f1 freertos: Add portTRY_ENTRY_CRITICAL() and deprecate legacy spinlock fucntions
Add TRY_ENTRY_CRITICAL() API to all for timeouts when entering critical sections.
The following port API were added:
- portTRY_ENTER_CRITICAL()
- portTRY_ENTER_CRITICAL_ISR()
- portTRY_ENTER_CRITICAL_SAFE()

Deprecated legacy spinlock API in favor of spinlock.h. The following API were deprecated:
- vPortCPUInitializeMutex()
- vPortCPUAcquireMutex()
- vPortCPUAcquireMutexTimeout()
- vPortCPUReleaseMutex()

Other Changes:
- Added portMUX_INITIALIZE() to replace vPortCPUInitializeMutex()
- The assembly of the critical section functions ends up being about 50 instructions longer,
  thus the spinlock test pass threshold had to be increased to account for the extra runtime.

Closes https://github.com/espressif/esp-idf/issues/5301
2021-11-22 13:28:39 +08:00
..
include/freertos freertos: update freertos folder structure to match upstream 2021-10-29 12:05:13 +08:00
portable freertos: Add portTRY_ENTRY_CRITICAL() and deprecate legacy spinlock fucntions 2021-11-22 13:28:39 +08:00
croutine.c freertos: update freertos folder structure to match upstream 2021-10-29 12:05:13 +08:00
event_groups.c freertos: Add portTRY_ENTRY_CRITICAL() and deprecate legacy spinlock fucntions 2021-11-22 13:28:39 +08:00
GitHub-FreeRTOS-Kernel-Home.url freertos: update freertos folder structure to match upstream 2021-10-29 12:05:13 +08:00
History.txt freertos: update freertos folder structure to match upstream 2021-10-29 12:05:13 +08:00
LICENSE.md freertos: update freertos folder structure to match upstream 2021-10-29 12:05:13 +08:00
list.c freertos: update freertos folder structure to match upstream 2021-10-29 12:05:13 +08:00
queue.c freertos: Add portTRY_ENTRY_CRITICAL() and deprecate legacy spinlock fucntions 2021-11-22 13:28:39 +08:00
Quick_Start_Guide.url freertos: update freertos folder structure to match upstream 2021-10-29 12:05:13 +08:00
stream_buffer.c freertos: Add portTRY_ENTRY_CRITICAL() and deprecate legacy spinlock fucntions 2021-11-22 13:28:39 +08:00
tasks.c freertos: Move Espressif's specific esp_reent_init into collective ifdef 2021-11-10 10:55:05 +08:00
timers.c freertos: Add portTRY_ENTRY_CRITICAL() and deprecate legacy spinlock fucntions 2021-11-22 13:28:39 +08:00