projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add adc implementation for sam3x.
[bertos.git]
/
bertos
/
cpu
/
cortex-m3
/
io
/
sam3_usart.h
diff --git
a/bertos/cpu/cortex-m3/io/sam3_usart.h
b/bertos/cpu/cortex-m3/io/sam3_usart.h
index f5c05c1c68be9a19334a56573388d0041a58fc42..dd78c5112ce39a4e2b9825b85d02f0cbabb7a33e 100644
(file)
--- a/
bertos/cpu/cortex-m3/io/sam3_usart.h
+++ b/
bertos/cpu/cortex-m3/io/sam3_usart.h
@@
-33,7
+33,7
@@
*
* \author Daniele Basile <asterix@develer.com>
*
*
* \author Daniele Basile <asterix@develer.com>
*
- * A
T
SAM3 USART User interface.
+ * A
tmel
SAM3 USART User interface.
* This file is based on NUT/OS implementation. See license below.
*/
/*
* This file is based on NUT/OS implementation. See license below.
*/
/*
@@
-74,14
+74,19
@@
/**
* USART base addresses.
*/
/**
* USART base addresses.
*/
-#if CPU_CM3_AT91SAM3U
+#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
#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
/**
#endif
/**