aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/uart_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates/uart_lld.h')
-rw-r--r--os/hal/templates/uart_lld.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/os/hal/templates/uart_lld.h b/os/hal/templates/uart_lld.h
index 7cf2c17df..9f2d3c7ab 100644
--- a/os/hal/templates/uart_lld.h
+++ b/os/hal/templates/uart_lld.h
@@ -39,6 +39,19 @@
/* Driver pre-compile time settings. */
/*===========================================================================*/
+/**
+ * @name Configuration options
+ * @{
+ */
+/**
+ * @brief UART driver enable switch.
+ * @details If set to @p TRUE the support for UART1 is included.
+ */
+#if !defined(PLATFORM_UART_USE_UART1) || defined(__DOXYGEN__)
+#define PLATFORM_UART_USE_UART1 FALSE
+#endif
+/** @} */
+
/*===========================================================================*/
/* Derived constants and error checks. */
/*===========================================================================*/
@@ -147,6 +160,10 @@ struct UARTDriver {
/* External declarations. */
/*===========================================================================*/
+#if PLATFORM_UART_USE_UART1 && !defined(__DOXYGEN__)
+extern UARTDriver UARTD1;
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif