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.
2 parents 0f57faa + b45d232 commit fc728adCopy full SHA for fc728ad
bsp/x1000/drivers/board.c
@@ -90,18 +90,20 @@ void rt_hw_board_init(void)
90
91
/* init hardware interrupt */
92
rt_hw_interrupt_init();
93
+
94
+#ifdef RT_USING_HEAP
95
+ /* init memory system */
96
+ rt_system_heap_init(RT_HW_HEAP_BEGIN, RT_HW_HEAP_END);
97
+#endif
98
99
+ /* init uart */
100
rt_hw_uart_init();
101
102
#ifdef RT_USING_CONSOLE
103
/* set console device */
104
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
105
#endif /* RT_USING_CONSOLE */
106
-#ifdef RT_USING_HEAP
- /* init memory system */
- rt_system_heap_init(RT_HW_HEAP_BEGIN, RT_HW_HEAP_END);
-#endif
-
107
#ifdef RT_USING_COMPONENTS_INIT
108
rt_components_board_init();
109
#endif
0 commit comments