aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/AT91SAM7/serial_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/AT91SAM7/serial_lld.h')
-rw-r--r--os/hal/platforms/AT91SAM7/serial_lld.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/os/hal/platforms/AT91SAM7/serial_lld.h b/os/hal/platforms/AT91SAM7/serial_lld.h
index 283a05149..5c2a74bf3 100644
--- a/os/hal/platforms/AT91SAM7/serial_lld.h
+++ b/os/hal/platforms/AT91SAM7/serial_lld.h
@@ -57,6 +57,17 @@
#define USE_SAM7_USART1 TRUE
#endif
+#if (SAM7_PLATFORM == SAM7A3)
+/**
+ * @brief UART2 driver enable switch.
+ * @details If set to @p TRUE the support for USART3 is included.
+ * @note The default is @p TRUE.
+ */
+#if !defined(USE_SAM7_USART2) || defined(__DOXYGEN__)
+#define USE_SAM7_USART2 TRUE
+#endif
+#endif /* (SAM7_PLATFORM == SAM7A3) */
+
/**
* @brief DBGU UART driver enable switch.
* @details If set to @p TRUE the support for the DBGU UART is included.
@@ -80,6 +91,15 @@
#define SAM7_USART1_PRIORITY (AT91C_AIC_PRIOR_HIGHEST - 2)
#endif
+#if (SAM7_PLATFORM == SAM7A3)
+/**
+ * @brief UART2 interrupt priority level setting.
+ */
+#if !defined(SAM7_USART2_PRIORITY) || defined(__DOXYGEN__)
+#define SAM7_USART2_PRIORITY (AT91C_AIC_PRIOR_HIGHEST - 2)
+#endif
+#endif /* (SAM7_PLATFORM == SAM7A3) */
+
/**
* @brief DBGU_UART interrupt priority level setting.
*/
@@ -146,9 +166,14 @@ extern SerialDriver SD1;
#if USE_SAM7_USART1 && !defined(__DOXYGEN__)
extern SerialDriver SD2;
#endif
-#if USE_SAM7_DBGU_UART
+#if (SAM7_PLATFORM == SAM7A3)
+#if USE_SAM7_USART2 && !defined(__DOXYGEN__)
extern SerialDriver SD3;
#endif
+#endif
+#if USE_SAM7_DBGU_UART
+extern SerialDriver SDDBG;
+#endif
#ifdef __cplusplus
extern "C" {