no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef _PARAMETERS_H_
41 #define _PARAMETERS_H_
42 
43 #include "app_config.h"
44 #include "xparameters.h"
45 
46 #define ADC_MAX_SAMPLES 1000000
47 #define UART_BAUDRATE 115200
48 #ifdef PLATFORM_MB
49 #define SPI_DEVICE_ID XPAR_SPI_0_DEVICE_ID
50 #define GPIO_DEVICE_ID XPAR_GPIO_0_DEVICE_ID
51 #define UART_DEVICE_ID XPAR_AXI_UART_DEVICE_ID
52 
53 #define GPIO_OFFSET 0
54 
55 #else
56 #define SPI_DEVICE_ID XPAR_XSPIPS_0_DEVICE_ID
57 #define GPIO_DEVICE_ID XPAR_XGPIOPS_0_DEVICE_ID
58 #define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
59 #define UART_IRQ_ID XPAR_XUARTPS_1_INTR
60 
61 #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
62 
63 #ifdef PLATFORM_ZYNQ
64 #define GPIO_OFFSET 54
65 #endif
66 
67 #endif
68 
69 #define RX_CORE_BASEADDR XPAR_AXI_AD9625_CORE_BASEADDR
70 
71 #define RX_DMA_BASEADDR XPAR_AXI_AD9625_DMA_BASEADDR
72 
73 #define RX_JESD_BASEADDR XPAR_AXI_AD9625_JESD_RX_AXI_BASEADDR
74 
75 #define RX_XCVR_BASEADDR XPAR_AXI_AD9625_XCVR_BASEADDR
76 
77 #define GPIO_JESD204_SYSREF (GPIO_OFFSET + 34)
78 
79 #endif /* _PARAMETERS_H_ */
app_config.h
Config file for FMCADC2 project.