mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:32:42 -05:00 
			
		
		
		
	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 <jacques.guillou.job@gmail.com> Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									8cd5451ad5
								
							
						
					
					
						commit
						cd87681789
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		
							
								
								
									
										8
									
								
								portable/ThirdParty/GCC/Posix/port.c
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								portable/ThirdParty/GCC/Posix/port.c
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -73,7 +73,7 @@
 | 
			
		|||
typedef struct THREAD
 | 
			
		||||
{
 | 
			
		||||
    pthread_t pthread;
 | 
			
		||||
    pdTASK_CODE pxCode;
 | 
			
		||||
    TaskFunction_t pxCode;
 | 
			
		||||
    void * pvParams;
 | 
			
		||||
    BaseType_t xDying;
 | 
			
		||||
    struct event * ev;
 | 
			
		||||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								portable/ThirdParty/GCC/Posix/portmacro.h
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								portable/ThirdParty/GCC/Posix/portmacro.h
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue