no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef _PARAMETERS_H_
35 #define _PARAMETERS_H_
36 
37 #include "app_config.h"
38 #ifdef ALTERA_PLATFORM
39 #include "system.h"
40 #else
41 #include "xparameters.h"
42 #endif
43 
44 #define UART_BAUDRATE 115200
45 #ifndef ALTERA_PLATFORM
46 #ifdef PLATFORM_MB
47 #define SPI_DEVICE_ID XPAR_SPI_0_DEVICE_ID
48 #define GPIO_DEVICE_ID XPAR_GPIO_0_DEVICE_ID
49 #define UART_DEVICE_ID XPAR_AXI_UART_DEVICE_ID
50 #define UART_IRQ_ID XPAR_AXI_INTC_AXI_UART_INTERRUPT_INTR
51 
52 #define GPIO_OFFSET 0
53 
54 #ifdef XPAR_AXI_DDR_CNTRL_BASEADDR
55 #define ADC_DDR_BASEADDR (XPAR_AXI_DDR_CNTRL_BASEADDR + 0x800000)
56 #define DAC_DDR_BASEADDR (XPAR_AXI_DDR_CNTRL_BASEADDR + 0x900000)
57 #else
58 #define ADC_DDR_BASEADDR (XPAR_AXI_DDR_CNTRL_C0_DDR4_MEMORY_MAP_BASEADDR + 0x800000)
59 #define DAC_DDR_BASEADDR (XPAR_AXI_DDR_CNTRL_C0_DDR4_MEMORY_MAP_BASEADDR + 0x900000)
60 #endif
61 #else
62 #define SPI_DEVICE_ID XPAR_XSPIPS_0_DEVICE_ID
63 #define GPIO_DEVICE_ID XPAR_XGPIOPS_0_DEVICE_ID
64 #define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
65 #ifdef XPS_BOARD_ZCU102
66 #define UART_IRQ_ID XPAR_XUARTPS_0_INTR
67 #else
68 #define UART_IRQ_ID XPAR_XUARTPS_1_INTR
69 #endif
70 
71 #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
72 
73 #ifdef PLATFORM_ZYNQMP
74 #define GPIO_OFFSET 78
75 #else
76 #define GPIO_OFFSET 54
77 #endif
78 
79 #define ADC_DDR_BASEADDR (XPAR_DDR_MEM_BASEADDR + 0x800000)
80 #define DAC_DDR_BASEADDR (XPAR_DDR_MEM_BASEADDR + 0x900000)
81 #endif
82 
83 #define RX_CORE_BASEADDR XPAR_AXI_AD9680_TPL_ADC_TPL_CORE_BASEADDR
84 #define TX_CORE_BASEADDR XPAR_AXI_AD9144_TPL_DAC_TPL_CORE_BASEADDR
85 
86 #define RX_DMA_BASEADDR XPAR_AXI_AD9680_DMA_BASEADDR
87 #define TX_DMA_BASEADDR XPAR_AXI_AD9144_DMA_BASEADDR
88 
89 #define RX_JESD_BASEADDR XPAR_AXI_AD9680_JESD_RX_AXI_BASEADDR
90 #define TX_JESD_BASEADDR XPAR_AXI_AD9144_JESD_TX_AXI_BASEADDR
91 
92 #define RX_XCVR_BASEADDR XPAR_AXI_AD9680_XCVR_BASEADDR
93 #define TX_XCVR_BASEADDR XPAR_AXI_AD9144_XCVR_BASEADDR
94 #else
95 #define SPI_DEVICE_ID 0
96 #define GPIO_DEVICE_ID 0
97 
98 #define GPIO_OFFSET 0
99 
100 #define SPI_BASEADDR SYS_SPI_BASE
101 #define GPIO_BASEADDR SYS_GPIO_OUT_BASE
102 
103 #define ADC_DDR_BASEADDR (SYS_DDR3_CNTRL_ARCH_BASE + 0x800000)
104 #define DAC_DDR_BASEADDR (SYS_DDR3_CNTRL_ARCH_BASE + 0x900000)
105 
106 #define RX_CORE_BASEADDR AXI_AD9680_CORE_BASE
107 #define TX_CORE_BASEADDR AXI_AD9144_CORE_BASE + 0x4000
108 
109 #define RX_DMA_BASEADDR AXI_AD9680_DMA_BASE
110 #define TX_DMA_BASEADDR AXI_AD9144_DMA_BASE
111 
112 #define RX_JESD_BASEADDR AD9680_JESD204_LINK_RECONFIG_BASE
113 #define TX_JESD_BASEADDR AD9144_JESD204_LINK_RECONFIG_BASE
114 
115 #define RX_XCVR_BASEADDR AD9680_JESD204_LINK_MANAGEMENT_BASE
116 #define TX_XCVR_BASEADDR AD9144_JESD204_LINK_MANAGEMENT_BASE
117 
118 #define RX_A10_FPLL_BASEADDR AD9680_JESD204_LINK_PLL_RECONFIG_BASE
119 #define TX_A10_FPLL_BASEADDR AD9144_JESD204_LINK_PLL_RECONFIG_BASE
120 
121 #define TX_PLL_BASEADDR AD9144_JESD204_LANE_PLL_RECONFIG_BASE
122 #define RX_PLL_BASEADDR AD9680_JESD204_LINK_PLL_RECONFIG_BASE
123 
124 #define RX_ADXCFG_0_BASEADDR AVL_ADXCFG_0_RCFG_S1_BASE
125 #define RX_ADXCFG_1_BASEADDR AVL_ADXCFG_1_RCFG_S1_BASE
126 #define RX_ADXCFG_2_BASEADDR AVL_ADXCFG_2_RCFG_S1_BASE
127 #define RX_ADXCFG_3_BASEADDR AVL_ADXCFG_3_RCFG_S1_BASE
128 #define TX_ADXCFG_0_BASEADDR AVL_ADXCFG_0_RCFG_S0_BASE
129 #define TX_ADXCFG_1_BASEADDR AVL_ADXCFG_1_RCFG_S0_BASE
130 #define TX_ADXCFG_2_BASEADDR AVL_ADXCFG_2_RCFG_S0_BASE
131 #define TX_ADXCFG_3_BASEADDR AVL_ADXCFG_3_RCFG_S0_BASE
132 #endif
133 
134 #define GPIO_TRIG (GPIO_OFFSET + 43)
135 #define GPIO_ADC_PD (GPIO_OFFSET + 42)
136 #define GPIO_DAC_TXEN (GPIO_OFFSET + 41)
137 #define GPIO_DAC_RESET (GPIO_OFFSET + 40)
138 #define GPIO_CLKD_SYNC (GPIO_OFFSET + 38)
139 #define GPIO_ADC_FDB (GPIO_OFFSET + 36)
140 #define GPIO_ADC_FDA (GPIO_OFFSET + 35)
141 #define GPIO_DAC_IRQ (GPIO_OFFSET + 34)
142 #define GPIO_CLKD_STATUS_1 (GPIO_OFFSET + 33)
143 #define GPIO_CLKD_STATUS_0 (GPIO_OFFSET + 32)
144 
154 };
155 
156 #endif /* _PARAMETERS_H_ */
ad9523_channels
ad9523_channels
Definition: parameters.h:145
ADC_DEVICE_CLK
@ ADC_DEVICE_CLK
Definition: parameters.h:150
DAC_DEVICE_SYSREF
@ DAC_DEVICE_SYSREF
Definition: parameters.h:147
app_config.h
Config file for DAQ2 project.
ADC_FPGA_CLK
@ ADC_FPGA_CLK
Definition: parameters.h:152
DAC_FPGA_SYSREF
@ DAC_FPGA_SYSREF
Definition: parameters.h:149
DAC_DEVICE_CLK
@ DAC_DEVICE_CLK
Definition: parameters.h:146
ADC_FPGA_SYSREF
@ ADC_FPGA_SYSREF
Definition: parameters.h:153
DAC_FPGA_CLK
@ DAC_FPGA_CLK
Definition: parameters.h:148
ADC_DEVICE_SYSREF
@ ADC_DEVICE_SYSREF
Definition: parameters.h:151