Skip to main content

IAR Embedded Workbench for Arm 9.70.x

__get_PSP

In this section:
Syntax
unsigned int __get_PSP(void);
Description

Returns the value of the PSP register (Process Stack Pointer). This intrinsic function can only be used in privileged mode, and is only available for Cortex-M devices.

Note

This intrinsic function cannot be used in 64-bit mode.

See also

__arm_rsr, __arm_rsr64, __arm_rsrp.

Note

To use intrinsic functions in an application, you must include the header file(s) where they are declared, see Summary of intrinsic functions.