This example shows typical use of the Reset Control Module (RCM) module.
- Source code:
#include "drivers.h"
#if defined(__ICCARM__)
#pragma diag_suppress=Pa082
#endif
void main (void)
{
if (tmp16 & RCM_SACKERR) {
NOP(); }
if (tmp16 & RCM_MDM_AP ) {
NOP(); }
if (tmp16 & RCM_SW ) {
NOP(); }
if (tmp16 & RCM_LOCKUP ) {
NOP(); }
if (tmp16 & RCM_POR ) {
NOP(); }
if (tmp16 & RCM_PIN ) {
NOP(); }
if (tmp16 & RCM_LOL ) {
NOP(); }
if (tmp16 & RCM_LOC ) {
NOP(); }
if (tmp16 & RCM_LVD ) {
NOP(); }
if (tmp16 & RCM_WAKEUP ) {
NOP(); }
while(1);
}
- Toolchain support:
IAR EWARM 7.40.7 | KEIL uVision 5.15 | CrossWorks 3.6 | ATOLLIC TrueStudio 5.3.0 | Kinetis Design Studio 3.0.0 |
♦ | ♦ | ♦ | ♦ | ♦ |