From ee9c03736c641278017d12b14a5ad8998ed265a2 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 28 Aug 2019 09:09:25 +0000 Subject: [PATCH] chconf.h generators updated, fixed a typo. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12960 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/oslib/src/chobjcaches.c | 2 +- tools/ftl/processors/conf/chconf_nil/chconf.h.ftl | 9 +++++++++ tools/ftl/processors/conf/chconf_rt/chconf.h.ftl | 11 +++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/os/oslib/src/chobjcaches.c b/os/oslib/src/chobjcaches.c index 31187da05..860ba7542 100644 --- a/os/oslib/src/chobjcaches.c +++ b/os/oslib/src/chobjcaches.c @@ -458,7 +458,7 @@ bool chCacheReadObject(objects_cache_t *ocp, } /** - * @brief writes the object data back to storage. + * @brief Writes the object data back to storage. * @note In case of asynchronous operation an error condition is not * reported by this function. * diff --git a/tools/ftl/processors/conf/chconf_nil/chconf.h.ftl b/tools/ftl/processors/conf/chconf_nil/chconf.h.ftl index c6b1609f8..805e5037d 100644 --- a/tools/ftl/processors/conf/chconf_nil/chconf.h.ftl +++ b/tools/ftl/processors/conf/chconf_nil/chconf.h.ftl @@ -273,6 +273,15 @@ */ #define CH_CFG_FACTORY_PIPES ${doc.CH_CFG_FACTORY_PIPES!"TRUE"} +/** + * @brief Objects Caches APIs. + * @details If enabled then the objects caches APIs are included + * in the kernel. + * + * @note The default is @p TRUE. + */ +#define CH_CFG_USE_OBJ_CACHES ${doc.CH_CFG_USE_OBJ_CACHES!"TRUE"} + /** @} */ /*===========================================================================*/ diff --git a/tools/ftl/processors/conf/chconf_rt/chconf.h.ftl b/tools/ftl/processors/conf/chconf_rt/chconf.h.ftl index f903ffd94..4c58d776c 100644 --- a/tools/ftl/processors/conf/chconf_rt/chconf.h.ftl +++ b/tools/ftl/processors/conf/chconf_rt/chconf.h.ftl @@ -392,6 +392,17 @@ #define CH_CFG_USE_PIPES ${doc.CH_CFG_USE_PIPES!"TRUE"} #endif +/** + * @brief Objects Caches APIs. + * @details If enabled then the objects caches APIs are included + * in the kernel. + * + * @note The default is @p TRUE. + */ +#if !defined(CH_CFG_USE_OBJ_CACHES) +#define CH_CFG_USE_OBJ_CACHES ${doc.CH_CFG_USE_OBJ_CACHES!"TRUE"} +#endif + /** * @brief Dynamic Threads APIs. * @details If enabled then the dynamic threads creation APIs are included