Go to the documentation of this file.
37 #include "xparameters.h"
43 #define AD7606X_MODE_SPI_ENGINE 0
44 #define AD7606X_MODE_PARALLEL 1
46 #if defined(XPAR_AXI_SPI_ENGINE_0_BASEADDR)
47 #define AD7606X_CORE_BASEADDR XPAR_AXI_SPI_ENGINE_0_BASEADDR
48 #define AD7606X_MODE AD7606X_MODE_SPI_ENGINE
49 #define AD7606X_RX_CLKGEN_BASEADDR XPAR_SPI_CLKGEN_BASEADDR
50 #elif defined(XPAR_AXI_AD7606X_BASEADDR)
51 #define AD7606X_CORE_BASEADDR XPAR_AXI_AD7606X_BASEADDR
52 #define AD7606X_MODE AD7606X_MODE_PARALLEL
53 #define AD7606X_RX_CLKGEN_BASEADDR 0
56 #define AD7606X_DMA_BASEADDR XPAR_AXI_DMAC_0_BASEADDR
57 #define AXI_PWMGEN_BASEADDR XPAR_AXI_PWM_GEN_0_BASEADDR
58 #define SPI_AD7606X_CS 0
59 #define GPIO_DEVICE_ID XPAR_PS7_GPIO_0_DEVICE_ID
60 #define GPIO_OFFSET (32 + 54)
61 #define GPIO_ADC_OS0 (GPIO_OFFSET + 0)
62 #define GPIO_ADC_OS1 (GPIO_OFFSET + 1)
63 #define GPIO_ADC_OS2 (GPIO_OFFSET + 2)
64 #define GPIO_ADC_RANGE (GPIO_OFFSET + 3)
65 #define GPIO_ADC_STBY (GPIO_OFFSET + 4)
66 #define GPIO_ADC_RESET (GPIO_OFFSET + 5)
67 #define GPIO_ADC_FIRST_DATA (GPIO_OFFSET + 6)
68 #define GPIO_ADC_SER_PAR (GPIO_OFFSET + 7)
69 #define ADC_DDR_BASEADDR (XPAR_DDR_MEM_BASEADDR + 0x800000)
71 #define AD7606X_TRIGGER_PULSE_WIDTH_NS 120
73 #ifdef _XPARAMETERS_PS_H_
74 #define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
75 #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
77 #ifdef XPS_BOARD_ZCU102
78 #define UART_IRQ_ID XPAR_XUARTPS_0_INTR
80 #define UART_IRQ_ID XPAR_XUARTPS_1_INTR
83 #else // _XPARAMETERS_PS_H_
84 #define UART_DEVICE_ID XPAR_AXI_UART_DEVICE_ID
85 #define INTC_DEVICE_ID XPAR_INTC_SINGLE_DEVICE_ID
86 #define UART_IRQ_ID XPAR_AXI_INTC_AXI_UART_INTERRUPT_INTR
87 #endif // _XPARAMETERS_PS_H_
89 #define UART_BAUDRATE 115200
90 #define UART_EXTRA &uart_extra_ip
91 #define UART_OPS &xil_uart_ops