aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/chconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/chconf.h')
-rw-r--r--src/templates/chconf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/templates/chconf.h b/src/templates/chconf.h
index a6071493b..005748b83 100644
--- a/src/templates/chconf.h
+++ b/src/templates/chconf.h
@@ -35,6 +35,15 @@
* that this is not related to the compiler optimization options.*/
#define CH_OPTIMIZE_SPEED
+/** Configuration option: If enabled then the used of nested @p chSysLock() /
+ * @p chSysUnlock() operations is allowed.<br>
+ * For performance and code size reasons the recommended setting is leave
+ * this option disabled.<br>
+ * You can use this option if you need to merge with ChibiOS/RT external
+ * libraries that require nested lock/unlock operations.
+ */
+#define CH_USE_NESTED_LOCKS
+
/** Configuration option: if specified then the kernel performs the round
* robin scheduling algorithm on threads of equal priority.*/
#define CH_USE_ROUNDROBIN