Skip to content

Commit

Permalink
safety update watchdog
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharazi97 committed Aug 8, 2019
1 parent 4a187ee commit 6e9eafd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions targets/TARGET_STM/watchdog_api.c
Expand Up @@ -73,6 +73,9 @@ watchdog_status_t hal_watchdog_init(const watchdog_config_t *config)
return WATCHDOG_STATUS_INVALID_ARGUMENT;
}
const uint32_t rl = PR_TIMEOUT_MS2RL(pr, config->timeout_ms);
if (rl > MAX_IWDG_RL) {
rl = MAX_IWDG_RL;
}

IwdgHandle.Instance = IWDG;

Expand Down

0 comments on commit 6e9eafd

Please sign in to comment.