1 /*
2  * Copyright (c) 2006-2018, 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  */
10 
11 // <<< Use Configuration Wizard in Context Menu >>>
12 #ifndef __BOARD_H__
13 #define __BOARD_H__
14 
15 #include "fsl_common.h"
16 #include "clock_config.h"
17 
18 #ifdef __CC_ARM
19 extern int Image$$RTT_HEAP$$ZI$$Base;
20 extern int Image$$RTT_HEAP$$ZI$$Limit;
21 #define HEAP_BEGIN          (&Image$$RTT_HEAP$$ZI$$Base)
22 #define HEAP_END            (&Image$$RTT_HEAP$$ZI$$Limit)
23 
24 #elif __ICCARM__
25 #pragma section="HEAP"
26 #define HEAP_BEGIN          (__segment_end("HEAP"))
27 extern void __RTT_HEAP_END;
28 #define HEAP_END            (&__RTT_HEAP_END)
29 
30 #else
31 extern int heap_start;
32 extern int heap_end;
33 #define HEAP_BEGIN          (&heap_start)
34 #define HEAP_END            (&heap_end)
35 #endif
36 
37 #define HEAP_SIZE           ((uint32_t)HEAP_END - (uint32_t)HEAP_BEGIN)
38 
39 void rt_hw_board_init(void);
40 
41 #endif
42 
43