fix x1000 memory use bug

This commit is contained in:
bigmagic 2020-04-03 20:26:50 +08:00
parent 0f57faa591
commit b45d2326c9
1 changed files with 7 additions and 5 deletions

View File

@ -90,6 +90,13 @@ void rt_hw_board_init(void)
/* init hardware interrupt */
rt_hw_interrupt_init();
#ifdef RT_USING_HEAP
/* init memory system */
rt_system_heap_init(RT_HW_HEAP_BEGIN, RT_HW_HEAP_END);
#endif
/* init uart */
rt_hw_uart_init();
#ifdef RT_USING_CONSOLE
@ -97,11 +104,6 @@ void rt_hw_board_init(void)
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif /* RT_USING_CONSOLE */
#ifdef RT_USING_HEAP
/* init memory system */
rt_system_heap_init(RT_HW_HEAP_BEGIN, RT_HW_HEAP_END);
#endif
#ifdef RT_USING_COMPONENTS_INIT
rt_components_board_init();
#endif