提交 8e2a699d 编写于 作者: A ArdaFu

[BSP][TM4C129X] Fix the bug that HEAP is not initalized at system start up.

上级 3408c57d
......@@ -55,12 +55,16 @@ extern void PendSV_Handler(void);
extern void HardFault_Handler(void);
/**
* This function will initial LPC40xx board.
* This function will initial TM4C129X board.
*/
void rt_hw_board_init()
{
//init low level drivers. e.g. cpu uart etc.
rt_components_board_init();
//init HEAP.
#ifdef RT_USING_HEAP
rt_system_heap_init(HEAP_BEGIN, HEAP_END);
#endif
//redirect RTT stdio to CONSOLE device
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
}
......
......@@ -33,7 +33,7 @@ extern int Image$$RW_IRAM$$ZI$$Limit;
extern int _ebss;
#define HEAP_BEGIN ((void *)&_ebss)
#endif
#define HEAP_END (0x20000000 + 256*1024)
#define HEAP_END ((void *)(0x20000000 + 256*1024))
#define FINSH_DEVICE_NAME RT_CONSOLE_DEVICE_NAME
void rt_hw_board_init(void);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册