We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5280115 commit 5a695f9Copy full SHA for 5a695f9
bsp/nrf5x/nrf5340/board/board.c
@@ -65,17 +65,16 @@ void rt_hw_board_init(void)
65
rt_hw_uart_init();
66
#endif
67
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)
+#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
+ #ifdef SEGGER_RTT_ENABLE
+ extern int rt_hw_jlink_rtt_init(void);
+ rt_hw_jlink_rtt_init();
+ rt_console_set_device("jlinkRtt");
+ #else
74
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
75
76
77
78
-
79
#ifdef RT_USING_COMPONENTS_INIT
80
rt_components_board_init();
81
0 commit comments