OpenCores
URL https://opencores.org/ocsvn/qaz_libs/qaz_libs/trunk

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [cli/] [cli/] [sys_cmd.h] - Blame information for rev 22

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 22 qaztronic
/*-----------------------------------------------------------*/
2
 
3
 
4
#ifndef _SYS_CMD_H_
5
#define _SYS_CMD_H_
6
 
7
#define INPUT_LINE_LENGTH   50
8
#define MAX_CMD_LENGTH      20
9
#define MAX_CLI_ARGC        6
10
 
11
// #include <xil_printf.h>
12
 
13
// #define ANSI_ESCAPE_CODE
14
 
15
#define PRINTF_MACRO xil_printf
16
// #define PRINTF_MACRO iprintf
17
 
18
typedef char (*cli_cmd_func)( const unsigned char argc, const char * argv[] );
19
 
20
typedef struct cli_cmd_tab_t
21
{
22
  char          cmd[MAX_CMD_LENGTH];
23
  cli_cmd_func  func;
24
  const char    *help_string;
25
} cli_cmd_tab_t;
26
 
27
extern struct cli_cmd_tab_t cli_commands[];
28
 
29
 
30
/*-----------------------------------------------------------*/
31
extern void sys_cli_task(void);
32
extern cli_cmd_tab_t *cli_find_command( cli_cmd_tab_t *cmd_to_check );
33
extern void cli_init( void );
34
 
35
 
36
/*-----------------------------------------------------------*/
37
 
38
 
39
#endif  //  _SYS_CMD_H_

powered by: WebSVN 2.1.0

© copyright 1999-2020 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.