mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 11:09:01 +01:00 
			
		
		
		
	Add a guard around mpu_wrappers.c (#480)
* Add a guard around mpu_wrappers.c This avoid linker errors when this file is accidently compiled in projects using non-MPU ports. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> * Fix formatting check Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
		
							parent
							
								
									356fff8028
								
							
						
					
					
						commit
						b5b1ff02dd
					
				@ -48,6 +48,8 @@
 | 
			
		||||
#undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#if ( portUSING_MPU_WRAPPERS == 1 )
 | 
			
		||||
 | 
			
		||||
    #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
 | 
			
		||||
        BaseType_t MPU_xTaskCreate( TaskFunction_t pvTaskCode,
 | 
			
		||||
                                    const char * const pcName,
 | 
			
		||||
@ -1480,3 +1482,7 @@ BaseType_t MPU_xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBuffer,
 | 
			
		||||
    #if configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS == 1
 | 
			
		||||
        #include "application_defined_privileged_functions.h"
 | 
			
		||||
    #endif
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#endif /* portUSING_MPU_WRAPPERS == 1 */
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user