Document API IEC60730 Library
Classes | Macros | Enumerations | Functions | Variables
sl_iec60730_watchdog.h File Reference

Watchdog check. More...

#include <stdint.h>
#include "em_wdog.h"
#include "sl_iec60730.h"

Go to the source code of this file.

Classes

struct  sl_iec60730_watchdog_t
 Watchdog component configuration structure. More...
 

Macros

#define SL_IEC60730_WDOGINST_NUMB   1
 Default configuration number of enabled watchdog.
 
#define SL_IEC60730_WDOG_WAIT_TIMEOUT   (uint32_t) 0x0000FFFFUL
 Timeout time to wait for wachdog to reset.
 
#define SL_IEC60730_WDOG_INST(n)   WDOG##n
 Define gets the default value of watchdog(n).
 
#define SL_IEC60730_RST   RMU
 Hardware manages the reset cause of the device. With series 2 is EMU.
 
#define SL_IEC60730_RSTCAUSE_POR   RMU_RSTCAUSE_PORST
 The reset cause of the device is power on reset.
 
#define SL_IEC60730_RSTCAUSE_EM4   RMU_RSTCAUSE_EM4RST
 The reset cause of the device is em4 reset.
 
#define SL_IEC60730_RSTCAUSE_WDOG0   RMU_RSTCAUSE_WDOGRST
 The reset cause of the device is watchdog reset.
 
#define SL_IEC60730_RSTCAUSE_WDOG1   RMU_RSTCAUSE_WDOGRST
 The reset cause of the device is watchdog reset.
 
#define SL_IEC60730_RSTCAUSES_CLEAR()
 Function macro clear hardware reset cause bit SL_IEC60730_RST.
 
#define SL_IEC60730_RSTCAUSE   (SL_IEC60730_RST->RSTCAUSE)
 Enable bit flag clear causes reset.
 
#define SL_IEC60730_RSTCAUSE   (SL_IEC60730_RST->RSTCAUSE)
 Enable bit flag clear causes reset.
 
#define SL_IEC60730_RST_POR   (SL_IEC60730_RSTCAUSE & SL_IEC60730_RSTCAUSE_POR)
 
#define SL_IEC60730_RST_EM4   (SL_IEC60730_RSTCAUSE & SL_IEC60730_RSTCAUSE_EM4)
 
#define SL_IEC60730_RST_WDOG0   (SL_IEC60730_RSTCAUSE & SL_IEC60730_RSTCAUSE_WDOG0)
 
#define SL_IEC60730_RST_WDOG1   (SL_IEC60730_RSTCAUSE & SL_IEC60730_RSTCAUSE_WDOG1)
 
#define SL_IEC60730_RST_WDOGS   (SL_IEC60730_RST_WDOG0 || SL_IEC60730_RST_WDOG1)
 
#define SL_IEC60730_BURAM_IDX   0UL
 index buram to store the value
 

Enumerations

enum  sl_iec60730_test_watchdog_t { SL_IEC60730_WATCHDOG_INVALID = 0, SL_IEC60730_WATCHDOG_TESTING = 1, SL_IEC60730_WATCHDOG_VALID = 2 }
 State of watchdog testing. More...
 

Functions

sl_iec60730_test_result_t sl_iec60730_watchdog_post (void)
 

Variables

volatile sl_iec60730_test_watchdog_t iec60730_watchdog_state
 

Detailed Description

Watchdog check.

License

Copyright 2023 Silicon Laboratories Inc. www.silabs.com

The licensor of this software is Silicon Laboratories Inc. Your use of this software is governed by the terms of Silicon Labs Master Software License Agreement (MSLA) available at www.silabs.com/about-us/legal/master-software-license-agreement. This software is distributed to you in Source Code format and is governed by the sections of the MSLA applicable to Source Code.