Explicit USART pins name in at91sam7s256.h.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 26 Oct 2007 17:03:59 +0000 (17:03 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 26 Oct 2007 17:03:59 +0000 (17:03 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@949 38d2e660-2303-0410-9eaa-f027e97ec537

cpu/arm/drv/ser_at91.c
cpu/arm/io/at91sam7s256.h

index 339ce65991c3be7eb132b842a5f5a0f12c51dd48..c381b9e0e305360395d0f42ce88195ec9e16df57 100644 (file)
                #warning Check USART0 pins!
        #endif
        #define SER_UART0_BUS_TXINIT do { \
-               PIOA_PDR = BV(5) | BV(6); \
+               PIOA_PDR = BV(RXD0) | BV(TXD0); \
                US0_CR = BV(US_RSTRX) | BV(US_RSTTX); \
                US0_MR = US_CHMODE_NORMAL | US_CHRL_8 | US_NBSTOP_1; \
                US0_CR = BV(US_RXEN) | BV(US_TXEN); \
                #warning Check USART1 pins!
        #endif
        #define SER_UART1_BUS_TXINIT do { \
-               PIOA_PDR = BV(21) | BV(22); \
+               PIOA_PDR = BV(RXD1) | BV(TXD1); \
                US1_CR = BV(US_RSTRX) | BV(US_RSTTX); \
                US1_MR = US_CHMODE_NORMAL | US_CHRL_8 | US_NBSTOP_1; \
                US1_CR = BV(US_RXEN) | BV(US_TXEN); \
index 41e930af7aff155fd5bf0dc6e9c152ea444ce201..9c3299de61d696f37998ff10cc514144e29b3618 100644 (file)
 #define IRQ1_ID     31      ///< External interrupt 1 ID.
 /*\}*/
 
+/** USART pins name */
+/*\{*/
+#define RXD0        5
+#define TXD0        6
+#define RXD1       21
+#define TXD1       22
+/*\}*/
+
 #endif /* AT91SAM7S256_H */