summaryrefslogtreecommitdiff
path: root/bsp/ls1cdev/drivers
diff options
context:
space:
mode:
authorMan, Jianting (Meco) <[email protected]>2022-01-08 10:29:41 -0500
committerBernard Xiong <[email protected]>2022-01-09 00:20:32 +0800
commitbb1084556ff9395e6e5d908edfef9cab6f6fa4dc (patch)
tree97e0844decee5d889c1b10d88d16db36bba44245 /bsp/ls1cdev/drivers
parent353f717037b57f663ddce9447fd05700f3087a66 (diff)
[console] 解决在没有定义RT_USING_DEVICE的情况下使用device报错的问题
* [console] 解决在没有定义RT_USING_DEVICE的情况下使用device报错的问题 * format codes * [libc] 整理格式 * refresh projects
Diffstat (limited to 'bsp/ls1cdev/drivers')
-rw-r--r--bsp/ls1cdev/drivers/board.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bsp/ls1cdev/drivers/board.c b/bsp/ls1cdev/drivers/board.c
index b000daafc5..390e9971b2 100644
--- a/bsp/ls1cdev/drivers/board.c
+++ b/bsp/ls1cdev/drivers/board.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -31,10 +31,10 @@ void rt_hw_board_init(void)
{
/* init hardware interrupt */
rt_hw_exception_init();
-
+
/* init hardware interrupt */
rt_hw_interrupt_init();
-
+
#ifdef RT_USING_HEAP
rt_system_heap_init((void*)&__bss_end, (void*)RT_HW_HEAP_END);
#endif
@@ -44,7 +44,7 @@ void rt_hw_board_init(void)
rt_hw_uart_init();
#endif
-#ifdef RT_USING_CONSOLE
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
/* set console device */
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif