PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
hwwdg.c File Reference
#include "pdl.h"
Include dependency graph for hwwdg.c:

Go to the source code of this file.

Macros

#define HWWDG_CTL_INTEN   (0x01u)
 
#define HWWDG_CTL_RESEN   (0x02u)
 
#define HWWDG_MAGIC_WORD_CHK1   (0x38D1AE5Cu)
 
#define HWWDG_MAGIC_WORD_CHK2   (0x7624D1BCu)
 
#define HWWDG_MAGIC_WORD_CHK_RESULT   (0xFFFFFFFFu)
 

Functions

void HwwdgIrqHandler (void)
 Hardware Watchdog Interrupt Handler. More...
 
en_result_t Hwwdg_Init (stc_hwwdg_config_t *pstcConfig)
 Initialize Hardware Watchdog. More...
 
en_result_t Hwwdg_DeInit (uint32_t u32MagicWord1, uint32_t u32MagicWord2)
 Un-Initialize Hardware Watchdog. More...
 
en_result_t Hwwdg_Start (func_ptr_t pfnHwwdgCb)
 Start the Hardware Watchdog. More...
 
void Hwwdg_Stop (void)
 Stop the Hardware Watchdog. More...
 
void Hwwdg_WriteWdgLoad (uint32_t u32LoadValue)
 Write the load value for Hardware Watchdog. More...
 
uint32_t Hwwdg_ReadWdgValue (void)
 Read the count value for Hardware Watchdog. More...
 
void Hwwdg_Feed (uint8_t u8ClearPattern1, uint8_t u8ClearPattern2)
 Feed Hardware Watchdog (Call function) More...
 
void Hwwdg_EnableDbgBrkWdgCtl (void)
 Enable Debug Break Watchdog Timer Control. More...
 
void Hwwdg_DisableDbgBrkWdgCtl (void)
 Disable Debug Break Watchdog Timer Control. More...
 

Variables

static func_ptr_t pfnHwwdgCallback
 callback function pointer for HW-Wdg Irq More...
 

Detailed Description

A detailed description is available at Hardware Watchdog Module description

History:

  • 2013-04-02 1.0 NT First version.

Definition in file hwwdg.c.