mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user