FreeRTOS
STACKPTR_ALIGN_DOWN
is only used within FreeRTOS.
Symbol previews are coming soon...
Symbols
loading (2/3)...
Files
loading (2/3)...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FreeRTOS
STACKPTR_ALIGN_DOWN
STACKPTR_ALIGN_DOWN macro
Align stack pointer in a downward growing stack This macro is used to round a stack pointer downwards to the nearest n-byte boundary, where n is a power of 2. This macro is generally used when allocating aligned areas on a downward growing stack.
Syntax
Show:
Summary
Declaration
from
port.c:153
#define
STACKPTR_ALIGN_DOWN
(
n
,
ptr
)
(
(
ptr
)
&
(
~
(
(
n
)
-
1
)
)
)
Arguments
Argument
n
ptr
Examples
References
from
examples
Code
Location
#define
STACKPTR_ALIGN_DOWN
(
n
,
ptr
)
(
(
ptr
)
&
(
~
(
(
n
)
-
1
)
)
)
port.c:153
uxStackPointer
=
STACKPTR_ALIGN_DOWN
(
16
,
uxStackPointer
-
XT_CP_SIZE
)
;
port.c:188
uxStackPointer
=
STACKPTR_ALIGN_DOWN
(
16
,
uxStackPointer
-
(
UBaseType_t
)
tls_area_size
)
;
port.c:244
uxStackPointer
=
STACKPTR_ALIGN_DOWN
(
16
,
uxStackPointer
-
XT_STK_FRMSZ
)
;
port.c:322
uxCoprocArea
=
STACKPTR_ALIGN_DOWN
(
16
,
uxCoprocArea
-
XT_CP_SIZE
)
;
port.c:629
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out