6.33 __get_MSP Intrinsic Function

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

Suggested Replacement

__get_MSP

Caveats

None.

Examples

unsigned int __get_MSP(void); 

Further Information

None.