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
59
/*
60
* The ZCU102 routes its JTAG/USB-UART adapter to UART0; all other Zynq-7000
61
* and ZynqMP boards (Cora Z7, ZED, ZC706, ...) use UART1.
62
*/
63
#ifdef XPS_BOARD_ZCU102
64
#define UART_IRQ_ID XPAR_XUARTPS_0_INTR
65
#else
66
#define UART_IRQ_ID XPAR_XUARTPS_1_INTR
67
#endif
68
69
#else
/* MicroBlaze / PL-only */
70
71
#define UART_DEVICE_ID XPAR_AXI_UART_DEVICE_ID
72
#define UART_IRQ_ID XPAR_AXI_INTC_AXI_UART_INTERRUPT_INTR
73
74
#endif
/* _XPARAMETERS_PS_H_ */
75
76
#define UART_BAUDRATE 115200
77
#define UART_EXTRA &hello_world_uart_extra_ip
78
#define UART_OPS &xil_uart_ops
79
80
extern
struct
xil_uart_init_param
hello_world_uart_extra_ip
;
81
82
#endif
/* __PARAMETERS_H__ */
hello_world_uart_extra_ip
struct xil_uart_init_param hello_world_uart_extra_ip
Definition
parameters.c:43
xil_uart_init_param
Structure holding the initialization parameters for Xilinx platform specific UART parameters.
Definition
xilinx_uart.h:56
xilinx_uart.h
projects
hello_world
src
platform
xilinx
parameters.h
Copyright © 2024
Analog Devices Inc.
. All Rights Reserved.