aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/halconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates/halconf.h')
-rw-r--r--os/hal/templates/halconf.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/os/hal/templates/halconf.h b/os/hal/templates/halconf.h
index 568ae7db0..843f0cc34 100644
--- a/os/hal/templates/halconf.h
+++ b/os/hal/templates/halconf.h
@@ -369,6 +369,26 @@
#endif
/** @} */
+/*===========================================================================*/
+/* UART driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Enables synchronous APIs.
+ * @note Disabling this option saves both code and data space.
+ */
+#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
+#define UART_USE_WAIT FALSE
+#endif
+
+/**
+ * @brief Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs.
+ * @note Disabling this option saves both code and data space.
+ */
+#if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
+#define UART_USE_MUTUAL_EXCLUSION FALSE
+#endif
+
#endif /* _HALCONF_H_ */
/** @} */