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 CN0561_DMA_BASEADDR XPAR_AXI_CN0561_DMA_BASEADDR
48 #define CN0561_SPI_ENGINE_BASEADDR XPAR_SPI_CN0561_SPI_CN0561_AXI_REGMAP_BASEADDR
49 #define CN0561_SPI_ENG_REF_CLK_FREQ_HZ 100000000
50 #define CN0561_SPI_CS 0
51 #define GPIO_DEVICE_ID XPAR_PS7_GPIO_0_DEVICE_ID
52 #define GPIO_OFFSET 54
53 #define GPIO_RESETN GPIO_OFFSET + 32
54 #define GPIO_PDN GPIO_OFFSET + 33
55 #define GPIO_MODE GPIO_OFFSET + 34
56 #define GPIO_PINBSPI GPIO_OFFSET + 35
57 #define GPIO_0 GPIO_OFFSET + 36
58 #define GPIO_1 GPIO_OFFSET + 37
59 #define GPIO_2 GPIO_OFFSET + 38
60 #define GPIO_4 GPIO_OFFSET + 39
61 #define GPIO_5 GPIO_OFFSET + 40
62 #define GPIO_6 GPIO_OFFSET + 41
63 #define GPIO_7 GPIO_OFFSET + 42
64 #define CN0561_FMC_CH_NO 4
65 #define CN0561_FMC_SAMPLE_NO 256
66 
67 #define ADC_BUFFER_SIZE 1000000
68 
69 //#define CN0561_CORAZ7S_CARRIER
70 //#define CN0561_ZED_CARRIER
71 //#define CN0561_REG_DUMP
72 
73 #define CORA_Z7S_DATA_CLK_FREQ_HZ 24000000
74 #define ZED_DATA_CLK_FREQ_HZ 50000000
75 
76 #ifdef IIO_SUPPORT
77 #define UART_BAUDRATE 115200
78 #define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
79 #define UART_IRQ_ID XPAR_XUARTPS_0_INTR
80 #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
81 #endif // IIO_SUPPORT
82 
83 #endif /* __PARAMETERS_H__ */