IRPyro messaging application
Communications program between IRPyro and IRPyro evaluation tool
Watchdog_Driver.h File Reference

This file contains all the functions involving the watchdog Timer. More...

#include "stm32f30x_iwdg.h"
Include dependency graph for Watchdog_Driver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Watchdog_Config_Type
 

Macros

#define WATCHDOG_ENABLE_DEFAULT   0
 
#define WATCHDOG_LONG_TIMEOUT_DEFAULT   0xC35
 
#define WATCHDOG_SHORT_TIMEOUT_DEFAULT   0x1D5
 
#define WATCHDOG_TIMEOUT_SETTING_DEFAULT   Short_Timeout
 

Enumerations

enum  Timeout_Length_Type { Short_Timeout, Long_Timeout }
 

Functions

void Reload_Counter (void)
 Reloads the counter for the watchdog to avoid resetting when the hardware has not hung up. More...
 
void Timeout_Set (Timeout_Length_Type Timeout_Length_Types)
 Used to increase the timeout period. This is used when the device is going to be doing a very time consuming task that would temporarily freeze the main loop. More...
 
void Watchdog_Init (Watchdog_Config_Type *External_Config)
 Initializes the Watchdog Timer used incase the MCU hangs up. More...
 

Detailed Description

This file contains all the functions involving the watchdog Timer.

Author
Hugo Vargas Llanas, _KEMET Ltd.
Date
21-April-2015

Definition in file Watchdog_Driver.h.

Macro Definition Documentation

◆ WATCHDOG_ENABLE_DEFAULT

#define WATCHDOG_ENABLE_DEFAULT   0

Definition at line 21 of file Watchdog_Driver.h.

◆ WATCHDOG_LONG_TIMEOUT_DEFAULT

#define WATCHDOG_LONG_TIMEOUT_DEFAULT   0xC35

Definition at line 18 of file Watchdog_Driver.h.

◆ WATCHDOG_SHORT_TIMEOUT_DEFAULT

#define WATCHDOG_SHORT_TIMEOUT_DEFAULT   0x1D5

Definition at line 19 of file Watchdog_Driver.h.

◆ WATCHDOG_TIMEOUT_SETTING_DEFAULT

#define WATCHDOG_TIMEOUT_SETTING_DEFAULT   Short_Timeout

Definition at line 20 of file Watchdog_Driver.h.

Enumeration Type Documentation

◆ Timeout_Length_Type

Enumerator
Short_Timeout 
Long_Timeout 

Definition at line 21 of file Watchdog_Driver.h.