mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 11:09:01 +01:00 
			
		
		
		
	Fix: Add Parenthesis around if-statement in macro (#138)
Co-authored-by: Alfred Gedeon <gedeonag@amazon.com>
This commit is contained in:
		
							parent
							
								
									1d8df4752e
								
							
						
					
					
						commit
						45e97bd246
					
				@ -90,7 +90,12 @@
 | 
			
		||||
 | 
			
		||||
    #define portNVIC_INT_CTRL_REG     ( *( ( volatile uint32_t * ) 0xe000ed04 ) )
 | 
			
		||||
    #define portNVIC_PENDSVSET_BIT    ( 1UL << 28UL )
 | 
			
		||||
    #define portEND_SWITCHING_ISR( xSwitchRequired )    if( xSwitchRequired != pdFALSE ) portYIELD()
 | 
			
		||||
 | 
			
		||||
    #define portEND_SWITCHING_ISR( xSwitchRequired )        \
 | 
			
		||||
        do {                                                \
 | 
			
		||||
            if( (xSwitchRequired) != pdFALSE ) portYIELD(); \
 | 
			
		||||
        } while (0)
 | 
			
		||||
 | 
			
		||||
    #define portYIELD_FROM_ISR( x )                     portEND_SWITCHING_ISR( x )
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user