git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1412 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2009-12-10 21:05:51 +00:00
parent dea70dbc79
commit 4bb9e7735d
3 changed files with 24 additions and 4 deletions

View File

@ -80,7 +80,7 @@
* @note Requires @p CH_USE_COREMEM. * @note Requires @p CH_USE_COREMEM.
*/ */
#if !defined(CH_MEMCORE_SIZE) || defined(__DOXYGEN__) #if !defined(CH_MEMCORE_SIZE) || defined(__DOXYGEN__)
#define CH_MEMCORE_SIZE 0x20000 #define CH_MEMCORE_SIZE 0x40000
#endif #endif
/*===========================================================================*/ /*===========================================================================*/

View File

@ -24,6 +24,7 @@
#define SHELL_WA_SIZE THD_WA_SIZE(4096) #define SHELL_WA_SIZE THD_WA_SIZE(4096)
#define CONSOLE_WA_SIZE THD_WA_SIZE(4096) #define CONSOLE_WA_SIZE THD_WA_SIZE(4096)
#define TEST_WA_SIZE THD_WA_SIZE(4096)
#define cprint(msg) chMsgSend(cdtp, (msg_t)msg) #define cprint(msg) chMsgSend(cdtp, (msg_t)msg)
@ -31,14 +32,33 @@ static Thread *cdtp;
static Thread *shelltp1; static Thread *shelltp1;
static Thread *shelltp2; static Thread *shelltp2;
void cmd_test(BaseChannel *chp, int argc, char *argv[]) {
Thread *tp;
(void)argv;
if (argc > 0) {
shellPrintLine(chp, "Usage: test");
return;
}
tp = chThdCreateFromHeap(NULL, TEST_WA_SIZE, chThdGetPriority(),
TestThread, chp);
chThdWait(tp);
// TestThread(chp);
}
static const ShellCommand commands[] = {
{"test", cmd_test},
{NULL, NULL}
};
static const ShellConfig shell_cfg1 = { static const ShellConfig shell_cfg1 = {
(BaseChannel *)&SD1, (BaseChannel *)&SD1,
NULL commands
}; };
static const ShellConfig shell_cfg2 = { static const ShellConfig shell_cfg2 = {
(BaseChannel *)&SD2, (BaseChannel *)&SD2,
NULL commands
}; };
/* /*

View File

@ -35,7 +35,7 @@
#endif #endif
/** /**
* @brief Shell maximum input line length. * @brief Shell maximum arguments per command.
*/ */
#if !defined(SHELL_MAX_ARGUMENTS) || defined(__DOXYGEN__) #if !defined(SHELL_MAX_ARGUMENTS) || defined(__DOXYGEN__)
#define SHELL_MAX_ARGUMENTS 4 #define SHELL_MAX_ARGUMENTS 4