no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef __PARAMETERS_H__
34 #define __PARAMETERS_H__
35 
36 /******************************************************************************/
37 /***************************** Include Files **********************************/
38 /******************************************************************************/
39 #include <xparameters.h>
40 
41 #ifdef PLATFORM_ZYNQMP
42 #define SPI_DEVICE_ID XPAR_PSU_SPI_0_DEVICE_ID
43 #define GPIO_DEVICE_ID XPAR_PSU_GPIO_0_DEVICE_ID
44 #else
45 #define SPI_DEVICE_ID XPAR_PS7_SPI_0_DEVICE_ID
46 #define GPIO_DEVICE_ID XPAR_PS7_GPIO_0_DEVICE_ID
47 #endif
48 #define SPI_HMC7044_CS 0x00
49 #define SPI_AD9172_CS 0x01
50 
51 #define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
52 #define UART_IRQ_ID XPAR_XUARTPS_1_INTR
53 #define UART_BAUDRATE 921600
54 
55 #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
56 
57 #define TX_JESD_BASEADDR XPAR_DAC_JESD204_LINK_TX_AXI_BASEADDR
58 #define TX_XCVR_BASEADDR XPAR_DAC_JESD204_XCVR_BASEADDR
59 #define TX_CORE_BASEADDR XPAR_DAC_JESD204_TRANSPORT_DAC_TPL_CORE_BASEADDR
60 #define TX_DMA_BASEADDR XPAR_DAC_DMA_BASEADDR
61 #ifdef PLATFORM_ZYNQMP
62 #define DDR_MEM_BASEADDR (XPAR_PSU_DDR_0_S_AXI_BASEADDR + 0xA000000)
63 #else
64 #define DDR_MEM_BASEADDR (XPAR_PS7_DDR_0_S_AXI_BASEADDR + 0xA000000)
65 #endif
66 
67 #endif /* __PARAMETERS_H__ */