aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-10-24 13:58:24 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-10-24 13:58:24 +0000
commitde3fbaebe6f00a5109f4a107372d0b059f27de51 (patch)
treecfd653584bdf76f56c2aa9e439191f781d88f5c5 /os
parente0bfea5f016021d639093705b3baff1513cb066b (diff)
downloadChibiOS-de3fbaebe6f00a5109f4a107372d0b059f27de51.tar.gz
ChibiOS-de3fbaebe6f00a5109f4a107372d0b059f27de51.tar.bz2
ChibiOS-de3fbaebe6f00a5109f4a107372d0b059f27de51.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10896 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/common/oslib/include/chfactory.h6
-rw-r--r--os/rt/src/chsys.c3
2 files changed, 5 insertions, 4 deletions
diff --git a/os/common/oslib/include/chfactory.h b/os/common/oslib/include/chfactory.h
index c00fe21a1..7ac414719 100644
--- a/os/common/oslib/include/chfactory.h
+++ b/os/common/oslib/include/chfactory.h
@@ -353,11 +353,9 @@ extern "C" {
* @param[in] dep pointer to the element field of the object
* @return The duplicated object reference.
*
- * @iclass
+ * @api
*/
-static inline dyn_element_t *chFactoryDuplicateReferenceI(dyn_element_t *dep) {
-
- chDbgCheckClassI();
+static inline dyn_element_t *chFactoryDuplicateReference(dyn_element_t *dep) {
dep->refs++;
diff --git a/os/rt/src/chsys.c b/os/rt/src/chsys.c
index 715c97d74..034c3e85d 100644
--- a/os/rt/src/chsys.c
+++ b/os/rt/src/chsys.c
@@ -116,6 +116,9 @@ void chSysInit(void) {
#if CH_CFG_USE_HEAP == TRUE
_heap_init();
#endif
+#if CH_CFG_USE_FACTORY == TRUE
+ _factory_init();
+#endif
#if CH_DBG_STATISTICS == TRUE
_stats_init();
#endif