no-OS
Loading...
Searching...
No Matches
parameters.h
Go to the documentation of this file.
1/***************************************************************************/
42#ifndef __PARAMETERS_H__
43#define __PARAMETERS_H__
44
45#include <xparameters.h>
46#include <xil_cache.h>
47#include <xilinx_uart.h>
48
49/*
50 * _XPARAMETERS_PS_H_ is defined whenever the design contains an ARM
51 * Processing System (PS) -- i.e. Zynq-7000 or ZynqMP. When it is NOT
52 * defined we are running on a MicroBlaze soft-core inside the PL and must
53 * use an AXI UART Lite peripheral instead.
54 */
55#ifdef _XPARAMETERS_PS_H_
56
57#define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
58#define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
59
60/*
61 * The ZCU102 routes its JTAG/USB-UART adapter to UART0; all other Zynq-7000
62 * and ZynqMP boards (Cora Z7, ZED, ZC706, ...) use UART1.
63 */
64#ifdef XPS_BOARD_ZCU102
65#define UART_IRQ_ID XPAR_XUARTPS_0_INTR
66#else
67#define UART_IRQ_ID XPAR_XUARTPS_1_INTR
68#endif
69
70#else /* MicroBlaze / PL-only */
71
72#define UART_DEVICE_ID XPAR_AXI_UART_DEVICE_ID
73#define INTC_DEVICE_ID XPAR_INTC_SINGLE_DEVICE_ID
74#define UART_IRQ_ID XPAR_AXI_INTC_AXI_UART_INTERRUPT_INTR
75
76#endif /* _XPARAMETERS_PS_H_ */
77
78#define UART_BAUDRATE 115200
79#define UART_EXTRA &hello_world_uart_extra_ip
80#define UART_OPS &xil_uart_ops
81
83
84#endif /* __PARAMETERS_H__ */
struct xil_uart_init_param hello_world_uart_extra_ip
Definition parameters.c:43
Structure holding the initialization parameters for Xilinx platform specific UART parameters.
Definition xilinx_uart.h:56