From 6b39a17ac99e88355162d972206b1e2bbcf45ced Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 27 Sep 2018 12:48:06 +0000 Subject: Pipes API added to factory. Updated templates (to be run). git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12298 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- tools/ftl/processors/conf/chconf_nil/chconf.h.ftl | 14 ++++++++++++++ tools/ftl/processors/conf/chconf_rt/chconf.h.ftl | 20 +++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/ftl/processors/conf/chconf_nil/chconf.h.ftl b/tools/ftl/processors/conf/chconf_nil/chconf.h.ftl index ade7873fa..e6d9596af 100644 --- a/tools/ftl/processors/conf/chconf_nil/chconf.h.ftl +++ b/tools/ftl/processors/conf/chconf_nil/chconf.h.ftl @@ -169,6 +169,15 @@ */ #define CH_CFG_USE_OBJ_FIFOS ${doc.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 ${doc.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 @@ -232,6 +241,11 @@ */ #define CH_CFG_FACTORY_OBJ_FIFOS ${doc.CH_CFG_FACTORY_OBJ_FIFOS!"TRUE"} +/** + * @brief Enables factory for Pipes. + */ +#define CH_CFG_FACTORY_PIPES ${doc.CH_CFG_FACTORY_PIPES!"TRUE"} + /** @} */ /*===========================================================================*/ diff --git a/tools/ftl/processors/conf/chconf_rt/chconf.h.ftl b/tools/ftl/processors/conf/chconf_rt/chconf.h.ftl index 129186f2e..598f55cf5 100644 --- a/tools/ftl/processors/conf/chconf_rt/chconf.h.ftl +++ b/tools/ftl/processors/conf/chconf_rt/chconf.h.ftl @@ -371,7 +371,7 @@ #endif /** - * @brief Objects FIFOs APIs. + * @brief Objects FIFOs APIs. * @details If enabled then the objects FIFOs APIs are included * in the kernel. * @@ -381,6 +381,17 @@ #define CH_CFG_USE_OBJ_FIFOS ${doc.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 ${doc.CH_CFG_USE_PIPES!"TRUE"} +#endif + /** * @brief Dynamic Threads APIs. * @details If enabled then the dynamic threads creation APIs are included @@ -458,6 +469,13 @@ #define CH_CFG_FACTORY_OBJ_FIFOS ${doc.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 ${doc.CH_CFG_FACTORY_PIPES!"TRUE"} +#endif + /** @} */ /*===========================================================================*/ -- cgit v1.2.3