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 
44 /******************************************************************************/
45 /********************** Macros and Constants Definitions **********************/
46 /******************************************************************************/
47 #ifdef _XPARAMETERS_PS_H_
48 #define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
49 #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
50 
51 #ifdef XPS_BOARD_ZCU102
52 #define UART_IRQ_ID XPAR_XUARTPS_0_INTR
53 #else
54 #define UART_IRQ_ID XPAR_XUARTPS_1_INTR
55 #endif
56 
57 #else // _XPARAMETERS_PS_H_
58 #define UART_DEVICE_ID XPAR_AXI_UART_DEVICE_ID
59 #define INTC_DEVICE_ID XPAR_INTC_SINGLE_DEVICE_ID
60 #define UART_IRQ_ID XPAR_AXI_INTC_AXI_UART_INTERRUPT_INTR
61 #endif // _XPARAMETERS_PS_H_
62 
63 #define UART_EXTRA &iio_demo_uart_extra_ip
64 #define UART_OPS &xil_uart_ops
65 
67 
68 /* This value can be modified based on the number
69 of samples needed to be stored in the device buffer
70 and based on the available RAM memory of the platform */
71 #define SAMPLES_PER_CHANNEL_PLATFORM 2000
72 #define UART_BAUDRATE 115200
73 
74 #endif /* __PARAMETERS_H__ */
xilinx_uart.h
iio_demo_uart_extra_ip
struct max_uart_init_param iio_demo_uart_extra_ip
Definition: parameters.c:42
xil_uart_init_param
Structure holding the initialization parameters for Xilinx platform specific UART parameters.
Definition: xilinx_uart.h:67