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 #include "xparameters.h"
39 
40 #ifdef PLATFORM_MB
41 #define SPI_DEVICE_ID XPAR_SPI_0_DEVICE_ID
42 #define GPIO_DEVICE_ID XPAR_GPIO_0_DEVICE_ID
43 #define UART_DEVICE_ID XPAR_AXI_UART_DEVICE_ID
44 #define UART_IRQ_ID XPAR_AXI_INTC_AXI_UART_INTERRUPT_INTR
45 
46 #define GPIO_OFFSET 0
47 
48 #define ADC_DDR_BASEADDR (XPAR_AXI_DDR_CNTRL_BASEADDR + 0x800000)
49 #else
50 #define SPI_DEVICE_ID XPAR_XSPIPS_0_DEVICE_ID
51 #define GPIO_DEVICE_ID XPAR_XGPIOPS_0_DEVICE_ID
52 #define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
53 #define UART_IRQ_ID XPAR_XUARTPS_1_INTR
54 
55 #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
56 
57 #ifdef PLATFORM_ZYNQ
58 #define GPIO_OFFSET 54
59 #endif
60 
61 #define ADC_DDR_BASEADDR (XPAR_DDR_MEM_BASEADDR + 0x800000)
62 #endif
63 
64 #define UART_BAUDRATE 115200
65 
66 #define RX_CORE_BASEADDR XPAR_AXI_AD9250_CORE_ADC_TPL_CORE_BASEADDR
67 
68 #define RX_DMA_BASEADDR XPAR_AXI_AD9250_DMA_BASEADDR
69 
70 #define RX_JESD_BASEADDR XPAR_AXI_AD9250_JESD_RX_AXI_BASEADDR
71 
72 #define RX_XCVR_BASEADDR XPAR_AXI_AD9250_XCVR_BASEADDR
73 
74 #define GPIO_JESD204_SYSREF (GPIO_OFFSET + 32)
75 
76 #endif /* _PARAMETERS_H_ */