Basic watchdog implementation.
More...
#include <stdint.h>
#include "common/rtos/rtos.h"
Go to the source code of this file.
Basic watchdog implementation.
- Author
- Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)
◆ 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
◆ was_reset_by_WDG()
| bool was_reset_by_WDG |
( |
void | | ) |
|
◆ WDG_get_CSR()
| uint32_t WDG_get_CSR |
( |
void | | ) |
|
◆ WDG_init()
◆ WDG_pet()
◆ WATCHDOG_PET_PERIOD_MS
| uint32_t WATCHDOG_PET_PERIOD_MS = 100 |
|
staticconstexpr |
◆ WATCHDOG_TIMEOUT_MS
| uint32_t WATCHDOG_TIMEOUT_MS = 1000 |
|
staticconstexpr |