Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Watchdog by
Revision 7:17a8b86deacd, committed 2016-07-12
- Comitter:
- lzbpli
- Date:
- Tue Jul 12 01:34:24 2016 +0000
- Parent:
- 6:e0f547e22dd5
- Commit message:
- 053
Changed in this revision
Watchdog.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r e0f547e22dd5 -r 17a8b86deacd Watchdog.cpp --- a/Watchdog.cpp Mon Mar 16 01:04:32 2015 +0000 +++ b/Watchdog.cpp Tue Jul 12 01:34:24 2016 +0000 @@ -76,10 +76,10 @@ } /// Load timeout value in watchdog timer and enable -void Watchdog::Configure(int pr) { +void Watchdog::Configure(float timeout) { // http://www.st.com/web/en/resource/technical/document/reference_manual/CD00171190.pdf IWDG->KR = 0x5555; // enable write to PR, RLR - IWDG->PR = pr; // Init prescaler, page 486 Reference Manual + IWDG->PR = timeout; // Init prescaler, page 486 Reference Manual IWDG->RLR = 0xFFF; // Init RLR IWDG->KR = 0xAAAA; // Reload the watchdog IWDG->KR = 0xCCCC; // Starts the WD