__get_SP
In this section:
Syntax
void * __get_SP(void);
Description
Returns the value of the current stack pointer (R0).
Note
To use intrinsic functions in an application, you must include the header file(s) where they are declared, see Summary of intrinsic functions.