2010-03-22 07:49:57 +08:00
|
|
|
/*
|
2018-10-14 19:28:18 +08:00
|
|
|
* Copyright (c) 2006-2018, RT-Thread Development Team
|
2010-03-22 07:49:57 +08:00
|
|
|
*
|
2018-10-14 19:28:18 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2010-03-22 07:49:57 +08:00
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2010-03-22 Bernard first version
|
|
|
|
*/
|
2009-07-03 06:48:23 +08:00
|
|
|
#include "finsh.h"
|
|
|
|
|
|
|
|
long hello(void);
|
|
|
|
long version(void);
|
|
|
|
long list(void);
|
|
|
|
long list_thread(void);
|
|
|
|
long list_sem(void);
|
|
|
|
long list_mutex(void);
|
|
|
|
long list_fevent(void);
|
|
|
|
long list_event(void);
|
|
|
|
long list_mailbox(void);
|
|
|
|
long list_msgqueue(void);
|
|
|
|
long list_mempool(void);
|
|
|
|
long list_timer(void);
|
|
|
|
|
|
|
|
#ifdef FINSH_USING_SYMTAB
|
2018-03-01 21:01:20 +08:00
|
|
|
struct finsh_syscall *_syscall_table_begin = NULL;
|
|
|
|
struct finsh_syscall *_syscall_table_end = NULL;
|
|
|
|
struct finsh_sysvar *_sysvar_table_begin = NULL;
|
|
|
|
struct finsh_sysvar *_sysvar_table_end = NULL;
|
2009-07-03 06:48:23 +08:00
|
|
|
#else
|
|
|
|
struct finsh_syscall _syscall_table[] =
|
|
|
|
{
|
2018-03-01 21:01:20 +08:00
|
|
|
{"hello", hello},
|
|
|
|
{"version", version},
|
|
|
|
{"list", list},
|
|
|
|
{"list_thread", list_thread},
|
2009-07-03 06:48:23 +08:00
|
|
|
#ifdef RT_USING_SEMAPHORE
|
2018-03-01 21:01:20 +08:00
|
|
|
{"list_sem", list_sem},
|
2009-07-03 06:48:23 +08:00
|
|
|
#endif
|
|
|
|
#ifdef RT_USING_MUTEX
|
2018-03-01 21:01:20 +08:00
|
|
|
{"list_mutex", list_mutex},
|
2009-07-03 06:48:23 +08:00
|
|
|
#endif
|
|
|
|
#ifdef RT_USING_FEVENT
|
2018-03-01 21:01:20 +08:00
|
|
|
{"list_fevent", list_fevent},
|
2009-07-03 06:48:23 +08:00
|
|
|
#endif
|
|
|
|
#ifdef RT_USING_EVENT
|
2018-03-01 21:01:20 +08:00
|
|
|
{"list_event", list_event},
|
2009-07-03 06:48:23 +08:00
|
|
|
#endif
|
|
|
|
#ifdef RT_USING_MAILBOX
|
2018-03-01 21:01:20 +08:00
|
|
|
{"list_mb", list_mailbox},
|
2009-07-03 06:48:23 +08:00
|
|
|
#endif
|
|
|
|
#ifdef RT_USING_MESSAGEQUEUE
|
2018-03-01 21:01:20 +08:00
|
|
|
{"list_mq", list_msgqueue},
|
2009-07-03 06:48:23 +08:00
|
|
|
#endif
|
|
|
|
#ifdef RT_USING_MEMPOOL
|
2018-03-01 21:01:20 +08:00
|
|
|
{"list_memp", list_mempool},
|
2009-07-03 06:48:23 +08:00
|
|
|
#endif
|
2018-03-01 21:01:20 +08:00
|
|
|
{"list_timer", list_timer},
|
2009-07-03 06:48:23 +08:00
|
|
|
};
|
|
|
|
struct finsh_syscall *_syscall_table_begin = &_syscall_table[0];
|
|
|
|
struct finsh_syscall *_syscall_table_end = &_syscall_table[sizeof(_syscall_table) / sizeof(struct finsh_syscall)];
|
|
|
|
|
|
|
|
struct finsh_sysvar *_sysvar_table_begin = NULL;
|
|
|
|
struct finsh_sysvar *_sysvar_table_end = NULL;
|
|
|
|
#endif
|