Skip to content

Commit 95589a7

Browse files
committed
When using the serial port version 2, include the "dev_serial_v2.h" file to prevent compilation errors.
1 parent 7185932 commit 95589a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/finsh/shell.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858
#include <posix/stdio.h>
5959
#endif /* RT_USING_POSIX_STDIO */
6060

61+
#ifdef RT_USING_SERIAL_V2
62+
#include <drivers/dev_serial_v2.h>
63+
#endif /* RT_USING_SERIAL_V2 */
64+
6165
/* finsh thread */
6266
#ifndef RT_USING_HEAP
6367
static struct rt_thread finsh_thread = { 0 };

0 commit comments

Comments
 (0)