sam3: generalize AB(CD)SR register definition for sam3x, add
[bertos.git] / bertos / cpu / cortex-m3 / io / sam3_usart.h
index 405c0890942d8111e4876885269f119ec01dedc6..dd78c5112ce39a4e2b9825b85d02f0cbabb7a33e 100644 (file)
 /**
  * USART base addresses.
  */
-#if CPU_CM3_SAM3U
+#if CPU_CM3_SAM3N
+       #define USART0_BASE  0x40024000
+       #define USART1_BASE  0x40028000
+#elif CPU_CM3_SAM3U
        #define USART0_BASE  0x40090000
        #define USART1_BASE  0x40094000
        #define USART2_BASE  0x40098000
        #define USART3_BASE  0x4009C000
-#else
-       #define USART0_BASE  0x40024000
-       #define USART1_BASE  0x40028000
+#elif CPU_CM3_SAM3X
+       #define USART0_BASE  0x40098000
+       #define USART1_BASE  0x4009C000
+       #define USART2_BASE  0x400A0000
+       #define USART3_BASE  0x400A4000
 #endif
 
 /**