mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 09:07:46 -04:00
Revert "Fix: Add Parenthesis around if-statement in macro (#138)"
This reverts commit 45e97bd246
.
This commit is contained in:
parent
d7fd5a1195
commit
44a9fdb93d
1 changed files with 1 additions and 6 deletions
|
@ -90,12 +90,7 @@
|
||||||
|
|
||||||
#define portNVIC_INT_CTRL_REG ( *( ( volatile uint32_t * ) 0xe000ed04 ) )
|
#define portNVIC_INT_CTRL_REG ( *( ( volatile uint32_t * ) 0xe000ed04 ) )
|
||||||
#define portNVIC_PENDSVSET_BIT ( 1UL << 28UL )
|
#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 )
|
#define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue