diff options
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/include/uart.h | 4 | ||||
-rw-r--r-- | os/hal/templates/halconf.h | 20 |
2 files changed, 22 insertions, 2 deletions
diff --git a/os/hal/include/uart.h b/os/hal/include/uart.h index f619599d9..43afcd7d9 100644 --- a/os/hal/include/uart.h +++ b/os/hal/include/uart.h @@ -56,7 +56,7 @@ * @note Disabling this option saves both code and data space.
*/
#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
-#define UART_USE_WAIT TRUE
+#define UART_USE_WAIT FALSE
#endif
/**
@@ -64,7 +64,7 @@ * @note Disabling this option saves both code and data space.
*/
#if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
-#define UART_USE_MUTUAL_EXCLUSION TRUE
+#define UART_USE_MUTUAL_EXCLUSION FALSE
#endif
/** @} */
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_ */
/** @} */
|