[finsh] finsh组件可以选择是否包含内置命令

This commit is contained in:
Meco Man
2021-08-25 19:10:01 -04:00
parent bd44c1e590
commit 29828dc94f
29 changed files with 122 additions and 95 deletions
+4 -2
View File
@@ -291,7 +291,9 @@ struct exception_info
*/
void rt_hw_hard_fault_exception(struct exception_info * exception_info)
{
#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS)
extern long list_thread(void);
#endif
struct stack_frame* context = &exception_info->stack_frame;
if (rt_exception_hook != RT_NULL)
@@ -325,9 +327,9 @@ void rt_hw_hard_fault_exception(struct exception_info * exception_info)
{
rt_kprintf("hard fault on thread: %s\r\n\r\n", rt_thread_self()->name);
#ifdef RT_USING_FINSH
#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS)
list_thread();
#endif /* RT_USING_FINSH */
#endif
}
else
{