4 * XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A
5 * COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
6 * ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION OR
7 * STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION
8 * IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE
9 * FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION
10 * XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO
11 * THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO
12 * ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE
13 * FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY
14 * AND FITNESS FOR A PARTICULAR PURPOSE.
18 * Xilinx EDK 10.1 EDK_K.15
20 * This file is a sample test application
22 * This application is intended to test and/or illustrate some
23 * functionality of your system. The contents of this file may
24 * vary depending on the IP in your system and may use existing
25 * IP driver functions. These drivers will be generated in your
26 * XPS project when you run the "Generate Libraries" menu item
29 * Your XPS project directory is at:
30 * C:\E\Dev\FreeRTOS\WorkingCopy2\Demo\PPC405_Xilinx_Virtex4_GCC\
34 // Located in: ppc405_0/include/xparameters.h
35 #include "xparameters.h"
40 #include "xexception_l.h"
41 #include "intc_header.h"
42 #include "xuartlite.h"
43 #include "uartlite_header.h"
44 #include "uartlite_intr_header.h"
45 #include "xbasic_types.h"
47 #include "gpio_header.h"
49 //====================================================
56 XCache_EnableICache(0x00000001);
57 XCache_EnableDCache(0x00000001);
58 static XUartLite RS232_Uart_UartLite;
64 // status = IntcSelfTestExample(XPAR_XPS_INTC_0_DEVICE_ID);
71 // Status = IntcInterruptSetup(&intc, XPAR_XPS_INTC_0_DEVICE_ID);
79 // status = UartLiteSelfTestExample(XPAR_RS232_UART_DEVICE_ID);
84 // Status = UartLiteIntrExample(&intc, &RS232_Uart_UartLite, \
85 // XPAR_RS232_UART_DEVICE_ID, \
86 // XPAR_XPS_INTC_0_RS232_UART_INTERRUPT_INTR);
93 status = GpioOutputExample(XPAR_LEDS_4BIT_DEVICE_ID,4);
100 status = GpioOutputExample(XPAR_LEDS_POSITIONS_DEVICE_ID,5);
103 XCache_DisableDCache();
104 XCache_DisableICache();