sam3 serial: define and generalize peripheral assignement (A, B, C,...) to serial...
[bertos.git] / bertos / cpu / cortex-m3 / drv / ser_sam3.c
index d9c2bc65c4693787a85e3dc00566b1fb55a92000..8c2f764ecbda7097466a3fb6e5083c4919aec9d4 100644 (file)
@@ -91,7 +91,7 @@
        #endif
        #define SER_UART0_BUS_TXINIT do { \
                PIOA_PDR = BV(RXD0) | BV(TXD0); \
-               PIO_PERIPH_SEL(PIOA_BASE, BV(RXD0) | BV(TXD0), PIO_PERIPH_A); \
+               PIO_PERIPH_SEL(PIOA_BASE, BV(RXD0) | BV(TXD0), USART0_PERIPH); \
        } while (0)
 #endif
 
                #endif
                #define SER_UART1_BUS_TXINIT do { \
                        PIOA_PDR = BV(RXD1) | BV(TXD1); \
-                       PIO_PERIPH_SEL(PIOA_BASE, BV(RXD1) | BV(TXD1), PIO_PERIPH_A); \
+                       PIO_PERIPH_SEL(PIOA_BASE, BV(RXD1) | BV(TXD1), USART1_PERIPH); \
                } while (0)
        #endif