Skip to content

Commit

Permalink
Rename function name
Browse files Browse the repository at this point in the history
  • Loading branch information
chinglee-iot committed Jul 8, 2024
1 parent 937dcf1 commit b7e9b2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/stack_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
/* Only the current stack state is to be checked. */
#define taskCHECK_FOR_STACK_OVERFLOW() \
do { \
TCB_t * const pxConstCurrentTCB = prvGetCurrentTaskTCBUnsafe(); \
TCB_t * const pxConstCurrentTCB = prvGetCurrentTCBUnsafe(); \
\
/* Is the currently saved stack pointer within the stack limit? */ \
if( pxConstCurrentTCB->pxTopOfStack <= pxConstCurrentTCB->pxStack + portSTACK_LIMIT_PADDING ) \
Expand All @@ -76,7 +76,7 @@
/* Only the current stack state is to be checked. */
#define taskCHECK_FOR_STACK_OVERFLOW() \
do { \
TCB_t * const pxConstCurrentTCB = prvGetCurrentTaskTCBUnsafe(); \
TCB_t * const pxConstCurrentTCB = prvGetCurrentTCBUnsafe(); \
\
/* Is the currently saved stack pointer within the stack limit? */ \
if( pxConstCurrentTCB->pxTopOfStack >= pxConstCurrentTCB->pxEndOfStack - portSTACK_LIMIT_PADDING ) \
Expand All @@ -93,7 +93,7 @@

#define taskCHECK_FOR_STACK_OVERFLOW() \
do { \
TCB_t * const pxConstCurrentTCB = prvGetCurrentTaskTCBUnsafe(); \
TCB_t * const pxConstCurrentTCB = prvGetCurrentTCBUnsafe(); \
const uint32_t * const pulStack = ( uint32_t * ) pxConstCurrentTCB->pxStack; \
const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5U; \
\
Expand All @@ -114,7 +114,7 @@

#define taskCHECK_FOR_STACK_OVERFLOW() \
do { \
TCB_t * const pxConstCurrentTCB = prvGetCurrentTaskTCBUnsafe(); \
TCB_t * const pxConstCurrentTCB = prvGetCurrentTCBUnsafe(); \
int8_t * pcEndOfStack = ( int8_t * ) pxConstCurrentTCB->pxEndOfStack; \
static const uint8_t ucExpectedStackBytes[] = { tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \
tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \
Expand Down

0 comments on commit b7e9b2d

Please sign in to comment.