diff options
Diffstat (limited to 'os/hal/platforms/SPC560BCxx/hal_lld.h')
-rw-r--r-- | os/hal/platforms/SPC560BCxx/hal_lld.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/os/hal/platforms/SPC560BCxx/hal_lld.h b/os/hal/platforms/SPC560BCxx/hal_lld.h index e8e3bcc15..701e2f4a7 100644 --- a/os/hal/platforms/SPC560BCxx/hal_lld.h +++ b/os/hal/platforms/SPC560BCxx/hal_lld.h @@ -237,6 +237,13 @@ #endif
/**
+ * @brief Disables the watchdog on start.
+ */
+#if !defined(SPC5_DISABLE_WATCHDOG) || defined(__DOXYGEN__)
+#define SPC5_DISABLE_WATCHDOG TRUE
+#endif
+
+/**
* @brief XOSC divider value.
* @note The allowed range is 1...32.
*/
@@ -589,6 +596,15 @@ #define SPC5_PIT0_IRQ_PRIORITY 4
#endif
+/**
+ * @brief Clock initialization failure hook.
+ * @note The default is to stop the system and let the RTC restart it.
+ * @note The hook code must not return.
+ */
+#if !defined(SPC5_CLOCK_FAILURE_HOOK) || defined(__DOXYGEN__)
+#define SPC5_CLOCK_FAILURE_HOOK() chSysHalt()
+#endif
+
/*===========================================================================*/
/* Derived constants and error checks. */
/*===========================================================================*/
|