aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/debug.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-02-24 16:07:42 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-02-24 16:07:42 +0000
commite9274448e9058df5a32e43212ee9858006fe1c4d (patch)
tree951171f94949354b24f6f243538032fbb8706a5e /src/include/debug.h
parentd425f2ec12b111f01dfe854c638c18da2a279881 (diff)
downloadChibiOS-e9274448e9058df5a32e43212ee9858006fe1c4d.tar.gz
ChibiOS-e9274448e9058df5a32e43212ee9858006fe1c4d.tar.bz2
ChibiOS-e9274448e9058df5a32e43212ee9858006fe1c4d.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@802 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/debug.h')
-rw-r--r--src/include/debug.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/include/debug.h b/src/include/debug.h
index 2efc6a8c7..82e784040 100644
--- a/src/include/debug.h
+++ b/src/include/debug.h
@@ -35,10 +35,21 @@
#endif
/**
- * @brief Fill value for threads working area in debug mode.
+ * @brief Fill value for thread stack area in debug mode.
*/
-#ifndef MEM_FILL_PATTERN
-#define MEM_FILL_PATTERN 0x55
+#ifndef STACK_FILL_VALUE
+#define STACK_FILL_VALUE 0x55
+#endif
+
+/**
+ * @brief Fill value for thread area in debug mode.
+ * @note The chosen default value is 0xFF in order to make evident which
+ * thread fields were not initialized when inspecting the memory with
+ * a debugger. A uninitialized field is not an error in itself but it
+ * better to know it.
+ */
+#ifndef THREAD_FILL_VALUE
+#define THREAD_FILL_VALUE 0xFF
#endif
/**