| ChibiOS/HAL
    6.1.0
    | 
Generic WDG Driver. More...
|   | 
Generic WDG Driver.
This module defines an abstract interface for a watchdog timer.
HAL_USE_WDG option must be enabled in halconf.h. | Macros | |
| #define | wdgResetI(wdgp) wdg_lld_reset(wdgp) | 
| Resets WDG's counter.  More... | |
| Configuration options | |
| #define | PLATFORM_WDG_USE_WDG1 FALSE | 
| WDG1 driver enable switch.  More... | |
| Typedefs | |
| typedef struct WDGDriver | WDGDriver | 
| Type of a structure representing an WDG driver.  More... | |
| Data Structures | |
| struct | WDGConfig | 
| Driver configuration structure.  More... | |
| struct | WDGDriver | 
| Structure representing an WDG driver.  More... | |
| Functions | |
| void | wdgInit (void) | 
| WDG Driver initialization.  More... | |
| void | wdgStart (WDGDriver *wdgp, const WDGConfig *config) | 
| Configures and activates the WDG peripheral.  More... | |
| void | wdgStop (WDGDriver *wdgp) | 
| Deactivates the WDG peripheral.  More... | |
| void | wdgReset (WDGDriver *wdgp) | 
| Resets WDG's counter.  More... | |
| void | wdg_lld_init (void) | 
| Low level WDG driver initialization.  More... | |
| void | wdg_lld_start (WDGDriver *wdgp) | 
| Configures and activates the WDG peripheral.  More... | |
| void | wdg_lld_stop (WDGDriver *wdgp) | 
| Deactivates the WDG peripheral.  More... | |
| void | wdg_lld_reset (WDGDriver *wdgp) | 
| Reloads WDG's counter.  More... | |
| Enumerations | 
| #define wdgResetI | ( | wdgp | ) | wdg_lld_reset(wdgp) | 
Resets WDG's counter.
| [in] | wdgp | pointer to the WDGDriverobject | 
Definition at line 68 of file hal_wdg.h.
Referenced by wdgReset().
| #define PLATFORM_WDG_USE_WDG1 FALSE | 
Type of a structure representing an WDG driver.
Definition at line 62 of file hal_wdg_lld.h.
| enum wdgstate_t | 
| void wdgInit | ( | void | ) | 
WDG Driver initialization.
halInit(), there is no need to explicitly initialize the driver.Definition at line 56 of file hal_wdg.c.
References wdg_lld_init().
Referenced by halInit().

Configures and activates the WDG peripheral.
Definition at line 69 of file hal_wdg.c.
References WDGDriver::config, osalDbgAssert, osalDbgCheck, osalSysLock(), osalSysUnlock(), WDGDriver::state, wdg_lld_start(), WDG_READY, and WDG_STOP.

| void wdgStop | ( | WDGDriver * | wdgp | ) | 
Deactivates the WDG peripheral.
| [in] | wdgp | pointer to the WDGDriverobject | 
Definition at line 89 of file hal_wdg.c.
References WDGDriver::config, osalDbgAssert, osalDbgCheck, osalSysLock(), osalSysUnlock(), WDGDriver::state, wdg_lld_stop(), WDG_READY, and WDG_STOP.

| void wdgReset | ( | WDGDriver * | wdgp | ) | 
Resets WDG's counter.
| [in] | wdgp | pointer to the WDGDriverobject | 
Definition at line 112 of file hal_wdg.c.
References osalDbgAssert, osalDbgCheck, osalSysLock(), osalSysUnlock(), WDGDriver::state, WDG_READY, and wdgResetI.

| void wdg_lld_init | ( | void | ) | 
Low level WDG driver initialization.
Definition at line 62 of file hal_wdg_lld.c.
Referenced by wdgInit().
| void wdg_lld_start | ( | WDGDriver * | wdgp | ) | 
Configures and activates the WDG peripheral.
| [in] | wdgp | pointer to the WDGDriverobject | 
Definition at line 73 of file hal_wdg_lld.c.
Referenced by wdgStart().
| void wdg_lld_stop | ( | WDGDriver * | wdgp | ) | 
Deactivates the WDG peripheral.
| [in] | wdgp | pointer to the WDGDriverobject | 
Definition at line 85 of file hal_wdg_lld.c.
Referenced by wdgStop().
| void wdg_lld_reset | ( | WDGDriver * | wdgp | ) | 
Reloads WDG's counter.
| [in] | wdgp | pointer to the WDGDriverobject | 
Definition at line 97 of file hal_wdg_lld.c.