aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/AT91SAM7/serial_lld.h
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-11-08 07:29:55 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-11-08 07:29:55 +0000
commit25acf389b0475d90c8d3fcb2ed0eb24bc15b1287 (patch)
treec66ccfbaff9bdc0609810869edde69fe3598d19b /os/hal/platforms/AT91SAM7/serial_lld.h
parent07f4e8ed945b736dccdf1f20a37551f5cd7b6775 (diff)
downloadChibiOS-25acf389b0475d90c8d3fcb2ed0eb24bc15b1287.tar.gz
ChibiOS-25acf389b0475d90c8d3fcb2ed0eb24bc15b1287.tar.bz2
ChibiOS-25acf389b0475d90c8d3fcb2ed0eb24bc15b1287.zip
AT91SAM7A3. Initial commit.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4799 35acf78f-673a-0410-8e92-d51de3d6d3f4
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" {