aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/lib/include/chlib.h3
-rw-r--r--os/nil/templates/chconf.h16
-rw-r--r--os/rt/templates/chconf.h20
3 files changed, 35 insertions, 4 deletions
diff --git a/os/lib/include/chlib.h b/os/lib/include/chlib.h
index ab55d333b..1097c8e15 100644
--- a/os/lib/include/chlib.h
+++ b/os/lib/include/chlib.h
@@ -105,8 +105,7 @@
#endif
#if !defined(CH_CFG_USE_PIPES)
-//#error "CH_CFG_USE_PIPES not defined in chconf.h"
-#define CH_CFG_USE_PIPES FALSE /* temporary */
+#error "CH_CFG_USE_PIPES not defined in chconf.h"
#endif
/* Objects factory options checks.*/
diff --git a/os/nil/templates/chconf.h b/os/nil/templates/chconf.h
index 740a3472e..3ffd3ceae 100644
--- a/os/nil/templates/chconf.h
+++ b/os/nil/templates/chconf.h
@@ -15,7 +15,7 @@
*/
/**
- * @file nil/templates/chconf.h
+ * @file templates/chconf.h
* @brief Configuration file template.
* @details A copy of this file must be placed in each project directory, it
* contains the application specific kernel settings.
@@ -159,6 +159,15 @@
#define CH_CFG_USE_OBJ_FIFOS TRUE
/**
+ * @brief Pipes APIs.
+ * @details If enabled then the pipes APIs are included
+ * in the kernel.
+ *
+ * @note The default is @p TRUE.
+ */
+#define CH_CFG_USE_PIPES TRUE
+
+/**
* @brief Managed RAM size.
* @details Size of the RAM area to be managed by the OS. If set to zero
* then the whole available RAM is used. The core memory is made
@@ -221,6 +230,11 @@
*/
#define CH_CFG_FACTORY_OBJ_FIFOS TRUE
+/**
+ * @brief Enables factory for Pipes.
+ */
+#define CH_CFG_FACTORY_PIPES TRUE
+
/** @} */
/*===========================================================================*/
diff --git a/os/rt/templates/chconf.h b/os/rt/templates/chconf.h
index 8227506c6..e6fc90137 100644
--- a/os/rt/templates/chconf.h
+++ b/os/rt/templates/chconf.h
@@ -360,7 +360,7 @@
#endif
/**
- * @brief Objects FIFOs APIs.
+ * @brief Objects FIFOs APIs.
* @details If enabled then the objects FIFOs APIs are included
* in the kernel.
*
@@ -371,6 +371,17 @@
#endif
/**
+ * @brief Pipes APIs.
+ * @details If enabled then the pipes APIs are included
+ * in the kernel.
+ *
+ * @note The default is @p TRUE.
+ */
+#if !defined(CH_CFG_USE_PIPES)
+#define CH_CFG_USE_PIPES TRUE
+#endif
+
+/**
* @brief Dynamic Threads APIs.
* @details If enabled then the dynamic threads creation APIs are included
* in the kernel.
@@ -447,6 +458,13 @@
#define CH_CFG_FACTORY_OBJ_FIFOS TRUE
#endif
+/**
+ * @brief Enables factory for Pipes.
+ */
+#if !defined(CH_CFG_FACTORY_PIPES) || defined(__DOXYGEN__)
+#define CH_CFG_FACTORY_PIPES TRUE
+#endif
+
/** @} */
/*===========================================================================*/