diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-09-26 10:46:10 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-09-26 10:46:10 +0000 |
commit | 8feba91865981a1cb8b1ba12c4bce09997141f2f (patch) | |
tree | 49383b0d56e82f342e74b6fa3ac831b884070150 /demos/ARMCM3-STM32F103-GCC | |
parent | 3d4a6e15ed6b9dc80403288b36d22839de6e2320 (diff) | |
download | ChibiOS-8feba91865981a1cb8b1ba12c4bce09997141f2f.tar.gz ChibiOS-8feba91865981a1cb8b1ba12c4bce09997141f2f.tar.bz2 ChibiOS-8feba91865981a1cb8b1ba12c4bce09997141f2f.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@444 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARMCM3-STM32F103-GCC')
-rw-r--r-- | demos/ARMCM3-STM32F103-GCC/chconf.h | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/demos/ARMCM3-STM32F103-GCC/chconf.h b/demos/ARMCM3-STM32F103-GCC/chconf.h index 13c3766e4..a5b956523 100644 --- a/demos/ARMCM3-STM32F103-GCC/chconf.h +++ b/demos/ARMCM3-STM32F103-GCC/chconf.h @@ -34,13 +34,6 @@ * 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
@@ -102,8 +95,10 @@ /** Configuration option: if specified then the
* \p chThdGetExitEventSource() function is included in the kernel.
- * @note requires \p CH_USE_MESSAGES.
- * @note requires \p CH_USE_EVENTS.*/
+ * @note requires \p CH_USE_EVENTS.
+ * @deprecated \p THREAD_EXT_EXIT should be used, this functionality will be
+ * removed in version 1.0.0.
+ */
#define CH_USE_EXIT_EVENT
/** Configuration option: if specified then the I/O queues APIs are included
@@ -185,21 +180,22 @@ */
//#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
- */
+/** User fields added to the end of the \p Thread structure. */
#define THREAD_EXT_FIELDS \
struct { \
- /* Add fields here.*/ \
+ /* Add thread custom 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
- */
+/** User initialization code added to the \p chThdCreate() API.
+ * @note It is invoked from within \p chThdInit(). */
#define THREAD_EXT_INIT(tp) { \
- /* Add initialization code here.*/ \
+ /* Add thread initialization code here.*/ \
+}
+
+/** User finalization code added to the \p chThdExit() API.
+ * @note It is inserted into lock zone. */
+#define THREAD_EXT_EXIT(tp) { \
+ /* Add thread finalization code here.*/ \
}
#endif /* _CHCONF_H_ */
|