Library Functions.
More...
Library Functions.
| #define TM_IWDG_Reset |
( |
| ) |
(IWDG->KR = 0xAAAA) |
Reset IWDG timer.
- Note
- This function have to be called periodically to reset watchdog timer, or your system will reset
- Parameters
-
- Return values
-
- Note
- Defined as macro for faster execution
Initialize Watchdog timer.
- Note
- After you initialize it, you can't disable it unless reset occur.
- Parameters
-
| timeout. | Timeout value when watchdog reset happen if not reset by user. This parameter can be a value of TM_IWDG_Timeout_t enumeration |
- Return values
-
| Value | if system was reset because of watchdog timer
- 1: Reset happen because of watchdog
- 0: Otherwise
|