Add fpga-xc3s100e and icopyx support

This commit is contained in:
Philippe Teuwen 2021-08-21 23:43:06 +02:00
commit e79fb92074
106 changed files with 4213 additions and 85 deletions

View file

@ -43,7 +43,11 @@
#define GPIO_BUTTON AT91C_PIO_PA23
#define GPIO_USB_PU AT91C_PIO_PA24
#define GPIO_RELAY AT91C_PIO_PA25
#define GPIO_FPGA_ON AT91C_PIO_PA26
#if defined XC3
#define GPIO_FPGA_SWITCH AT91C_PIO_PA26
#else
#define GPIO_FPGA_ON AT91C_PIO_PA26
#endif
#define GPIO_FPGA_DONE AT91C_PIO_PA27
#define GPIO_FPGA_NPROGRAM AT91C_PIO_PA28
#define GPIO_FPGA_CCLK AT91C_PIO_PA29

View file

@ -28,8 +28,11 @@
#define PWM_CHANNEL(x) (1 << (x))
#define ADC_CHAN_LF 4
#define ADC_CHAN_HF 5
#define ADC_CHAN_HF_RDV40 7
#if defined RDV4 || defined ICOPYX
#define ADC_CHAN_HF 7
#else
#define ADC_CHAN_HF 5
#endif
#define ADC_MODE_PRESCALE(x) ((x) << 8)
#define ADC_MODE_STARTUP_TIME(x) ((x) << 16)
#define ADC_MODE_SAMPLE_HOLD_TIME(x) ((x) << 24)