Go to the documentation of this file.
33 #ifndef APP_PARAMETERS_H_
34 #define APP_PARAMETERS_H_
36 #include <xparameters.h>
41 #define UART_BAUDRATE 115200
43 #ifdef XPS_BOARD_ZCU102
44 #define GPIO_OFFSET 78
55 #define PHY_RESET (GPIO_OFFSET + 41)
57 #define ADRF5020_CTRL_GPIO (GPIO_OFFSET + 34)
58 #define AD9081_GPIO_0_MUX (GPIO_OFFSET + 44)
60 #define GPIO_2_DEVICE_ID XPAR_AXI_GPIO_2_DEVICE_ID
61 #define SPI_2_DEVICE_ID XPAR_AXI_SPI_2_DEVICE_ID
64 #define PHY_RESET (GPIO_OFFSET + 55)
67 #if defined(PLATFORM_MB)
68 #define GPIO_DEVICE_ID XPAR_AXI_GPIO_DEVICE_ID
69 #define PHY_SPI_DEVICE_ID XPAR_AXI_SPI_DEVICE_ID
70 #define CLK_SPI_DEVICE_ID XPAR_AXI_SPI_DEVICE_ID
71 #define UART_DEVICE_ID XPAR_AXI_UART_DEVICE_ID
72 #define UART_IRQ_ID XPAR_AXI_INTC_AXI_UART_INTERRUPT_INTR
73 #define INTC_DEVICE_ID XPAR_INTC_SINGLE_DEVICE_ID
74 #define DDR_CNTRL_BASEADDR XPAR_AXI_DDR_CNTRL_BASEADDR
76 #elif defined(PLATFORM_ZYNQMP)
77 #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
78 #define GPIO_DEVICE_ID XPAR_PSU_GPIO_0_DEVICE_ID
79 #define PHY_SPI_DEVICE_ID XPAR_PSU_SPI_0_DEVICE_ID
80 #define CLK_SPI_DEVICE_ID XPAR_PSU_SPI_1_DEVICE_ID
81 #define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
82 #define UART_IRQ_ID XPAR_XUARTPS_0_INTR
83 #define DDR_CNTRL_BASEADDR XPAR_PSU_DDRC_0_BASEADDR
86 #error Unsupported platform.
89 #define RX_JESD_BASEADDR XPAR_AXI_MXFE_RX_JESD_RX_AXI_BASEADDR
90 #define TX_JESD_BASEADDR XPAR_AXI_MXFE_TX_JESD_TX_AXI_BASEADDR
92 #ifdef XPAR_AXI_MXFE_RX_XCVR_BASEADDR
93 #define RX_XCVR_BASEADDR XPAR_AXI_MXFE_RX_XCVR_BASEADDR
95 #ifdef XPAR_AXI_MXFE_TX_XCVR_BASEADDR
96 #define TX_XCVR_BASEADDR XPAR_AXI_MXFE_TX_XCVR_BASEADDR
99 #ifdef XPAR_RX_MXFE_TPL_CORE_ADC_TPL_CORE_BASEADDR
100 #define RX_CORE_BASEADDR XPAR_RX_MXFE_TPL_CORE_ADC_TPL_CORE_BASEADDR
102 #define RX_CORE_BASEADDR XPAR_RX_MXFE_TPL_CORE_TPL_CORE_BASEADDR
104 #ifdef XPAR_TX_MXFE_TPL_CORE_DAC_TPL_CORE_BASEADDR
105 #define TX_CORE_BASEADDR XPAR_TX_MXFE_TPL_CORE_DAC_TPL_CORE_BASEADDR
107 #define TX_CORE_BASEADDR XPAR_TX_MXFE_TPL_CORE_TPL_CORE_BASEADDR
110 #define RX_DMA_BASEADDR XPAR_AXI_MXFE_RX_DMA_BASEADDR
111 #define TX_DMA_BASEADDR XPAR_AXI_MXFE_TX_DMA_BASEADDR
115 #define MAX_DAC_BUF_SAMPLES 10000000 //1MB
116 #define MAX_ADC_BUF_SAMPLES 10000000 //1MB