aboutsummaryrefslogtreecommitdiffstats
path: root/demos/Win32-MinGW/chconf.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-09-05 13:04:28 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-09-05 13:04:28 +0000
commit517440bad9d6d2f27689e4e3de72794d869d2c26 (patch)
tree708b9c043e826287a684eaac55315053ad48e0e5 /demos/Win32-MinGW/chconf.h
parent737c82e787472f325fe22f7cbfe82ef8be8a6a66 (diff)
downloadChibiOS-517440bad9d6d2f27689e4e3de72794d869d2c26.tar.gz
ChibiOS-517440bad9d6d2f27689e4e3de72794d869d2c26.tar.bz2
ChibiOS-517440bad9d6d2f27689e4e3de72794d869d2c26.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@425 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/Win32-MinGW/chconf.h')
-rw-r--r--demos/Win32-MinGW/chconf.h29
1 files changed, 24 insertions, 5 deletions
diff --git a/demos/Win32-MinGW/chconf.h b/demos/Win32-MinGW/chconf.h
index f16918f72..71a2cf36e 100644
--- a/demos/Win32-MinGW/chconf.h
+++ b/demos/Win32-MinGW/chconf.h
@@ -29,16 +29,18 @@
#ifndef _CHCONF_H_
#define _CHCONF_H_
-/*
- * NOTE: this is just documentation for doxigen, the real configuration file
- * is the one into the project directories.
- */
-
/** Configuration option: if specified then time efficient rather than space
* efficient code is used when two possible implementations exist, note
* that this is not related to the compiler optimization options.*/
#define CH_OPTIMIZE_SPEED
+/** Configuration option: it specified this option enables the \p Thread
+ * extension fields and initiazation code.
+ * @see THREAD_EXT_FIELDS
+ * @see THREAD_EXT_INIT
+ */
+//#define CH_USE_THREAD_EXT
+
/** Configuration option: if specified then the Virtual Timers subsystem is
* included in the kernel.*/
#define CH_USE_VIRTUAL_TIMERS
@@ -177,6 +179,23 @@
*/
//#define CH_USE_TRACE
+/** User fields added to the end of the \p Thread structure if the
+ * \p CH_USE_THREAD_EXT option is enabled.
+ * @see CH_USE_THREAD_EXT
+ */
+#define THREAD_EXT_FIELDS \
+struct { \
+ /* Add fields here.*/ \
+};
+
+/** User initialization code added to the \p chThdCreate() API if the
+ * \p CH_USE_THREAD_EXT option is enabled.
+ * @see CH_USE_THREAD_EXT
+ */
+#define THREAD_EXT_INIT(tp) { \
+ /* Add initialization code here.*/ \
+}
+
#endif /* _CHCONF_H_ */
/** @} */