Skip to content

Commit cd87681

Browse files
jacky309Jacques GUILLOUaggarg
authored
POSIX port fixes (#626)
* Fix types in POSIX port Use TaskFunction_t and StackType_t as other ports do. * Fix portTICK_RATE_MICROSECONDS in POSIX port --------- Co-authored-by: Jacques GUILLOU <[email protected]> Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>
1 parent 8cd5451 commit cd87681

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

portable/ThirdParty/GCC/Posix/port.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
typedef struct THREAD
7474
{
7575
pthread_t pthread;
76-
pdTASK_CODE pxCode;
76+
TaskFunction_t pxCode;
7777
void * pvParams;
7878
BaseType_t xDying;
7979
struct event * ev;
@@ -127,9 +127,9 @@ void prvFatalError( const char * pcCall,
127127
/*
128128
* See header file for description.
129129
*/
130-
portSTACK_TYPE * pxPortInitialiseStack( portSTACK_TYPE * pxTopOfStack,
131-
portSTACK_TYPE * pxEndOfStack,
132-
pdTASK_CODE pxCode,
130+
portSTACK_TYPE * pxPortInitialiseStack( StackType_t * pxTopOfStack,
131+
StackType_t * pxEndOfStack,
132+
TaskFunction_t pxCode,
133133
void * pvParameters )
134134
{
135135
Thread_t * thread;

portable/ThirdParty/GCC/Posix/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ typedef unsigned long TickType_t;
7373
#define portSTACK_GROWTH ( -1 )
7474
#define portHAS_STACK_OVERFLOW_CHECKING ( 1 )
7575
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
76-
#define portTICK_RATE_MICROSECONDS ( ( portTickType ) 1000000 / configTICK_RATE_HZ )
76+
#define portTICK_RATE_MICROSECONDS ( ( TickType_t ) 1000000 / configTICK_RATE_HZ )
7777
#define portBYTE_ALIGNMENT 8
7878
/*-----------------------------------------------------------*/
7979

0 commit comments

Comments
 (0)