|
|
@@ -49,6 +49,19 @@
|
|
|
#define CH_CFG_SMP_MODE FALSE
|
|
|
#endif
|
|
|
|
|
|
+/**
|
|
|
+ * @brief Kernel hardening level.
|
|
|
+ * @details This option is the level of functional-safety checks enabled
|
|
|
+ * in the kerkel. The meaning is:
|
|
|
+ * - 0: No checks, maximum performance.
|
|
|
+ * - 1: Reasonable checks.
|
|
|
+ * - 2: All checks.
|
|
|
+ * .
|
|
|
+ */
|
|
|
+#if !defined(CH_CFG_HARDENING_LEVEL)
|
|
|
+#define CH_CFG_HARDENING_LEVEL 0
|
|
|
+#endif
|
|
|
+
|
|
|
/** @} */
|
|
|
|
|
|
/*===========================================================================*/
|
|
|
@@ -360,6 +373,16 @@
|
|
|
#define CH_CFG_USE_MAILBOXES FALSE
|
|
|
#endif
|
|
|
|
|
|
+/**
|
|
|
+ * @brief Memory checks APIs.
|
|
|
+ * @details If enabled then the memory checks APIs are included in the kernel.
|
|
|
+ *
|
|
|
+ * @note The default is @p TRUE.
|
|
|
+ */
|
|
|
+#if !defined(CH_CFG_USE_MEMCHECKS)
|
|
|
+#define CH_CFG_USE_MEMCHECKS TRUE
|
|
|
+#endif
|
|
|
+
|
|
|
/**
|
|
|
* @brief Core Memory Manager APIs.
|
|
|
* @details If enabled then the core memory manager APIs are included
|