File tree Expand file tree Collapse file tree 5 files changed +50
-50
lines changed Expand file tree Collapse file tree 5 files changed +50
-50
lines changed Original file line number Diff line number Diff line change @@ -77,16 +77,16 @@ typedef unsigned short UBaseType_t;
7777/* Critical section control macros. */
7878#define portNO_CRITICAL_SECTION_NESTING ( ( uint16_t ) 0 )
7979
80- #define portENTER_CRITICAL () \
81- { \
82- extern volatile uint16_t usCriticalNesting; \
83- \
84- portDISABLE_INTERRUPTS(); \
85- \
86- /* Now that interrupts are disabled, ulCriticalNesting can be accessed */ \
87- /* directly. Increment ulCriticalNesting to keep a count of how many */ \
88- /* times portENTER_CRITICAL() has been called. */ \
89- usCriticalNesting ++ ; \
80+ #define portENTER_CRITICAL () \
81+ { \
82+ extern volatile uint16_t usCriticalNesting; \
83+ \
84+ portDISABLE_INTERRUPTS(); \
85+ \
86+ /* Now that interrupts are disabled, ulCriticalNesting can be accessed */ \
87+ /* directly. Increment ulCriticalNesting to keep a count of how many */ \
88+ /* times portENTER_CRITICAL() has been called. */ \
89+ usCriticalNesting ++ ; \
9090 }
9191
9292#define portEXIT_CRITICAL () \
Original file line number Diff line number Diff line change @@ -73,16 +73,16 @@ typedef unsigned short UBaseType_t;
7373/* Critical section control macros. */
7474#define portNO_CRITICAL_SECTION_NESTING ( ( unsigned short ) 0 )
7575
76- #define portENTER_CRITICAL () \
77- { \
78- extern volatile uint16_t usCriticalNesting; \
79- \
80- portDISABLE_INTERRUPTS(); \
81- \
82- /* Now that interrupts are disabled, ulCriticalNesting can be accessed */ \
83- /* directly. Increment ulCriticalNesting to keep a count of how many */ \
84- /* times portENTER_CRITICAL() has been called. */ \
85- usCriticalNesting ++ ; \
76+ #define portENTER_CRITICAL () \
77+ { \
78+ extern volatile uint16_t usCriticalNesting; \
79+ \
80+ portDISABLE_INTERRUPTS(); \
81+ \
82+ /* Now that interrupts are disabled, ulCriticalNesting can be accessed */ \
83+ /* directly. Increment ulCriticalNesting to keep a count of how many */ \
84+ /* times portENTER_CRITICAL() has been called. */ \
85+ usCriticalNesting ++ ; \
8686 }
8787
8888#define portEXIT_CRITICAL () \
Original file line number Diff line number Diff line change @@ -78,16 +78,16 @@ typedef unsigned short UBaseType_t;
7878/* Critical section control macros. */
7979#define portNO_CRITICAL_SECTION_NESTING ( ( uint16_t ) 0 )
8080
81- #define portENTER_CRITICAL () \
82- { \
83- extern volatile uint16_t usCriticalNesting; \
84- \
85- portDISABLE_INTERRUPTS(); \
86- \
87- /* Now that interrupts are disabled, ulCriticalNesting can be accessed */ \
88- /* directly. Increment ulCriticalNesting to keep a count of how many */ \
89- /* times portENTER_CRITICAL() has been called. */ \
90- usCriticalNesting ++ ; \
81+ #define portENTER_CRITICAL () \
82+ { \
83+ extern volatile uint16_t usCriticalNesting; \
84+ \
85+ portDISABLE_INTERRUPTS(); \
86+ \
87+ /* Now that interrupts are disabled, ulCriticalNesting can be accessed */ \
88+ /* directly. Increment ulCriticalNesting to keep a count of how many */ \
89+ /* times portENTER_CRITICAL() has been called. */ \
90+ usCriticalNesting ++ ; \
9191 }
9292
9393#define portEXIT_CRITICAL () \
Original file line number Diff line number Diff line change 9696/* Critical section control macros. */
9797 #define portNO_CRITICAL_SECTION_NESTING ( ( uint16_t ) 0 )
9898
99- #define portENTER_CRITICAL () \
100- { \
101- extern volatile uint16_t usCriticalNesting; \
102- \
103- portDISABLE_INTERRUPTS(); \
104- \
105- /* Now that interrupts are disabled, ulCriticalNesting can be accessed */ \
106- /* directly. Increment ulCriticalNesting to keep a count of how many */ \
107- /* times portENTER_CRITICAL() has been called. */ \
108- usCriticalNesting ++ ; \
99+ #define portENTER_CRITICAL () \
100+ { \
101+ extern volatile uint16_t usCriticalNesting; \
102+ \
103+ portDISABLE_INTERRUPTS(); \
104+ \
105+ /* Now that interrupts are disabled, ulCriticalNesting can be accessed */ \
106+ /* directly. Increment ulCriticalNesting to keep a count of how many */ \
107+ /* times portENTER_CRITICAL() has been called. */ \
108+ usCriticalNesting ++ ; \
109109 }
110110
111111 #define portEXIT_CRITICAL () \
Original file line number Diff line number Diff line change @@ -78,16 +78,16 @@ typedef unsigned long UBaseType_t;
7878/* Critical section control macros. */
7979#define portNO_CRITICAL_SECTION_NESTING ( ( UBaseType_t ) 0 )
8080
81- #define portENTER_CRITICAL () \
82- { \
83- extern volatile /*uint16_t*/ portSTACK_TYPE usCriticalNesting ; \
84- \
85- portDISABLE_INTERRUPTS (); \
86- \
87- /* Now that interrupts are disabled, ulCriticalNesting can be accessed */ \
88- /* directly. Increment ulCriticalNesting to keep a count of how many */ \
89- /* times portENTER_CRITICAL() has been called. */ \
90- usCriticalNesting ++ ; \
81+ #define portENTER_CRITICAL () \
82+ { \
83+ extern volatile /*uint16_t*/ portSTACK_TYPE usCriticalNesting ; \
84+ \
85+ portDISABLE_INTERRUPTS (); \
86+ \
87+ /* Now that interrupts are disabled, ulCriticalNesting can be accessed */ \
88+ /* directly. Increment ulCriticalNesting to keep a count of how many */ \
89+ /* times portENTER_CRITICAL() has been called. */ \
90+ usCriticalNesting ++ ; \
9191 }
9292
9393#define portEXIT_CRITICAL () \
You can’t perform that action at this time.
0 commit comments