aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/include/chglobal.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/kernel/include/chglobal.h')
-rw-r--r--os/kernel/include/chglobal.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/os/kernel/include/chglobal.h b/os/kernel/include/chglobal.h
index c8e0ca15b..4bbc0775b 100644
--- a/os/kernel/include/chglobal.h
+++ b/os/kernel/include/chglobal.h
@@ -120,6 +120,30 @@ typedef struct ch_system {
* @brief Virtual timers delta list header.
*/
virtual_timers_list_t vtlist;
+#if CH_DBG_ENABLED || defined(__DOXYGEN__)
+ /**
+ * @brief Pointer to the panic message.
+ * @details This pointer is meant to be accessed through the debugger, it is
+ * written once and then the system is halted.
+ */
+ const char *dbg_panic_msg;
+#endif
+#if CH_DBG_SYSTEM_STATE_CHECK || defined(__DOXYGEN__)
+ /**
+ * @brief ISR nesting level.
+ */
+ cnt_t dbg_isr_cnt;
+ /**
+ * @brief Lock nesting level.
+ */
+ cnt_t dbg_lock_cnt;
+#endif
+#if CH_DBG_ENABLE_TRACE || defined(__DOXYGEN__)
+ /**
+ * @brief Public trace buffer.
+ */
+ ch_trace_buffer_t dbg_trace_buffer;
+#endif
} ch_system_t;
/*===========================================================================*/