scm_tests.c
来自「Freescale MCF5445evb 参考测试代码」· C语言 代码 · 共 41 行
C
41 行
/*! * \file scm_tests.c * \brief SCM Test Routines * * Test the System Control Module RedStripe * * \version $Revision: 1.1 $ * \author Michael Norman */ #include "common.h"#include "scm_tests.h"#include "watchdog.h"/********************************************************************/voidscm_wdt_timeout (void){ watchdog_init();}/********************************************************************/voidscm_wdt_invalid_service (void){ int i; watchdog_init(); for (i = 0; i < 1000; i++) ; /* * If the CWT is enabled, then any write of a data value other * than 0x55 or 0xAA causes an immediate system reset, regardless * of the value in the CWCR[CWRI] field. */ MCF_SCM_CWSR = 0x55; MCF_SCM_CWSR = 0xA5;}/********************************************************************/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?