WE310F5  39.00.000
m2mb_system_reset.h File Reference

M2M system reset functionality. More...

Go to the source code of this file.

Data Structures

struct  M2MB_SYSTEM_EXCEPTION_INFO
 Structure defining details of exception information. More...
 
#define M2MB_ERR_LOG_MAX_FILE_NAME_LEN   50
 
#define M2MB_ERR_LOG_MAX_THREAD_NAME_LEN   20
 
enum  M2MB_SYSTEM_RESET_RESON_T {
  M2MB_SYSTEM_BOOT_REASON_PON_COLD_BOOT,
  M2MB_SYSTEM_BOOT_REASON_WATCHDOG_BOOT,
  M2MB_SYSTEM_BOOT_REASON_SW_BOOT,
  M2MB_SYSTEM_BOOT_REASON_EXCEPTION_HARD_FAULT,
  M2MB_SYSTEM_BOOT_REASON_EXCEPTION_MEM_FAULT,
  M2MB_SYSTEM_BOOT_REASON_EXCEPTION_USAGE_FAULT,
  M2MB_SYSTEM_BOOT_REASON_EXCEPTION_BUS_FAULT,
  M2MB_SYSTEM_BOOT_REASON_STANDBY_BOOT,
  M2MB_SYSTEM_BOOT_REASON_UNKNOWN_BOOT,
  M2MB_SYSTEM_BOOT_REASON_SIZE_ENUM = 0x7FFFFFFF
}
 Enum defining different boot reason. More...
 
typedef struct M2MB_SYSTEM_EXCEPTION_INFO M2MB_SYSTEM_EXCEPTION_INFO_T
 Structure defining details of exception information. More...
 
VOID m2mb_system_reset (VOID)
 System Reset API. More...
 
M2MB_STATUS_T m2mb_get_boot_reason (M2MB_SYSTEM_RESET_RESON_T *reason)
 Boot reason. More...
 
M2MB_STATUS_T m2mb_get_exception_info (M2MB_SYSTEM_EXCEPTION_INFO_T *excptionInfo)
 To get the details on exception. More...
 
VOID m2mb_wdog_enable (VOID)
 To enable watchdog. More...
 
VOID m2mb_wdog_disable (VOID)
 To disable watchdog. More...
 
UINT32 m2mb_wdog_is_enable (VOID)
 To find whether the watchdog is enabled or not. More...
 
VOID m2mb_wdog_kick (VOID)
 To reset the watchdog. More...
 

Detailed Description

M2M system reset functionality.

m2m_system_reset.h

This files gives API details related to reset functionality.

Note
Dependencies: none
Author
SP
Date
14/02/2018

Definition in file m2mb_system_reset.h.