Skip to content

Commit 3e79d21

Browse files
raiden00plxiaoxiang781216
authored andcommitted
arch/arm: fix undefined reference to arm_serialinit when RTT console used
1 parent 0b00a02 commit 3e79d21

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

arch/arm/src/common/arm_internal.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
# elif defined(CONFIG_CONSOLE_SYSLOG)
5555
# undef USE_SERIALDRIVER
5656
# undef USE_EARLYSERIALINIT
57+
# elif defined(CONFIG_SERIAL_RTT_CONSOLE)
58+
# undef USE_SERIALDRIVER
59+
# undef USE_EARLYSERIALINIT
5760
# else
5861
# define USE_SERIALDRIVER 1
5962
# define USE_EARLYSERIALINIT 1

arch/arm64/src/common/arm64_internal.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
# elif defined(CONFIG_CONSOLE_SYSLOG)
5656
# undef USE_SERIALDRIVER
5757
# undef USE_EARLYSERIALINIT
58+
# elif defined(CONFIG_SERIAL_RTT_CONSOLE)
59+
# undef USE_SERIALDRIVER
60+
# undef USE_EARLYSERIALINIT
5861
# else
5962
# define USE_SERIALDRIVER 1
6063
# define USE_EARLYSERIALINIT 1

0 commit comments

Comments
 (0)