Merge pull request #3499 from bigmagic123/fix_x1000_bug

fix x1000 memory use bug
This commit is contained in:
Bernard Xiong 2020-04-07 15:32:19 +08:00 committed by GitHub
commit fc728ad721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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