no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef __PARAMETERS_H__
40 #define __PARAMETERS_H__
41 
42 /******************************************************************************/
43 /***************************** Include Files **********************************/
44 /******************************************************************************/
45 #include <xparameters.h>
46 
47 /******************************************************************************/
48 /********************** Macros and Constants Definitions **********************/
49 /******************************************************************************/
50 
51 #define SPI_DEVICE_ID XPAR_PS7_SPI_0_DEVICE_ID
52 #define GPIO_DEVICE_ID XPAR_PS7_GPIO_0_DEVICE_ID
53 #define AD7134_DMA_BASEADDR XPAR_AXI_AD7134_DMA_BASEADDR
54 #define AD7134_SPI_ENGINE_BASEADDR XPAR_DUAL_AD7134_AXI_BASEADDR
55 #define AD713x_SPI_ENG_REF_CLK_FREQ_HZ 96000000
56 #define AD7134_1_SPI_CS 0
57 #define AD7134_2_SPI_CS 1
58 #define GPIO_DEVICE_ID XPAR_PS7_GPIO_0_DEVICE_ID
59 #define GPIO_OFFSET 54
60 #define GPIO_RESETN_1 GPIO_OFFSET + 32
61 #define GPIO_RESETN_2 GPIO_OFFSET + 33
62 #define GPIO_PDN_1 GPIO_OFFSET + 34
63 #define GPIO_PDN_2 GPIO_OFFSET + 35
64 #define GPIO_MODE_1 GPIO_OFFSET + 36
65 #define GPIO_MODE_2 GPIO_OFFSET + 37
66 #define GPIO_0 GPIO_OFFSET + 38
67 #define GPIO_1 GPIO_OFFSET + 39
68 #define GPIO_2 GPIO_OFFSET + 40
69 #define GPIO_3 GPIO_OFFSET + 41
70 #define GPIO_4 GPIO_OFFSET + 42
71 #define GPIO_5 GPIO_OFFSET + 43
72 #define GPIO_6 GPIO_OFFSET + 44
73 #define GPIO_7 GPIO_OFFSET + 45
74 #define GPIO_DCLKIO_1 GPIO_OFFSET + 46
75 #define GPIO_DCLKIO_2 GPIO_OFFSET + 47
76 #define GPIO_PINBSPI GPIO_OFFSET + 48
77 #define GPIO_DCLKMODE GPIO_OFFSET + 49
78 #define AD7134_FMC_CH_NO 8
79 #define AD7134_FMC_SAMPLE_NO 1024
80 
81 #define ADC_BUFFER_SIZE 1000000
82 
83 #ifdef IIO_SUPPORT
84 #define UART_BAUDRATE 115200
85 #define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
86 #define UART_IRQ_ID XPAR_XUARTPS_1_INTR
87 #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
88 #endif // IIO_SUPPORT
89 
90 #endif /* __PARAMETERS_H__ */