STM32 RTOS
0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Toggle main menu visibility
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
52
DRIVER_MUST_CHECK
DriverStatus_e
iwdgStart
(
IwdgRegisters_t
*iwdg, uint32_t prescaler,
53
uint32_t reload);
54
62
void
iwdgRefresh
(
IwdgRegisters_t
*iwdg);
63
75
void
iwdgFreezeInDebug
(
DbgmcuRegisters_t
*dbgmcu);
76
78
79
#endif
/* IWDG_H */
dbgmcu_reg.h
DBGMCU registers: the MCU debug component (RM0390, debug support chapter, DBGMCU).
driver_status.h
The status every fallible driver function returns.
DriverStatus_e
DriverStatus_e
Outcome of a driver call: a category for control flow, not a diagnosis.
Definition
driver_status.h:32
DRIVER_MUST_CHECK
#define DRIVER_MUST_CHECK
Make ignoring a function's result a compile error (with -Werror).
Definition
driver_status.h:22
iwdgStart
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
iwdgFreezeInDebug
void iwdgFreezeInDebug(DbgmcuRegisters_t *dbgmcu)
Stop the IWDG counter whenever the core is halted by a debugger.
Definition
iwdg.c:83
iwdgRefresh
void iwdgRefresh(IwdgRegisters_t *iwdg)
Reload the counter from RLR (KR = 0xAAAA).
Definition
iwdg.c:78
iwdg_reg.h
IWDG registers: the independent watchdog (RM0390 section 20.4).
DbgmcuRegisters_t
DBGMCU register block.
Definition
dbgmcu_reg.h:24
IwdgRegisters_t
IWDG register block.
Definition
iwdg_reg.h:26
drivers
inc
iwdg.h
Generated by
1.18.0