diff options
-rw-r--r-- | openpcd/firmware/src/openpcd.h | 55 |
1 files changed, 47 insertions, 8 deletions
diff --git a/openpcd/firmware/src/openpcd.h b/openpcd/firmware/src/openpcd.h index a532f14..ab8dadf 100644 --- a/openpcd/firmware/src/openpcd.h +++ b/openpcd/firmware/src/openpcd.h @@ -84,25 +84,64 @@ #define OPENPCD_PIO_TRIGGER AT91C_PIO_PA31 #define OPENPCD_PIO_CARRIER_IN AT91C_PA28_TCLK1 -#ifdef CONFIG_PICCSIM -#define OPENPICC_PIO_PLL_INHIBIT AT91C_PIO_PA24 -#define OPENPICC_PIO_SS1_GAIN AT91C_PIO_PA11 -#define OPENPICC_PIO_SS2_DT_THRESH AT91C_PIO_PA8 -#define OPENPICC_PIO_BOOTLDR AT91C_PIO_PA6 -#define OPENPICC_PIO_SLAVE_RESET AT91C_PIO_PA5 + +/* PIO Definition PICCSIM v0.3 + * + * PA0 TIOA0 B O CARRIER_DIV_HELP + * PA1 TIOB1 B O SSC_CLOCK + * PA2 PA2 P O LOAD1 + * PA3 PA3 P O LOAD2 + * PA4 PA4 P I N/C + * PA5 PA5 P O nSLAVE_RESET + * PA6 PA6 P I BOOTLOADER_SW + * PA7 PA7 P I N/C + * PA8 PA8 P O SPI_SS2 (Comparator) + * PA9 DRXD A I Debug + * PA10 DTXD A O Debug + * PA11 NPCS0 A O SPI_SS1 (Gain) + * PA12 PA12 P I N/C + * PA13 MOSI A O SPI Master Out + * PA14 SPCK A O SPI Clock + * PA15 PA15 P I PLL_LOCK + * PA16 PA16 P O UDP_PUP (old) + * PA17 TD A O SSC Tx Data (MOD) + * PA18 RD A I SSC Rx Data (SSC_DATA) + * PA19 RK A I SSC Rx Clock (SSC_CLOCK) + * PA20 PA20 P I AB_DETECT + * PA21 PA21 P I N/C + * PA22 PA22 P I N/C + * PA23 PWM0 B O PWM Output * (MOD) + * PA24 PA24 P O PLL_INHIBIT + * PA25 PA25 P O LED1 green + * PA26 PA26 P O LED2 red + * PA27 TIOB2 B I DATA + * PA28 TCLK1 B I CARRIER + * PA29 TCLK2 B I CARRIER_DIV_HELP + * PA30 PA30 P I N/C + * PA31 PA31 P I N/C + * + */ + #define OPENPICC_PIO_LOAD1 AT91C_PIO_PA2 #define OPENPICC_PIO_LOAD2 AT91C_PIO_PA3 +#define OPENPICC_PIO_SLAVE_RESET AT91C_PIO_PA5 +#define OPENPICC_PIO_BOOTLDR AT91C_PIO_PA6 +#define OPENPICC_PIO_SS2_DT_THRESH AT91C_PIO_PA8 +#define OPENPICC_PIO_SS1_GAIN AT91C_PIO_PA11 +#define OPENPICC_PIO_PLL_LOCK AT91C_PIO_PA15 + #define OPENPICC_PIO_AB_DETECT AT91C_PIO_PA20 +#define OPENPICC_PIO_PLL_INHIBIT AT91C_PIO_PA24 #define OPENPICC_ADC_FIELD_STRENGTH AT91C_ADC_CH4 #define OPENPICC_ADC_PLL_DEM AT91C_ADC_CH5 #define OPENPICC_ADC_AN1 AT91C_ADC_CH6 #define OPENPICC_ADC_AN2 AT91C_ADC_CH7 -#endif #define OPENPCD_IRQ_PRIO_SPI AT91C_AIC_PRIOR_HIGHEST #define OPENPCD_IRQ_PRIO_SSC (AT91C_AIC_PRIOR_HIGHEST-1) -#define OPENPCD_IRQ_PRIO_UDP (AT91C_AIC_PRIOR_LOWEST+1) +#define OPENPCD_IRQ_PRIO_UDP (AT91C_AIC_PRIOR_LOWEST+2) +#define OPENPCD_IRQ_PRIO_PIT (AT91C_AIC_PRIOR_LOWEST+1) #define OPENPCD_IRQ_PRIO_RC632 AT91C_AIC_PRIOR_LOWEST #endif /* _OPENPCD_H */ |