no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef __PARAMETERS_H__
34 #define __PARAMETERS_H__
35 
36 /******************************************************************************/
37 /***************************** Include Files **********************************/
38 /******************************************************************************/
39 
40 #ifdef XILINX_PLATFORM
41 #include <xparameters.h>
42 #endif
43 
44 #ifdef ADUCM_PLATFORM
45 #include "aducm3029_irq.h"
46 #endif
47 
48 /******************************************************************************/
49 /********************** Macros and Constants Definitions **********************/
50 /******************************************************************************/
51 
52 
53 #ifdef XILINX_PLATFORM
54 
55 #ifdef _XPARAMETERS_PS_H_
56 #define ADC_DDR_BASEADDR (XPAR_DDR_MEM_BASEADDR + 0x800000)
57 #define DAC_DDR_BASEADDR (XPAR_DDR_MEM_BASEADDR + 0xA000000)
58 #define UART_DEVICE_ID XPAR_XUARTPS_0_DEVICE_ID
59 #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID
60 
61 #ifdef XPS_BOARD_ZCU102
62 #define UART_IRQ_ID XPAR_XUARTPS_0_INTR
63 #else
64 #define UART_IRQ_ID XPAR_XUARTPS_1_INTR
65 #endif
66 
67 #else // _XPARAMETERS_PS_H_
68 
69 #ifdef XPAR_DDR3_SDRAM_S_AXI_BASEADDR
70 #define ADC_DDR_BASEADDR (XPAR_DDR3_SDRAM_S_AXI_BASEADDR + 0x800000)
71 #define DAC_DDR_BASEADDR (XPAR_DDR3_SDRAM_S_AXI_BASEADDR + 0xA000000)
72 #else
73 #define ADC_DDR_BASEADDR (XPAR_AXI_DDR_CNTRL_BASEADDR + 0x800000)
74 #define DAC_DDR_BASEADDR (XPAR_AXI_DDR_CNTRL_BASEADDR + 0xA000000)
75 #endif
76 
77 #define UART_DEVICE_ID XPAR_AXI_UART_DEVICE_ID
78 #define INTC_DEVICE_ID XPAR_INTC_SINGLE_DEVICE_ID
79 #define UART_IRQ_ID XPAR_AXI_INTC_AXI_UART_INTERRUPT_INTR
80 #endif // _XPARAMETERS_PS_H_
81 
82 #define UART_OPS &xil_uart_ops
83 
84 /* 400 * 8 * 2 = 6400‬ Default number of samples requested on a capture */
85 #define MAX_SIZE_BASE_ADDR 10000
86 #define UART_BAUDRATE 115200
87 
88 #endif // XILINX_PLATFORM
89 
90 #ifdef ADUCM_PLATFORM
91 
92 #define UART_DEVICE_ID 0
93 #define INTC_DEVICE_ID 0
94 #define UART_IRQ_ID ADUCM_UART_INT_ID
95 #define UART_BAUDRATE 115200
96 #define UART_OPS &aducm_uart_ops
97 
98 #endif //ADUCM_PLATFORM
99 
100 #define WIFI_SSID "RouterSSID"
101 #define WIFI_PWD "******"
102 
103 #endif // __PARAMETERS_H__
aducm3029_irq.h
Header file of IRQ driver for ADuCM302x.