no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef _PARAMETERS_H_
35 #define _PARAMETERS_H_
36 
37 #include <xparameters.h>
38 
39 #define UART_BAUDRATE 115200
40 #define SPI_DEVICE_ID XPAR_PS7_SPI_0_DEVICE_ID
41 #define SPI_AD7768_CS 0
42 #define GPIO_DEVICE_ID XPAR_PS7_GPIO_0_DEVICE_ID
43 #define GPIO_OFFSET 32 + 54
44 #define AD7768_DMA_BASEADDR XPAR_AD7768_DMA_2_BASEADDR
45 #define ADC_DDR_BASEADDR XPAR_DDR_MEM_BASEADDR + 0x800000
46 #define AD7768_ADC_BASEADDR XPAR_AXI_AD7768_ADC_BASEADDR
47 #define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
48 #define UART_IRQ_ID XPAR_XUARTPS_1_INTR
49 #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
50 #define GPIO_RESET_N GPIO_OFFSET + 0
51 #define AD7768_HEADER_SIZE 8
52 #define BITS_IN_BYTE 8
53 #define AD7768_EVB_REFERENCE_VOLT 4.096f
54 
55 #endif /* _PARAMETERS_H_ */