summaryrefslogtreecommitdiff
path: root/Source/portable/IAR/V850ES_Fx3/portmacro.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/portable/IAR/V850ES_Fx3/portmacro.h')
-rw-r--r--Source/portable/IAR/V850ES_Fx3/portmacro.h56
1 files changed, 26 insertions, 30 deletions
diff --git a/Source/portable/IAR/V850ES_Fx3/portmacro.h b/Source/portable/IAR/V850ES_Fx3/portmacro.h
index 55a802b1..92afd1b3 100644
--- a/Source/portable/IAR/V850ES_Fx3/portmacro.h
+++ b/Source/portable/IAR/V850ES_Fx3/portmacro.h
@@ -91,34 +91,34 @@ extern "C" {
/* Critical section control macros. */
#define portNO_CRITICAL_SECTION_NESTING ( ( unsigned portBASE_TYPE ) 0 )
-#define portENTER_CRITICAL() \
-{ \
-extern volatile /*unsigned portSHORT*/ portSTACK_TYPE usCriticalNesting; \
- \
- portDISABLE_INTERRUPTS(); \
- \
- /* Now interrupts are disabled ulCriticalNesting can be accessed */ \
- /* directly. Increment ulCriticalNesting to keep a count of how many */ \
- /* times portENTER_CRITICAL() has been called. */ \
- usCriticalNesting++; \
+#define portENTER_CRITICAL() \
+{ \
+extern volatile /*unsigned portSHORT*/ portSTACK_TYPE usCriticalNesting; \
+ \
+ portDISABLE_INTERRUPTS(); \
+ \
+ /* Now interrupts are disabled ulCriticalNesting can be accessed */ \
+ /* directly. Increment ulCriticalNesting to keep a count of how many */ \
+ /* times portENTER_CRITICAL() has been called. */ \
+ usCriticalNesting++; \
}
-#define portEXIT_CRITICAL() \
-{ \
-extern volatile /*unsigned portSHORT*/ portSTACK_TYPE usCriticalNesting; \
- \
- if( usCriticalNesting > portNO_CRITICAL_SECTION_NESTING ) \
- { \
- /* Decrement the nesting count as we are leaving a critical section. */ \
- usCriticalNesting--; \
- \
- /* If the nesting level has reached zero then interrupts should be */ \
- /* re-enabled. */ \
- if( usCriticalNesting == portNO_CRITICAL_SECTION_NESTING ) \
- { \
- portENABLE_INTERRUPTS(); \
- } \
- } \
+#define portEXIT_CRITICAL() \
+{ \
+extern volatile /*unsigned portSHORT*/ portSTACK_TYPE usCriticalNesting; \
+ \
+ if( usCriticalNesting > portNO_CRITICAL_SECTION_NESTING ) \
+ { \
+ /* Decrement the nesting count as we are leaving a critical section. */ \
+ usCriticalNesting--; \
+ \
+ /* If the nesting level has reached zero then interrupts should be */ \
+ /* re-enabled. */ \
+ if( usCriticalNesting == portNO_CRITICAL_SECTION_NESTING ) \
+ { \
+ portENABLE_INTERRUPTS(); \
+ } \
+ } \
}
/*-----------------------------------------------------------*/
@@ -127,7 +127,6 @@ extern void vPortYield( void );
extern void vPortStart( void );
extern void portSAVE_CONTEXT( void );
extern void portRESTORE_CONTEXT( void );
-//#define portYIELD() vPortYield()
#define portYIELD() __asm ( "trap 0" )
#define portNOP() __asm ( "NOP" )
extern void vTaskSwitchContext( void );
@@ -146,9 +145,6 @@ extern void vTaskSwitchContext( void );
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )
-static __interrupt void MD_INTP0(void);
-
-
#ifdef __cplusplus
}
#endif