Merge branch 'refactor/posix_linux_sim_docs_code_format' into 'master'

[freertos/linux]: improved docs and coding style in non-SMP code

See merge request espressif/esp-idf!21832
This commit is contained in:
Zim Kalinowski
2023-01-10 16:32:15 +08:00
3 changed files with 29 additions and 29 deletions

View File

@@ -81,7 +81,7 @@ extern void vPortYield( void );
#define portYIELD() vPortYield() #define portYIELD() vPortYield()
#define portEND_SWITCHING_ISR( xSwitchRequired ) if( xSwitchRequired != pdFALSE ) vPortYield() #define portEND_SWITCHING_ISR( xSwitchRequired ) if( (xSwitchRequired) != pdFALSE ) vPortYield()
#define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x )
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/

View File

@@ -10,7 +10,7 @@
#include "sdkconfig.h" #include "sdkconfig.h"
/* /*
This file get's pulled into assembly sources. Therefore, some includes need to be wrapped in #ifndef __ASSEMBLER__ This file gets pulled into assembly sources. Therefore, some includes need to be wrapped in #ifndef __ASSEMBLER__
*/ */
#ifndef __ASSEMBLER__ #ifndef __ASSEMBLER__
@@ -104,7 +104,7 @@ This file get's pulled into assembly sources. Therefore, some includes need to b
#define configTICK_RATE_HZ CONFIG_FREERTOS_HZ #define configTICK_RATE_HZ CONFIG_FREERTOS_HZ
#ifdef CONFIG_IDF_TARGET_LINUX #ifdef CONFIG_IDF_TARGET_LINUX
#define configMAX_PRIORITIES ( 7 ) // Default in upstream simulator #define configMAX_PRIORITIES ( 7 ) // Default in upstream simulator
/* The stack allocated by FreeRTOS will be passed passed to a pthread. /* The stack allocated by FreeRTOS will be passed to a pthread.
pthread has a minimal stack size which currently is 16KB. pthread has a minimal stack size which currently is 16KB.
The rest is for additional structures of the POSIX/Linux port. The rest is for additional structures of the POSIX/Linux port.
This is a magic number since PTHREAD_STACK_MIN seems to not be a constant. */ This is a magic number since PTHREAD_STACK_MIN seems to not be a constant. */