Add fpga-xc3s100e and icopyx support

This commit is contained in:
Philippe Teuwen committed 2021-08-21 23:45:46 +02:00
1 parent d56d8f0f65
commit e79fb92074
106 files changed
+4213 -85

No files matched your search

+5 -1
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
+5 -2
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)