aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/AT91SAM7/serial_lld.h
diff options
context:
space:
mode:
authorliamstask <liamstask@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-04-24 21:16:10 +0000
committerliamstask <liamstask@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-04-24 21:16:10 +0000
commit9da7f0b661c0f776a14d9f69295f23ed486de584 (patch)
treeba226a3f5043f584063866b7f6b77e30d8275bdc /os/hal/platforms/AT91SAM7/serial_lld.h
parent2ccc6ff2927737d88d2df025fa5ca120f09b11d1 (diff)
downloadChibiOS-9da7f0b661c0f776a14d9f69295f23ed486de584.tar.gz
ChibiOS-9da7f0b661c0f776a14d9f69295f23ed486de584.tar.bz2
ChibiOS-9da7f0b661c0f776a14d9f69295f23ed486de584.zip
* add serial support for the AT91SAM7 DBGU peripheral
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1888 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/AT91SAM7/serial_lld.h')
-rw-r--r--os/hal/platforms/AT91SAM7/serial_lld.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/os/hal/platforms/AT91SAM7/serial_lld.h b/os/hal/platforms/AT91SAM7/serial_lld.h
index bb4ed0dde..3dd0ca09c 100644
--- a/os/hal/platforms/AT91SAM7/serial_lld.h
+++ b/os/hal/platforms/AT91SAM7/serial_lld.h
@@ -57,6 +57,15 @@
#endif
/**
+ * @brief DBGU UART driver enable switch.
+ * @details If set to @p TRUE the support for the DBGU UART is included.
+ * @note The default is @p TRUE.
+ */
+#if !defined(USE_SAM7_DBGU_UART) || defined(__DOXYGEN__)
+#define USE_SAM7_DBGU_UART TRUE
+#endif
+
+/**
* @brief UART1 interrupt priority level setting.
*/
#if !defined(SAM7_USART0_PRIORITY) || defined(__DOXYGEN__)
@@ -70,6 +79,13 @@
#define SAM7_USART1_PRIORITY (AT91C_AIC_PRIOR_HIGHEST - 2)
#endif
+/**
+ * @brief DBGU_UART interrupt priority level setting.
+ */
+#if !defined(SAM7_DBGU_UART_PRIORITY) || defined(__DOXYGEN__)
+#define SAM7_DBGU_UART_PRIORITY (AT91C_AIC_PRIOR_HIGHEST - 2)
+#endif
+
/*===========================================================================*/
/* Derived constants and error checks. */
/*===========================================================================*/
@@ -138,6 +154,9 @@ extern SerialDriver SD1;
#if USE_SAM7_USART1 && !defined(__DOXYGEN__)
extern SerialDriver SD2;
#endif
+#if USE_SAM7_DBGU_UART
+extern SerialDriver SD3;
+#endif
#ifdef __cplusplus
extern "C" {
@@ -145,6 +164,9 @@ extern "C" {
void sd_lld_init(void);
void sd_lld_start(SerialDriver *sdp, const SerialConfig *config);
void sd_lld_stop(SerialDriver *sdp);
+#if USE_SAM7_DBGU_UART
+ void sd_lld_serve_interrupt(SerialDriver *sdp);
+#endif
#ifdef __cplusplus
}
#endif