summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-09 17:11:02 +0000
committer(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-09 17:11:02 +0000
commit49be558f0698c084e78f7a4f998c8baf1f195579 (patch)
tree01cdfe45cbbcc0d91e0ddb97ce2baa87beafb61b
parenta46943b3c5d859dd27ea7269f6ab89668938fbd5 (diff)
- we now definitely use PA22 for UDP_PUP, since SAM-BA wants to use PA16,
but in inverted fashion. - Move MCLK definition to this header git-svn-id: https://svn.openpcd.org:2342/trunk@157 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
-rw-r--r--openpcd/firmware/src/openpcd.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/openpcd/firmware/src/openpcd.h b/openpcd/firmware/src/openpcd.h
index 51fa98d..a532f14 100644
--- a/openpcd/firmware/src/openpcd.h
+++ b/openpcd/firmware/src/openpcd.h
@@ -3,6 +3,12 @@
#include <openpcd.h>
+#define Hz
+#define kHz *1000 Hz
+#define MHz *1000 kHz
+#define MCLK (48 MHz)
+
+
#ifdef OLIMEX
#define OPENPCD_PIO_LED2 AT91C_PIO_PA17
#define OPENPCD_PIO_LED1 AT91C_PIO_PA18
@@ -10,7 +16,7 @@
#define OPENPCD_PIO_UDP_PUP AT91C_PIO_PA16
#else
#define OPENPCD_PIO_UDP_CNX AT91C_PIO_PA15
-#define OPENPCD_PIO_UDP_PUP AT91C_PIO_PA16
+#define OPENPCD_PIO_UDP_PUP AT91C_PIO_PA22
#define OPENPCD_PIO_LED1 AT91C_PIO_PA25
#define OPENPCD_PIO_LED2 AT91C_PIO_PA26
#endif
@@ -39,7 +45,7 @@
* PA14 SPCK A O SPI Clock
* PA15 P I N/C
*
- * PA16 PA16 P O UDP_PUP
+ * PA16 PA16 P O UDP_PUP (disabled)
* PA17 TD A O MFIN *
* PA18 RD A I MFOUT
* PA19 RK A I CARRIER_DIV
personal git repositories of Harald Welte. Your mileage may vary