refactor(freertos): Refactor usage of portSTACK_TYPE to StackType_t

portSTACK_TYPE is an internal macro defined by the porting layer. This commit
changes all references to StackType_t which is the official type exposed by
FreeRTOS.
This commit is contained in:
Darian Leung
2023-07-31 16:59:41 +02:00
parent 02f5b9a898
commit 1e51387222
4 changed files with 12 additions and 10 deletions

View File

@@ -25,7 +25,7 @@
* pthread has a minimal stack size which currently is 16KB.
* 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. */
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) ( 0x4000 + 40 ) / sizeof( portSTACK_TYPE ) )
#define configMINIMAL_STACK_SIZE ( ( StackType_t ) ( 0x4000 + 40 ) / sizeof( StackType_t ) )
/* Currently not used in Linux POSIX simulator */
#define configMAX_API_CALL_INTERRUPT_PRIORITY 0