📄 rsthal.c
字号:
/*****************************************************************************
* This module configures function to return the reset reasons
*
*
* (c) Copyright 2006, Freescale, Inc. All rights reserved.
*
* Freescale Semiconductor Confidential Proprietary
*
* No part of this document must be reproduced in any form - including copied,
* transcribed, printed or by any electronic means - without specific written
* permission from Freescale Semiconductor Danmark A/S.
*****************************************************************************/
#include "EmbeddedTypes.h" /*Typedef for Data types*/
#include "IoConfig.h"
#include "RST_Interface.h"
/*****************************************************************************
******************************************************************************
* Private macros
******************************************************************************
*****************************************************************************/
#pragma CONST_SEG RST_APP_VARIABLE
/*variable in NO_INIT memory,which can be used to distinguish between the
accidental and deliberate illegal opcode instruction execution */
uint8_t gNoInitResetFlag;
#pragma CONST_SEG DEFAULT
/*****************************************************************************
******************************************************************************
* Private prototypes
******************************************************************************
*****************************************************************************/
/*None*/
/*****************************************************************************
******************************************************************************
* Private type definitions
******************************************************************************
*****************************************************************************/
/*None*/
/*****************************************************************************
******************************************************************************
* Private memory declarations
******************************************************************************
*****************************************************************************/
uint8_t gRSTResetStatus;/*illopcode and COP reset sets this variable*/
/*****************************************************************************
******************************************************************************
* Public functions
******************************************************************************
*****************************************************************************/
/*****************************************************************************
* Sets a global variable according to the reset reason detected.
*
* Interface assumptions:
*
* Return value:
* None
*
* Revison history:
* date Author Comments
* ------ ------ --------
* 241005 LS Updated
*****************************************************************************/
void RST_GetResetStatus(void){
gRSTResetStatus = SIMRS;
}
/*****************************************************************************
******************************************************************************
* Private functions
******************************************************************************
*****************************************************************************/
/*None*/
/*****************************************************************************
******************************************************************************
* Private Debug stuff
******************************************************************************
*****************************************************************************/
/*None*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -