From f562ee4948dd1e2b9175dfa3f2a2c071023c6167 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 29 Sep 2018 16:14:19 +0000 Subject: Mass update of configuration files. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12306 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/lib/include/chlib.h | 3 +-- os/nil/templates/chconf.h | 16 +++++++++++++++- os/rt/templates/chconf.h | 20 +++++++++++++++++++- 3 files changed, 35 insertions(+), 4 deletions(-) (limited to 'os') 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. @@ -158,6 +158,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 @@ -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. * @@ -370,6 +370,17 @@ #define CH_CFG_USE_OBJ_FIFOS TRUE #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 @@ -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 + /** @} */ /*===========================================================================*/ -- cgit v1.2.3