accelerator/runtime_cli.c
void *cli_routine(void *arg) {
  ta_core = (ta_core_t *)arg;
  UNUSED(arg);
  char command[128];
  while (true) {
    printf("Command> ");
    fgets(command, 128, stdin);
    command[strlen(command) - 1] = '\0';
    if (strlen(command) == 0) continue;

    /* Initialize the state then process the command */
    ta_state_ptr = &start_state;
    handle_command(command);
  }
  return NULL;
}
/* Thread for runtime command line utility */
Thread for runtime command line utility
Thread for runtime command line utility
void *cli_routine(void *arg) {
  ta_core = (ta_core_t *)arg;
  UNUSED(arg);
  char command[128];
  while (true) {
    printf("Command> ");
    fgets(command, 128, stdin);
    command[strlen(command) - 1] = '\0';
    if (strlen(command) == 0) continue;
    ta_state_ptr = &start_state;
    handle_command(command);
  }
  return NULL;
}
void * cli_routine ( void * arg ) { ta_core = ( ta_core_t * ) arg ; UNUSED ( arg ) ; char command [ 128 ] ; while ( true ) { printf ( " " ) ; fgets ( command , 128 , stdin ) ; command [ strlen ( command ) - 1 ] = ' \0 ' ; if ( strlen ( command ) == 0 ) continue ; ta_state_ptr = & start_state ; handle_command ( command ) ; } return NULL ; }
Thread for runtime command line utility
Thread for runtime command line utility
/* Initialize the state then process the command */