From 49be558f0698c084e78f7a4f998c8baf1f195579 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> Date: Sat, 9 Sep 2006 17:11:02 +0000 Subject: - 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 --- openpcd/firmware/src/openpcd.h | 10 ++++++++-- 1 file 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 +#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 -- cgit v1.2.3