Reading PSR
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-05-16 1:00 AM
Posted on May 16, 2013 at 10:00
Hi
Does anybody have some inline GCC assembly to read the PSR? I am coming from an IAR background and in IAR I just used __get_PSR(), but this is not available in GCC - CrossStudio for Arm from Rowley. Any help in reading the PSR from C code in GCC will be helpful. Thanks,Gawie
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-05-16 8:45 AM
Posted on May 16, 2013 at 17:45To answer my own question: It can obviously be found in the CMSIS library as __get_xPSR() in core_cmFunc.h.
