From 7d3e1c85c03c99bc8dfc85e2b83f9cbb068b8e67 Mon Sep 17 00:00:00 2001 From: Ha Thach Date: Thu, 16 Nov 2023 22:59:04 +0700 Subject: [PATCH] fix IAR/CM0/portmacro.h missing semicolon --- portable/IAR/ARM_CM0/portmacro.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/portable/IAR/ARM_CM0/portmacro.h b/portable/IAR/ARM_CM0/portmacro.h index fa8438fecf..88cba20167 100644 --- a/portable/IAR/ARM_CM0/portmacro.h +++ b/portable/IAR/ARM_CM0/portmacro.h @@ -87,18 +87,18 @@ extern void vPortYield( void ); #define portNVIC_INT_CTRL ( ( volatile uint32_t * ) 0xe000ed04 ) #define portNVIC_PENDSVSET 0x10000000 #define portYIELD() vPortYield() -#define portEND_SWITCHING_ISR( xSwitchRequired ) \ - do \ - { \ - if( xSwitchRequired != pdFALSE ) \ - { \ - traceISR_EXIT_TO_SCHEDULER(); \ - *( portNVIC_INT_CTRL ) = portNVIC_PENDSVSET \ - } \ - else \ - { \ - traceISR_EXIT(); \ - } \ +#define portEND_SWITCHING_ISR( xSwitchRequired ) \ + do \ + { \ + if( xSwitchRequired != pdFALSE ) \ + { \ + traceISR_EXIT_TO_SCHEDULER(); \ + *( portNVIC_INT_CTRL ) = portNVIC_PENDSVSET; \ + } \ + else \ + { \ + traceISR_EXIT(); \ + } \ } while( 0 ) #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x ) /*-----------------------------------------------------------*/