finsh shell


Enumerations

enum  finsh_type { ,
  finsh_type_voidp, finsh_type_char, finsh_type_uchar, finsh_type_charp,
  finsh_type_short, finsh_type_ushort, finsh_type_shortp, finsh_type_int,
  finsh_type_uint, finsh_type_intp, finsh_type_long, finsh_type_ulong,
  finsh_type_longp
}

Functions

void finsh_syscall_append (const char *name, syscall_func func)
void finsh_sysvar_append (const char *name, u_char type, void *addr)

Detailed Description

finsh is a C-expression shell which gives user access to some symbols present in RT-Thread.

Enumeration Type Documentation

enum finsh_type

finsh basic data type

Enumerator:
finsh_type_voidp  void
finsh_type_char  void pointer
finsh_type_uchar  char
finsh_type_charp  unsigned char
finsh_type_short  char pointer
finsh_type_ushort  short
finsh_type_shortp  unsigned short
finsh_type_int  short pointer
finsh_type_uint  int
finsh_type_intp  unsigned int
finsh_type_long  int pointer
finsh_type_ulong  long
finsh_type_longp  unsigned long long pointer


Function Documentation

void finsh_syscall_append ( const char *  name,
syscall_func  func 
)

append a system call to finsh runtime environment

Parameters:
name the name of system call
func the function pointer of system call

void finsh_sysvar_append ( const char *  name,
u_char  type,
void *  addr 
)

append a system variable to finsh runtime environment

Parameters:
name the name of system variable
type the data type of system variable
addr the address of system variable


Generated on Thu Oct 9 07:19:09 2008 for RT-Thread Kernel by  doxygen 1.5.7