no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef __PARAMETERS_H__
35 #define __PARAMETERS_H__
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 #include <xparameters.h>
41 #include <xil_cache.h>
42 #include <xilinx_uart.h>
43 #include "axi_pwm_extra.h"
44 #include "spi_engine.h"
45 #include "xilinx_gpio.h"
46 
47 /******************************************************************************/
48 /********************** Macros and Constants Definitions **********************/
49 /******************************************************************************/
50 #define DCACHE_INVALIDATE Xil_DCacheInvalidateRange
51 
52 #define DMA_BASEADDR XPAR_AXI_AD469X_DMA_BASEADDR
53 #define SPI_ENGINE_BASEADDR XPAR_SPI_AD469X_SPI_AD469X_AXI_REGMAP_BASEADDR
54 #define RX_CLKGEN_BASEADDR XPAR_SPI_CLKGEN_BASEADDR
55 #define AXI_PWMGEN_BASEADDR XPAR_AD469X_TRIGGER_GEN_BASEADDR
56 #define SPI_ENG_REF_CLK_FREQ_HZ XPAR_PS7_SPI_0_SPI_CLK_FREQ_HZ
57 
58 #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
59 
60 #define NUM_SAMPLES 2000
61 #define BYTES_PER_SAMPLE 4
62 #define MAX_CHANNELS 17
63 #define ADC_DDR_BASEADDR XPAR_DDR_MEM_BASEADDR + 0x800000
64 #define MAX_SIZE_BASE_ADDR (NUM_SAMPLES * BYTES_PER_SAMPLE * MAX_CHANNELS)
65 
67 #define UART_EXTRA &uart_extra_ip
68 #define UART_OPS &xil_uart_ops
69 #define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
70 #define UART_IRQ_ID XPAR_XUARTPS_1_INTR
71 #define UART_BAUDRATE 115200
72 
73 extern struct axi_pwm_init_param pwm_extra_ip;
74 #define PWM_OPS &axi_pwm_ops
75 #define PWM_EXTRA &pwm_extra_ip
76 #define PWM_PERIOD 1000
77 #define PWM_DUTY 10
78 
80 #define GPIO_OPS &xil_gpio_ops
81 #define GPIO_EXTRA &gpio_extra_ip
82 #define GPIO_OFFSET 54
83 #define GPIO_RESETN_1 GPIO_OFFSET + 32
84 #define GPIO_DEVICE_ID XPAR_PS7_GPIO_0_DEVICE_ID
85 
87 #define SPI_DEVICE_ID 0
88 #define SPI_OPS &spi_eng_platform_ops
89 #define SPI_EXTRA &spi_eng_extra_ip
90 #define SPI_CS 0
91 #define SPI_BAUDRATE 80000000
92 #endif /* __PARAMETERS_H__ */
gpio_extra_ip
struct xil_gpio_init_param gpio_extra_ip
Definition: parameters.c:63
xilinx_uart.h
uart_extra_ip
struct xil_uart_init_param uart_extra_ip
Definition: parameters.c:40
pwm_extra_ip
struct axi_pwm_init_param pwm_extra_ip
Definition: parameters.c:50
spi_eng_extra_ip
struct spi_engine_init_param spi_eng_extra_ip
Definition: parameters.c:55
spi_engine.h
xilinx_gpio.h
xil_uart_init_param
Structure holding the initialization parameters for Xilinx platform specific UART parameters.
Definition: xilinx_uart.h:67
axi_pwm_init_param
Structure holding the initialization parameters for axi PWM.
Definition: axi_pwm_extra.h:50
spi_engine_init_param
Structure containing the init parameters needed by the SPI engine.
Definition: spi_engine.h:83
xil_gpio_init_param
Structure holding the initialization parameters for Xilinx platform specific GPIO parameters.
Definition: xilinx_gpio.h:64
axi_pwm_extra.h