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

#include "xparameters.h"
#include "xuartlite_l.h"
#include "fat16.h"
#include "term.h"

Go to the source code of this file.

Functions

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


Detailed Description

The implementation of the SPI component's basic functionality to communicate with the microSD card. Only low level SPI functions are used in this file.

Definition in file term.h.


Function Documentation

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