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 /******************************************************************************/
42 /********************** Macros and Constants Definitions **********************/
43 /******************************************************************************/
44 
45 #define SPI_DEVICE_ID XPAR_PS7_SPI_0_DEVICE_ID
46 #define GPIO_DEVICE_ID XPAR_PS7_GPIO_0_DEVICE_ID
47 #define AD7134_DMA_BASEADDR XPAR_AXI_AD7134_DMA_BASEADDR
48 #define AD7134_SPI_ENGINE_BASEADDR XPAR_DUAL_AD7134_DUAL_AD7134_AXI_REGMAP_BASEADDR
49 #define AD713x_SPI_ENG_REF_CLK_FREQ_HZ 100000000
50 #define AD7134_1_SPI_CS 0
51 #define AD7134_2_SPI_CS 1
52 #define GPIO_DEVICE_ID XPAR_PS7_GPIO_0_DEVICE_ID
53 #define GPIO_OFFSET 54
54 #define GPIO_RESETN_1 GPIO_OFFSET + 32
55 #define GPIO_RESETN_2 GPIO_OFFSET + 33
56 #define GPIO_PDN_1 GPIO_OFFSET + 34
57 #define GPIO_PDN_2 GPIO_OFFSET + 35
58 #define GPIO_MODE_1 GPIO_OFFSET + 36
59 #define GPIO_MODE_2 GPIO_OFFSET + 37
60 #define GPIO_0 GPIO_OFFSET + 38
61 #define GPIO_1 GPIO_OFFSET + 39
62 #define GPIO_2 GPIO_OFFSET + 40
63 #define GPIO_3 GPIO_OFFSET + 41
64 #define GPIO_4 GPIO_OFFSET + 42
65 #define GPIO_5 GPIO_OFFSET + 43
66 #define GPIO_6 GPIO_OFFSET + 44
67 #define GPIO_7 GPIO_OFFSET + 45
68 #define GPIO_DCLKIO_1 GPIO_OFFSET + 46
69 #define GPIO_DCLKIO_2 GPIO_OFFSET + 47
70 #define GPIO_PINBSPI GPIO_OFFSET + 48
71 #define GPIO_DCLKMODE GPIO_OFFSET + 49
72 #define GPIO_CS_SYNC GPIO_OFFSET + 50
73 #define GPIO_CS_SYNC_1 GPIO_OFFSET + 51
74 #define AD7134_FMC_CH_NO 8
75 #define AD7134_FMC_SAMPLE_NO 1024
76 
77 #define ADC_BUFFER_SIZE 1000000
78 
79 #ifdef IIO_SUPPORT
80 #define UART_BAUDRATE 115200
81 #define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
82 #define UART_IRQ_ID XPAR_XUARTPS_1_INTR
83 #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
84 #endif // IIO_SUPPORT
85 
86 #endif /* __PARAMETERS_H__ */