Skip to content

Commit

Permalink
POSIX port fixes (#626)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Feb 27, 2023
1 parent 8cd5451 commit cd87681
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions portable/ThirdParty/GCC/Posix/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
typedef struct THREAD
{
pthread_t pthread;
pdTASK_CODE pxCode;
TaskFunction_t pxCode;
void * pvParams;
BaseType_t xDying;
struct event * ev;
Expand Down Expand Up @@ -127,9 +127,9 @@ void prvFatalError( const char * pcCall,
/*
* See header file for description.
*/
portSTACK_TYPE * pxPortInitialiseStack( portSTACK_TYPE * pxTopOfStack,
portSTACK_TYPE * pxEndOfStack,
pdTASK_CODE pxCode,
portSTACK_TYPE * pxPortInitialiseStack( StackType_t * pxTopOfStack,
StackType_t * pxEndOfStack,
TaskFunction_t pxCode,
void * pvParameters )
{
Thread_t * thread;
Expand Down
2 changes: 1 addition & 1 deletion portable/ThirdParty/GCC/Posix/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ typedef unsigned long TickType_t;
#define portSTACK_GROWTH ( -1 )
#define portHAS_STACK_OVERFLOW_CHECKING ( 1 )
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
#define portTICK_RATE_MICROSECONDS ( ( portTickType ) 1000000 / configTICK_RATE_HZ )
#define portTICK_RATE_MICROSECONDS ( ( TickType_t ) 1000000 / configTICK_RATE_HZ )
#define portBYTE_ALIGNMENT 8
/*-----------------------------------------------------------*/

Expand Down

0 comments on commit cd87681

Please sign in to comment.