File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
bsp/bluetrum/ab32vg1-ab-prougen/board Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ static struct rt_mutex mutex_cache = {0};
3030extern volatile rt_uint8_t rt_interrupt_nest ;
3131extern uint32_t __heap_start , __heap_end ;
3232
33+ #ifdef RT_USING_CONSOLE
3334void hal_printf (const char * fmt , ...)
3435{
3536 rt_device_t console = rt_console_get_device ();
@@ -65,6 +66,7 @@ void hal_printf(const char *fmt, ...)
6566#endif
6667 va_end (args );
6768}
69+ #endif
6870
6971RT_SECTION (".irq.timer" )
7072void timer0_isr (int vector , void * param )
@@ -210,8 +212,10 @@ void exception_isr(void)
210212 extern long list_thread (void );
211213 sys_error_hook (1 );
212214
215+ #ifdef RT_USING_CONSOLE
213216 rt_console_set_device (RT_NULL );
214217 rt_kprintf (stack_info , rt_thread_self ()-> sp , rt_thread_self ()-> name );
218+ #endif
215219
216220 while (1 );
217221}
You can’t perform that action at this time.
0 commit comments