aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
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