change(freertos/idf): Make v10.5.1 the default kernel

This commit makes v10.5.1 the default FreeRTOS kernel in ESP-IDF by removing
the CONFIG_FREERTOS_USE_KERNEL_10_5_1 option and v10.4.3 specific code
blocks.
This commit is contained in:
Darian Leung
2023-09-26 17:47:16 +08:00
parent 2025a77dd6
commit 16ccb31d33
14 changed files with 126 additions and 260 deletions

View File

@@ -427,10 +427,13 @@ void vPortTCBPreDeleteHook( void *pxTCB );
* - Maps to forward declared functions
* ------------------------------------------------------------------------------------------------------------------ */
#if CONFIG_FREERTOS_USE_KERNEL_10_5_1
#define portGET_CORE_ID() xPortGetCoreID()
#define portYIELD_CORE( x ) vPortYieldOtherCore( x )
#endif
// ----------------------- System --------------------------
#if ( configNUMBER_OF_CORES > 1 )
#define portGET_CORE_ID() xPortGetCoreID()
#else /* configNUMBER_OF_CORES > 1 */
#define portGET_CORE_ID() ((BaseType_t) 0);
#endif /* configNUMBER_OF_CORES > 1 */
// --------------------- Interrupts ------------------------
@@ -523,6 +526,10 @@ extern void _frxt_setup_switch( void ); //Defined in portasm.S
*/
#define portYIELD_WITHIN_API() esp_crosscore_int_send_yield(xPortGetCoreID())
#if ( configNUMBER_OF_CORES > 1 )
#define portYIELD_CORE( xCoreID ) vPortYieldOtherCore( xCoreID )
#endif /* configNUMBER_OF_CORES > 1 */
// ------------------- Hook Functions ----------------------
#define portSUPPRESS_TICKS_AND_SLEEP(idleTime) vApplicationSleep(idleTime)