Skip to content

Commit 5a695f9

Browse files
committed
[nrf5x] add fixed board.c
1 parent 5280115 commit 5a695f9

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

bsp/nrf5x/nrf5340/board/board.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,16 @@ void rt_hw_board_init(void)
6565
rt_hw_uart_init();
6666
#endif
6767

68-
#ifdef SEGGER_RTT_ENABLE
69-
extern int rt_hw_jlink_rtt_init(void);
70-
rt_hw_jlink_rtt_init();
71-
rt_console_set_device("jlinkRtt");
72-
#else
73-
#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
68+
#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
69+
#ifdef SEGGER_RTT_ENABLE
70+
extern int rt_hw_jlink_rtt_init(void);
71+
rt_hw_jlink_rtt_init();
72+
rt_console_set_device("jlinkRtt");
73+
#else
7474
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
7575
#endif
7676
#endif
7777

78-
7978
#ifdef RT_USING_COMPONENTS_INIT
8079
rt_components_board_init();
8180
#endif

0 commit comments

Comments
 (0)