no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
parameters.h
Go to the documentation of this file.
1/***************************************************************************/
34#ifndef __PARAMETERS_H__
35#define __PARAMETERS_H__
36
37#include <xparameters.h>
38#include <xil_cache.h>
39#include <xilinx_uart.h>
40#include "xilinx_gpio.h"
41#ifdef _XPARAMETERS_PS_H_
42#define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
43#define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
44
45#ifdef XPS_BOARD_ZCU102
46#define UART_IRQ_ID XPAR_XUARTPS_0_INTR
47#else
48#define UART_IRQ_ID XPAR_XUARTPS_1_INTR
49#endif
50
51#else // _XPARAMETERS_PS_H_
52#define UART_DEVICE_ID XPAR_AXI_UART_DEVICE_ID
53#define INTC_DEVICE_ID XPAR_INTC_SINGLE_DEVICE_ID
54#define UART_IRQ_ID XPAR_AXI_INTC_AXI_UART_INTERRUPT_INTR
55#endif // _XPARAMETERS_PS_H_
56
57#define UART_EXTRA &iio_uart_extra_ip
58#define UART_OPS &xil_uart_ops
59
61
62#define RX_CORE_BASEADDR XPAR_AXI_PULSAR_LVDS_BASEADDR
63#define RX_DMA_BASEADDR XPAR_AXI_PULSAR_LVDS_DMA_BASEADDR
64#define RX_CLKGEN_BASEADDR XPAR_REFERENCE_CLKGEN_BASEADDR
65#define AXI_PWMGEN_BASEADDR XPAR_AXI_PWM_GEN_BASEADDR
66#define ADC_DDR_BASEADDR XPAR_DDR_MEM_BASEADDR + 0x800000
67
68#define GPIO_DEVICE_ID XPAR_PS7_GPIO_0_DEVICE_ID
69#define GPIO_OFFSET 32 + 54
70
71#define GPIO_EN0_FMC GPIO_OFFSET
72#define GPIO_EN1_FMC GPIO_OFFSET+1
73#define GPIO_EN2_FMC GPIO_OFFSET+2
74#define GPIO_EN3_FMC GPIO_OFFSET+3
75
76/* This value can be modified based on the number
77of samples needed to be stored in the device buffer
78and based on the available RAM memory of the platform */
79#define SAMPLES_PER_CHANNEL_PLATFORM 20000
80#define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL_PLATFORM * 4)
81
82#define UART_BAUDRATE 115200
83
85#define PWM_0_PERIOD_NS 200
86#define PWM_0_DUTY_NS 16
87#define PWM_0_PHASE 0
88
89#define PWM_1_PERIOD_NS 200
90#define PWM_1_DUTY_NS 144
91#define PWM_1_PHASE 0
92
93#define GPIO_OPS &xil_gpio_ops
94#define GPIO_EXTRA &xil_gpio_init
95
96#define DCACHE_INVALIDATE Xil_DCacheInvalidateRange
97
98#endif /* __PARAMETERS_H__ */
99
struct axi_pwm_init_param axi_pwm_0_extra
Definition common_data.c:75
struct xil_uart_init_param iio_uart_extra_ip
Definition parameters.c:36
Structure holding the initialization parameters for axi PWM.
Definition axi_pwm_extra.h:44
Structure holding the initialization parameters for Xilinx platform specific UART parameters.
Definition xilinx_uart.h:56