C:/EDK_Projects/Spartan3E/TestApp_MicroSD/src/term.c File Reference

#include "xuartlite_l.h"
#include "xio.h"
#include "string.h"
#include "fat16.h"
#include "term.h"

Go to the source code of this file.

Functions

void Term_Clear ()
void Term_Echo ()
void Term_Ls ()
void Term_Read ()
int Term_Parse ()
int Term_Prompt ()


Detailed Description

This file contain the functions for the terminal, allowing the user to send commands to board.

Definition in file term.c.


Function Documentation

void Term_Clear (  ) 

clear: clear

clears screen.

Definition at line 37 of file term.c.

Referenced by Term_Parse().

void Term_Echo (  ) 

echo: echo [arg ...]

outputs [arg ...].

Definition at line 58 of file term.c.

Referenced by Term_Parse().

void Term_Ls (  ) 

ls: ls [directory] [-options]

lists the files and subdirectories of [directory].

Definition at line 79 of file term.c.

References Fat16_SDPrintDir().

Referenced by Term_Parse().

int Term_Parse (  ) 

Read the line in the Terminal Buffer, responde accordingly.

Returns:
FALSE if exit command is given, otherwise TRUE is returned.

Definition at line 109 of file term.c.

References Term_Clear(), Term_Echo(), Term_Ls(), and Term_Read().

Referenced by Term_Prompt().

int Term_Prompt (  ) 

Prompt user for input.

Returns:
Term_Parse().

Definition at line 149 of file term.c.

References Term_Parse().

void Term_Read (  ) 

read: read [filename/directory]

print the contents of [filename/directory].

Definition at line 91 of file term.c.

References Fat16_SDReadFile().

Referenced by Term_Parse().


Generated on Tue Sep 16 17:38:45 2008 for TestApp_MicroSD by  doxygen 1.5.6