diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/ARM7-AT91SAM7X-GCC/chconf.h | 36 | ||||
-rw-r--r-- | demos/ARM7-AT91SAM7X-WEB-GCC/chconf.h | 34 | ||||
-rw-r--r-- | demos/ARM7-LPC214x-G++/chconf.h | 34 | ||||
-rw-r--r-- | demos/ARM7-LPC214x-GCC-minimal/chconf.h | 34 | ||||
-rw-r--r-- | demos/ARM7-LPC214x-GCC/chconf.h | 34 | ||||
-rw-r--r-- | demos/ARMCM3-STM32F103-GCC/chconf.h | 34 | ||||
-rw-r--r-- | demos/AVR-AT90CANx-GCC/chconf.h | 34 | ||||
-rw-r--r-- | demos/AVR-ATmega128-GCC/chconf.h | 34 | ||||
-rw-r--r-- | demos/MSP430-MSP430x1611-GCC/chconf.h | 34 | ||||
-rw-r--r-- | demos/Win32-MinGW/chconf.h | 35 |
10 files changed, 151 insertions, 192 deletions
diff --git a/demos/ARM7-AT91SAM7X-GCC/chconf.h b/demos/ARM7-AT91SAM7X-GCC/chconf.h index 13c3766e4..f6f40d5e3 100644 --- a/demos/ARM7-AT91SAM7X-GCC/chconf.h +++ b/demos/ARM7-AT91SAM7X-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
@@ -79,10 +72,12 @@ * the kernel.*/
#define CH_USE_EVENTS
-/** Configuration option: if specified then the \p chEvtWaitTimeout()
- * function is included in the kernel.
+/** Configuration option: if specified then the
+ * \p chThdGetExitEventSource() function is included in the kernel.
* @note requires \p CH_USE_EVENTS.
- * @note requires \p CH_USE_VIRTUAL_TIMERS.*/
+ * @deprecated \p THREAD_EXT_EXIT should be used, this functionality will be
+ * removed in version 1.0.0.
+ */
#define CH_USE_EVENTS_TIMEOUT
/** Configuration option: if specified then the Synchronous Messages APIs are
@@ -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_ */
diff --git a/demos/ARM7-AT91SAM7X-WEB-GCC/chconf.h b/demos/ARM7-AT91SAM7X-WEB-GCC/chconf.h index 13c3766e4..a5b956523 100644 --- a/demos/ARM7-AT91SAM7X-WEB-GCC/chconf.h +++ b/demos/ARM7-AT91SAM7X-WEB-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_ */
diff --git a/demos/ARM7-LPC214x-G++/chconf.h b/demos/ARM7-LPC214x-G++/chconf.h index 3bf626af0..b307e8a52 100644 --- a/demos/ARM7-LPC214x-G++/chconf.h +++ b/demos/ARM7-LPC214x-G++/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_ */
diff --git a/demos/ARM7-LPC214x-GCC-minimal/chconf.h b/demos/ARM7-LPC214x-GCC-minimal/chconf.h index da927fe6a..ade1aa207 100644 --- a/demos/ARM7-LPC214x-GCC-minimal/chconf.h +++ b/demos/ARM7-LPC214x-GCC-minimal/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_ */
diff --git a/demos/ARM7-LPC214x-GCC/chconf.h b/demos/ARM7-LPC214x-GCC/chconf.h index 13c3766e4..a5b956523 100644 --- a/demos/ARM7-LPC214x-GCC/chconf.h +++ b/demos/ARM7-LPC214x-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_ */
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_ */
diff --git a/demos/AVR-AT90CANx-GCC/chconf.h b/demos/AVR-AT90CANx-GCC/chconf.h index a3c3697af..ea26be7ad 100644 --- a/demos/AVR-AT90CANx-GCC/chconf.h +++ b/demos/AVR-AT90CANx-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_ */
diff --git a/demos/AVR-ATmega128-GCC/chconf.h b/demos/AVR-ATmega128-GCC/chconf.h index f3975e8a4..34b26c7be 100644 --- a/demos/AVR-ATmega128-GCC/chconf.h +++ b/demos/AVR-ATmega128-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_ */
diff --git a/demos/MSP430-MSP430x1611-GCC/chconf.h b/demos/MSP430-MSP430x1611-GCC/chconf.h index 40a333f1c..da9878f86 100644 --- a/demos/MSP430-MSP430x1611-GCC/chconf.h +++ b/demos/MSP430-MSP430x1611-GCC/chconf.h @@ -35,13 +35,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
@@ -103,8 +96,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
@@ -186,21 +181,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_ */
diff --git a/demos/Win32-MinGW/chconf.h b/demos/Win32-MinGW/chconf.h index c5bbf0410..46272d552 100644 --- a/demos/Win32-MinGW/chconf.h +++ b/demos/Win32-MinGW/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,9 +95,10 @@ /** Configuration option: if specified then the
* \p chThdGetExitEventSource() function is included in the kernel.
- * @deprecated
- * @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
@@ -186,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_ */
|