00001 /****************************************************************************** 00002 * 00003 * Author: Gary Chung 00004 * 00005 * This file contains the software definitions for the terminal. 00006 * 00007 ******************************************************************************/ 00008 00016 #ifndef TERM_H 00017 #define TERM_H 00018 00019 /***************************** Include Files ********************************/ 00020 00021 #include "xparameters.h" 00022 #include "xuartlite_l.h" 00023 #include "fat16.h" 00024 #include "term.h" 00025 00026 /************************** Constant Definitions ****************************/ 00027 00028 #define STDIO_BASEADDR XPAR_RS232_DTE_BASEADDR 00029 #define LINE_SIZE 512 00030 00031 /***************** Macros (Inline Functions) Definitions *********************/ 00032 00033 /* Prints a character on the terminal. */ 00034 #define Term_PutChar(c) XUartLite_SendByte(STDIO_BASEADDR, (c)) 00035 00036 /*************************** Function Prototypes ****************************/ 00037 00038 void Term_Echo(); 00039 void Term_Ls(); 00040 void Term_Read(); 00041 int Term_Parse(); 00042 int Term_Prompt(); 00043 00044 #endif