mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-21 22:11:57 -04:00
Add usage of portREMOVE_STATIC_QUALIFIER.
This commit is contained in:
parent
8ce7a79937
commit
192cc29ebc
|
@ -116,6 +116,11 @@ extern void vPortYield( void );
|
||||||
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )
|
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Required by the kernel aware debugger. */
|
||||||
|
#ifdef __DEBUG
|
||||||
|
#define portREMOVE_STATIC_QUALIFIER
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define portNOP() _asm \
|
#define portNOP() _asm \
|
||||||
NOP \
|
NOP \
|
||||||
|
|
|
@ -113,6 +113,10 @@ extern void vPortYield( void );
|
||||||
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )
|
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Required by the kernel aware debugger. */
|
||||||
|
#ifdef __DEBUG
|
||||||
|
#define portREMOVE_STATIC_QUALIFIER
|
||||||
|
#endif
|
||||||
|
|
||||||
#define portNOP() asm volatile ( "NOP" )
|
#define portNOP() asm volatile ( "NOP" )
|
||||||
|
|
||||||
|
|
|
@ -152,7 +152,15 @@ unsigned portLONG ulStatus; \
|
||||||
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )
|
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#define portEND_SWITCHING_ISR( vSwitchRequired ) if( vSwitchRequired ) SetCoreSW0()
|
#define portEND_SWITCHING_ISR( xSwitchRequired ) if( xSwitchRequired ) \
|
||||||
|
{ \
|
||||||
|
portYIELD(); \
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Required by the kernel aware debugger. */
|
||||||
|
#ifdef __DEBUG
|
||||||
|
#define portREMOVE_STATIC_QUALIFIER
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue