no-OS
Loading...
Searching...
No Matches
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
41
#ifdef _XPARAMETERS_PS_H_
42
#define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
43
44
#ifdef XPS_BOARD_ZCU102
45
#define UART_IRQ_ID XPAR_XUARTPS_0_INTR
46
#else
47
#define UART_IRQ_ID XPAR_XUARTPS_1_INTR
48
#endif
49
50
#else
// _XPARAMETERS_PS_H_
51
#define UART_DEVICE_ID XPAR_AXI_UART_DEVICE_ID
52
#define UART_IRQ_ID XPAR_AXI_INTC_AXI_UART_INTERRUPT_INTR
53
#endif
// _XPARAMETERS_PS_H_
54
55
#define UART_EXTRA &iio_demo_uart_extra_ip
56
#define UART_OPS &xil_uart_ops
57
58
extern
struct
xil_uart_init_param
iio_demo_uart_extra_ip
;
59
60
/* This value can be modified based on the number
61
of samples needed to be stored in the device buffer
62
and based on the available RAM memory of the platform */
63
#define SAMPLES_PER_CHANNEL_PLATFORM 2000
64
#define UART_BAUDRATE 115200
65
66
#endif
/* __PARAMETERS_H__ */
iio_demo_uart_extra_ip
struct max_uart_init_param iio_demo_uart_extra_ip
Definition
parameters.c:36
xil_uart_init_param
Structure holding the initialization parameters for Xilinx platform specific UART parameters.
Definition
xilinx_uart.h:56
xilinx_uart.h
projects
iio_demo
src
platform
xilinx
parameters.h
Copyright © 2024
Analog Devices Inc.
. All Rights Reserved.