Revision 10fd7ac9 core/src/aos_system.c

View differences:

core/src/aos_system.c
104 104
/**
105 105
 * @brief   Shell thread working area.
106 106
 */
107
THD_WORKING_AREA(_shell_wa, AMIROOS_CFG_SHELL_STACKSIZE);
107
static THD_WORKING_AREA(_shell_wa, AMIROOS_CFG_SHELL_STACKSIZE);
108 108

  
109 109
/**
110 110
 * @brief   Shell input buffer.
......
112 112
static char _shell_line[AMIROOS_CFG_SHELL_LINEWIDTH];
113 113

  
114 114
/**
115
 * @brief   Shell argument buffer.
116
 */
117
static char* _shell_arglist[AMIROOS_CFG_SHELL_MAXARGS];
118

  
119
/**
120 115
 * @brief   Shell command to retrieve system information.
121 116
 */
122 117
static AOS_SHELL_COMMAND(_shellcmd_info, "module:info", _shellcmd_infocb);
......
512 507
  // print shell info
513 508
  chprintf(stream, "System shell information:\n");
514 509
  chprintf(stream, "\tcommands available:     %u\n", aosShellCountCommands(&aos.shell));
515
  chprintf(stream, "\tline width:             %u characters\n", aos.shell.input.width);
516
  chprintf(stream, "\tmaximum arguments:      %u\n", aos.shell.arglistsize);
510
  chprintf(stream, "\tline width:             %u characters\n", aos.shell.input.length);
511
  chprintf(stream, "\tmaximum arguments:      %u\n", aos.shell.input.nargs);
517 512
#if (AMIROOS_CFG_DBG == true)
518 513
  chprintf(stream, "\tthread stack size:      %u bytes\n", aosThdGetStacksize(aos.shell.thread));
519 514
#if (CH_DBG_FILL_THREADS == TRUE)
......
747 742
               shellPrompt,
748 743
               _shell_line,
749 744
               AMIROOS_CFG_SHELL_LINEWIDTH,
750
               _shell_arglist,
751 745
               AMIROOS_CFG_SHELL_MAXARGS);
752 746
  // add system commands
753 747
  aosShellAddCommand(&aos.shell, &_shellcmd_config);

Also available in: Unified diff