summaryrefslogtreecommitdiff
path: root/openpicc/config
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-12-19 05:04:39 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-12-19 05:04:39 +0000
commit5ec39e9732ba29d641c37b7739fbc97643ac1b9d (patch)
tree353c699bcecf70c7eae5f0709ec6c1f023233c5c /openpicc/config
parentf89811486cda3de0a28fbad1d9726d8c20a9b155 (diff)
New hardware version
git-svn-id: https://svn.openpcd.org:2342/trunk@398 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/config')
-rw-r--r--openpicc/config/board.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/openpicc/config/board.h b/openpicc/config/board.h
index 8f8e59a..85afd9e 100644
--- a/openpicc/config/board.h
+++ b/openpicc/config/board.h
@@ -50,6 +50,13 @@
#define MCKKHz (MCK/1000) //
/*-----------------*/
+/* Board version */
+/*-----------------*/
+/* Modified board, routing PLL_LOCK to PA5 and a copy of FRAME to PA4, enabling the use of the T/C BURST feature. */
+#define OPENPICC_MODIFIED_BOARD
+
+
+/*-----------------*/
/* Pins */
/*-----------------*/
@@ -59,15 +66,25 @@
#define OPENPICC_PIO_SS2_DT_THRESH AT91C_PIO_PA8
#define OPENPICC_PIO_PLL_INHIBIT AT91C_PIO_PA24
+#ifdef OPENPICC_MODIFIED_BOARD
+#define OPENPICC_PIO_PLL_LOCK AT91C_PIO_PA5
+#else
#define OPENPICC_PIO_PLL_LOCK AT91C_PIO_PA4
+#endif
#define OPENPICC_MOD_PWM AT91C_PA23_PWM0
#define OPENPICC_MOD_SSC AT91C_PA17_TD
#define OPENPICC_SSC_DATA AT91C_PA18_RD
#define OPENPICC_SSC_CLOCK AT91C_PA19_RK
#define OPENPICC_SSC_TF AT91C_PIO_PA15
+#ifdef OPENPICC_MODIFIED_BOARD
+#define OPENPICC_SSC_DATA_GATE AT91C_PA30
+#endif
#define OPENPICC_PIO_FRAME AT91C_PIO_PA20
+#ifdef OPENPICC_MODIFIED_BOARD
+#define OPENPICC_PIO_FRAME_BURST AT91C_PIO_PA4
+#endif
#define OPENPICC_PIO_SSC_DATA_CONTROL AT91C_PIO_PA21
#define OPENPICC_PIO_AB_DETECT AT91C_PIO_PA22
#define OPENPICC_PIO_PLL_INHIBIT AT91C_PIO_PA24
personal git repositories of Harald Welte. Your mileage may vary