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
Diff: Watchdog.h
- Revision:
- 15:e0e4c2268558
- Parent:
- 11:a1611543c454
- Child:
- 16:de80257a1ed0
--- a/Watchdog.h Fri Feb 03 04:53:54 2017 +0000
+++ b/Watchdog.h Fri Feb 23 13:41:54 2018 +0000
@@ -103,12 +103,18 @@
///
/// @returns true if the Watchdog was the cause of the reset
bool WatchdogCausedReset();
+
+#if defined( TARGET_STM )
+ uint32_t reset_status() { return _rcc_csr; }
+#endif
private:
- bool wdreset;
-
- #if defined( TARGET_STM )
+ bool _wdreset;
+
+#if defined( TARGET_STM )
+ uint32_t _rcc_csr; // RCC clock control & status register
+
int calcExponent16bit(uint16_t v); // 整数Xを含む最小のべき乗指数
- #endif
+#endif
};
#endif // WATCHDOG_H
