PER Firmware
Loading...
Searching...
No Matches
watchdog.h File Reference

Basic watchdog implementation. More...

#include <stdint.h>
#include "common/rtos/rtos.h"
Include dependency graph for watchdog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFINE_WATCHDOG_TASK()
 
#define START_WATCHDOG_TASK()
 

Functions

void WDG_init (void)
 
void WDG_pet (void)
 
uint32_t WDG_get_CSR (void)
 
bool was_reset_by_WDG (void)
 

Variables

static constexpr uint32_t WATCHDOG_TIMEOUT_MS = 1000
 
static constexpr uint32_t WATCHDOG_PET_PERIOD_MS = 100
 

Detailed Description

Basic watchdog implementation.

Author
Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)

Macro Definition Documentation

◆ DEFINE_WATCHDOG_TASK

#define DEFINE_WATCHDOG_TASK ( )
Value:
@ TASK_PRIORITY_LOW
Definition rtos.h:34
@ STACK_256
Definition rtos.h:25
#define RTOS_DEFINE_TASK(NAME, PERIOD_MS, PRIORITY, STACK_SIZE)
Defines a statically allocated periodic FreeRTOS task.
Definition rtos.h:79
void WDG_pet(void)
Definition watchdog.c:41
static constexpr uint32_t WATCHDOG_PET_PERIOD_MS
Definition watchdog.h:20

◆ START_WATCHDOG_TASK

#define START_WATCHDOG_TASK ( )
Value:
#define RTOS_START_TASK(NAME)
Creates and starts a previously defined task.
Definition rtos.h:109

Function Documentation

◆ was_reset_by_WDG()

bool was_reset_by_WDG ( void )
Here is the caller graph for this function:

◆ WDG_get_CSR()

uint32_t WDG_get_CSR ( void )
Here is the caller graph for this function:

◆ WDG_init()

void WDG_init ( void )
Here is the caller graph for this function:

◆ WDG_pet()

void WDG_pet ( void )

Variable Documentation

◆ WATCHDOG_PET_PERIOD_MS

uint32_t WATCHDOG_PET_PERIOD_MS = 100
staticconstexpr

◆ WATCHDOG_TIMEOUT_MS

uint32_t WATCHDOG_TIMEOUT_MS = 1000
staticconstexpr