From 148c81a7bcf78dedf7b8c18319585b3232565c39 Mon Sep 17 00:00:00 2001 From: alfred gedeon Date: Fri, 28 Aug 2020 14:19:31 -0700 Subject: [PATCH] Revert "Fix: Add Parenthesis around if-statement in macro (#138)" (#148) This reverts commit 45e97bd246e115ca9ebdd6538939478c6c6e6343. --- portable/GCC/ARM_CM4F/portmacro.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/portable/GCC/ARM_CM4F/portmacro.h b/portable/GCC/ARM_CM4F/portmacro.h index 173c7cb80..ebc96431f 100644 --- a/portable/GCC/ARM_CM4F/portmacro.h +++ b/portable/GCC/ARM_CM4F/portmacro.h @@ -90,12 +90,7 @@ #define portNVIC_INT_CTRL_REG ( *( ( volatile uint32_t * ) 0xe000ed04 ) ) #define portNVIC_PENDSVSET_BIT ( 1UL << 28UL ) - - #define portEND_SWITCHING_ISR( xSwitchRequired ) \ - do { \ - if( (xSwitchRequired) != pdFALSE ) portYIELD(); \ - } while (0) - + #define portEND_SWITCHING_ISR( xSwitchRequired ) if( xSwitchRequired != pdFALSE ) portYIELD() #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) /*-----------------------------------------------------------*/