no-OS
projects
ad6676-ebz
src
parameters.h
Go to the documentation of this file.
1
/***************************************************************************/
34
#ifndef _PARAMETERS_H_
35
#define _PARAMETERS_H_
36
37
#include "
app_config.h
"
38
#include "xparameters.h"
39
40
#define UART_BAUDRATE 115200
41
#ifdef PLATFORM_MB
42
#define SPI_DEVICE_ID XPAR_SPI_0_DEVICE_ID
43
#define GPIO_DEVICE_ID XPAR_GPIO_0_DEVICE_ID
44
#define UART_DEVICE_ID XPAR_AXI_UART_DEVICE_ID
45
#define UART_IRQ_ID XPAR_AXI_INTC_AXI_UART_INTERRUPT_INTR
46
47
#define GPIO_OFFSET 0
48
49
#define ADC_DDR_BASEADDR (XPAR_AXI_DDR_CNTRL_BASEADDR + 0x800000)
50
#else
51
#define SPI_DEVICE_ID XPAR_XSPIPS_0_DEVICE_ID
52
#define GPIO_DEVICE_ID XPAR_XGPIOPS_0_DEVICE_ID
53
#define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
54
#define UART_IRQ_ID XPAR_XUARTPS_1_INTR
55
56
#define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
57
58
#define GPIO_OFFSET 54
59
60
#define ADC_DDR_BASEADDR (XPAR_DDR_MEM_BASEADDR + 0x800000)
61
#endif
62
63
#define RX_CORE_BASEADDR XPAR_AXI_AD6676_CORE_ADC_TPL_CORE_BASEADDR
64
#define RX_DMA_BASEADDR XPAR_AXI_AD6676_DMA_BASEADDR
65
#define RX_JESD_BASEADDR XPAR_AXI_AD6676_JESD_RX_AXI_BASEADDR
66
#define RX_XCVR_BASEADDR XPAR_AXI_AD6676_XCVR_BASEADDR
67
68
#define GPIO_ADC_OEN (GPIO_OFFSET + 41)
69
#define GPIO_ADC_SELA (GPIO_OFFSET + 40)
70
#define GPIO_ADC_SELB (GPIO_OFFSET + 39)
71
#define GPIO_ADC_S0 (GPIO_OFFSET + 38)
72
#define GPIO_ADC_S1 (GPIO_OFFSET + 37)
73
#define GPIO_ADC_RESETB (GPIO_OFFSET + 36)
74
#define GPIO_ADC_AGC1 (GPIO_OFFSET + 35)
75
#define GPIO_ADC_AGC2 (GPIO_OFFSET + 34)
76
#define GPIO_ADC_AGC3 (GPIO_OFFSET + 33)
77
#define GPIO_ADC_AGC4 (GPIO_OFFSET + 32)
78
79
#define GPIO_JESD204_SYSREF (GPIO_OFFSET + 48)
80
81
#endif
/* _PARAMETERS_H_ */
app_config.h
Config file for AD6676 project.
Generated by
1.8.17