HARMcksL: ARM HAL toolbox (yet STM32 oriented) 1.6
SMFSW collection of HAL hacks for STM32
|
Extensions for WDG peripherals. More...
Macros | |
#define | REG_APB1 DBGMCU->APB1FZ |
#define | NAME_DBG DBGMCU_ |
#define | NAME_APB1 APB1_FZ |
Functions | |
bool | WDG_get_state_IWDG (void) |
Get IWDG status. | |
bool | WDG_get_state_WWDG (void) |
Get IWDG status. | |
void | WDG_init_check (void) |
Check IWDG & WWDG status. | |
void | WDG_refresh (void) |
Refresh IWDG & WWDG. | |
void | WDG_freeze (void) |
Freeze IWDG & WWDG. | |
void | WDG_unfreeze (void) |
Unfreeze IWDG & WWDG. | |
void | WDG_save_cfg (void) |
Save IWDG & WWDG configuration. | |
HAL_StatusTypeDef | WDG_restore_cfg (void) |
Restore saved IWDG & WWDG configuration. | |
HAL_StatusTypeDef | set_IWDG_Period_us (IWDG_HandleTypeDef *const pIwdg, const uint32_t per) |
Set IWDG period (in us) | |
uint32_t | get_IWDG_Period_us (const IWDG_HandleTypeDef *const pIwdg) |
Get IWDG period (in us) | |
Extensions for WDG peripherals.
This module is mostly meant for debug target purposes, giving the ability to call freeze/unfreeze watchdogs functions no matter the build target, watchdogs being unfrozen only when they were enabled in the first place.
#define NAME_APB1 APB1_FZ |
#define NAME_DBG DBGMCU_ |
#define REG_APB1 DBGMCU->APB1FZ |
uint32_t get_IWDG_Period_us | ( | const IWDG_HandleTypeDef *const | pIwdg | ) |
Get IWDG period (in us)
[in] | pIwdg | - Pointer to IWDG instance |
HAL_StatusTypeDef set_IWDG_Period_us | ( | IWDG_HandleTypeDef *const | pIwdg, |
const uint32_t | per ) |
Set IWDG period (in us)
[in,out] | pIwdg | - Pointer to IWDG instance |
[in] | per | - Period (in us) |
void WDG_freeze | ( | void | ) |
Freeze IWDG & WWDG.
bool WDG_get_state_IWDG | ( | void | ) |
Get IWDG status.
bool WDG_get_state_WWDG | ( | void | ) |
Get IWDG status.
void WDG_init_check | ( | void | ) |
Check IWDG & WWDG status.
void WDG_refresh | ( | void | ) |
Refresh IWDG & WWDG.
HAL_StatusTypeDef WDG_restore_cfg | ( | void | ) |
Restore saved IWDG & WWDG configuration.
void WDG_save_cfg | ( | void | ) |
Save IWDG & WWDG configuration.
void WDG_unfreeze | ( | void | ) |
Unfreeze IWDG & WWDG.