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

Basic watchdog implementation. More...

#include <stdint.h>
#include "common/freertos/freertos.h"

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)
 

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:
DEFINE_TASK(WDG_pet, WATCHDOG_PET_PERIOD_MS, osPriorityLow, STACK_256)
#define DEFINE_TASK(NAME, PERIOD_MS, PRIORITY, STACK_SIZE)
Scaffolds the static memory for a FreeRTOS task.
Definition freertos.h:62

◆ START_WATCHDOG_TASK

#define START_WATCHDOG_TASK ( )
Value:
START_TASK(WDG_pet)
#define START_TASK(NAME)
Initializes and starts the defined task.
Definition freertos.h:87