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

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [cli/] [cli/] [sys_cli.c] - Diff between revs 29 and 31

Show entire file | Details | Blame | View Log

Rev 29 Rev 31
Line 67... Line 67...
#ifdef ANSI_ESCAPE_CODE
#ifdef ANSI_ESCAPE_CODE
  static char prev_char;
  static char prev_char;
  static unsigned int csi;
  static unsigned int csi;
#endif
#endif
 
 
 
#ifdef CLI_ECHO_UART
 
  fwrite(in_buffer,1,line_length,stdout);
 
#endif
 
 
  unsigned int i;
  unsigned int i;
 
 
  if(out_buffer != NULL)
  if(out_buffer != NULL)
  {
  {
    out_ptr   = out_buffer;
    out_ptr   = out_buffer;
Line 217... Line 221...
  struct cli_cmd_tab_t *cli_cmd;
  struct cli_cmd_tab_t *cli_cmd;
  unsigned int bytes_read;
  unsigned int bytes_read;
 
 
  cli_init();
  cli_init();
 
 
  // PRINTF_MACRO("\r\n");
 
 
 
  for(;;)
  for(;;)
  {
  {
    // PRINTF_MACRO("%d > ", last_return_value);
 
    PRINTF_MACRO("\r\n# > ");
    PRINTF_MACRO("\r\n# > ");
 
 
    cli_argc = 0;
    cli_argc = 0;
    last_return_value = EXIT_SUCCESS;
    last_return_value = EXIT_SUCCESS;
 
 
Line 268... Line 269...
 
 
          cli_ptr = strtok(NULL, " \t");
          cli_ptr = strtok(NULL, " \t");
        }
        }
      }
      }
 
 
      // PRINTF_MACRO("\r\n");
 
 
 
      last_return_value = cli_cmd->func(cli_argc, (const char **)cli_argv);
      last_return_value = cli_cmd->func(cli_argc, (const char **)cli_argv);
      break;
      break;
    }
    }
 
 
  }
  }

powered by: WebSVN 2.1.0

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