Skip to content

Commit 5969643

Browse files
Merge branch 'main' into fixSDCCFormatting
2 parents 1b5e670 + 4ff01a7 commit 5969643

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

portable/IAR/ARM_CM0/portmacro.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,18 @@ extern void vPortYield( void );
8787
#define portNVIC_INT_CTRL ( ( volatile uint32_t * ) 0xe000ed04 )
8888
#define portNVIC_PENDSVSET 0x10000000
8989
#define portYIELD() vPortYield()
90-
#define portEND_SWITCHING_ISR( xSwitchRequired ) \
91-
do \
92-
{ \
93-
if( xSwitchRequired != pdFALSE ) \
94-
{ \
95-
traceISR_EXIT_TO_SCHEDULER(); \
96-
*( portNVIC_INT_CTRL ) = portNVIC_PENDSVSET \
97-
} \
98-
else \
99-
{ \
100-
traceISR_EXIT(); \
101-
} \
90+
#define portEND_SWITCHING_ISR( xSwitchRequired ) \
91+
do \
92+
{ \
93+
if( xSwitchRequired != pdFALSE ) \
94+
{ \
95+
traceISR_EXIT_TO_SCHEDULER(); \
96+
*( portNVIC_INT_CTRL ) = portNVIC_PENDSVSET; \
97+
} \
98+
else \
99+
{ \
100+
traceISR_EXIT(); \
101+
} \
102102
} while( 0 )
103103
#define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x )
104104
/*-----------------------------------------------------------*/

0 commit comments

Comments
 (0)