STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Loading...
Searching...
No Matches
iwdg.h
Go to the documentation of this file.
1
17#ifndef IWDG_H
18#define IWDG_H
19
20#include "dbgmcu_reg.h"
21#include "driver_status.h"
22#include "iwdg_reg.h"
23
24#include <stdint.h>
25
30
53 uint32_t reload);
54
63
76
78
79#endif /* IWDG_H */
DBGMCU registers: the MCU debug component (RM0390, debug support chapter, DBGMCU).
The status every fallible driver function returns.
DriverStatus_e
Outcome of a driver call: a category for control flow, not a diagnosis.
#define DRIVER_MUST_CHECK
Make ignoring a function's result a compile error (with -Werror).
DRIVER_MUST_CHECK DriverStatus_e iwdgStart(IwdgRegisters_t *iwdg, uint32_t prescaler, uint32_t reload)
Start the watchdog, then set its prescaler and reload value.
Definition iwdg.c:42
void iwdgFreezeInDebug(DbgmcuRegisters_t *dbgmcu)
Stop the IWDG counter whenever the core is halted by a debugger.
Definition iwdg.c:83
void iwdgRefresh(IwdgRegisters_t *iwdg)
Reload the counter from RLR (KR = 0xAAAA).
Definition iwdg.c:78
IWDG registers: the independent watchdog (RM0390 section 20.4).
DBGMCU register block.
Definition dbgmcu_reg.h:24
IWDG register block.
Definition iwdg_reg.h:26