1 /*
2  * Copyright (c) 2006-2021, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2009-09-22     Bernard      add board.h to this bsp
9  * 2010-02-04     Magicoe      add board.h to LPC176x bsp
10  * 2014-07-18     ArdaFu       port it to TM4C129X bsp
11  */
12 
13 #ifndef __BOARD_H__
14 #define __BOARD_H__
15 
16 #include "tm4c1294ncpdt.h"
17 #include <rtthread.h>
18 #include <stdbool.h>
19 #include <stdint.h>
20 
21 extern uint32_t SystemCoreClock;
22 #ifdef __CC_ARM
23 extern int Image$$RW_IRAM$$ZI$$Limit;
24 #define HEAP_BEGIN  ((void *)&Image$$RW_IRAM$$ZI$$Limit)
25 #elif __ICCARM__
26 #pragma section="HEAP"
27 #define HEAP_BEGIN  (__segment_end("HEAP"))
28 #else
29 extern int _ebss;
30 #define HEAP_BEGIN  ((void *)&_ebss)
31 #endif
32 #define HEAP_END    ((void *)(0x20000000 + 256*1024))
33 
34 #define FINSH_DEVICE_NAME   RT_CONSOLE_DEVICE_NAME
35 void rt_hw_board_init(void);
36 
37 #endif
38