diff options
| author | charlown <[email protected]> | 2021-09-02 22:39:34 +0800 |
|---|---|---|
| committer | charlown <[email protected]> | 2021-09-02 22:39:34 +0800 |
| commit | 8abbe89cee0099f3ec727de53baf20f7945434e9 (patch) | |
| tree | a9d8b24c6f6bcb927963757846c21d9926797c43 /libcpu/rx | |
| parent | 2e74dd8e2d641f581ef733a050392d161d3643d0 (diff) | |
| parent | dca7dcb42a44249abbe6c36ce2a69355e60d1f79 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'libcpu/rx')
| -rw-r--r-- | libcpu/rx/cpuport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/rx/cpuport.c b/libcpu/rx/cpuport.c index 00f9e26ba9..366569f63d 100644 --- a/libcpu/rx/cpuport.c +++ b/libcpu/rx/cpuport.c @@ -94,7 +94,7 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, void *parameter, return(rt_uint8_t *)stack_frame; } -#ifdef RT_USING_FINSH +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) extern void list_thread(void); #endif extern rt_thread_t rt_current_thread; @@ -130,7 +130,7 @@ void rt_hw_hard_fault_exception(struct stack_frame* exception_contex) rt_kprintf("acclo: 0x%08x\n", exception_contex->ACCLO); } rt_kprintf("hard fault on thread: %s\n", rt_current_thread->name); - #ifdef RT_USING_FINSH + #if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif while (1); |
