no-OS
projects
fmcadc2
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 ADC_MAX_SAMPLES 1000000
41
#define UART_BAUDRATE 115200
42
#ifdef PLATFORM_MB
43
#define SPI_DEVICE_ID XPAR_SPI_0_DEVICE_ID
44
#define GPIO_DEVICE_ID XPAR_GPIO_0_DEVICE_ID
45
#define UART_DEVICE_ID XPAR_AXI_UART_DEVICE_ID
46
#define UART_IRQ_ID XPAR_AXI_INTC_AXI_UART_INTERRUPT_INTR
47
48
#define GPIO_OFFSET 0
49
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
#ifdef PLATFORM_ZYNQ
59
#define GPIO_OFFSET 54
60
#endif
61
62
#endif
63
64
#define RX_CORE_BASEADDR XPAR_AXI_AD9625_CORE_ADC_TPL_CORE_BASEADDR
65
66
#define RX_DMA_BASEADDR XPAR_AXI_AD9625_DMA_BASEADDR
67
68
#define RX_JESD_BASEADDR XPAR_AXI_AD9625_JESD_RX_AXI_BASEADDR
69
70
#define RX_XCVR_BASEADDR XPAR_AXI_AD9625_XCVR_BASEADDR
71
72
#define GPIO_JESD204_SYSREF (GPIO_OFFSET + 34)
73
74
#endif
/* _PARAMETERS_H_ */
app_config.h
Config file for FMCADC2 project.
Generated by
1.8.17