1 /*
2  * Copyright (c) 2006-2024 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  * 2013-12-18     Bernard      porting to LPC4088 bsp
11  * 2017-08-02     XiaoYang     porting to LPC54608 bsp
12  */
13 
14 #ifndef __BOARD_H__
15 #define __BOARD_H__
16 
17 
18 #include <stdint.h>
19 
20 #include <rtthread.h>
21 
22 #include "clock_config.h"
23 #include "fsl_common.h"
24 #include "fsl_reset.h"
25 #include "fsl_gpio.h"
26 #include "pin_mux.h"
27 #include "fsl_edma.h"
28 
29 /* <RDTConfigurator URL="http://www.rt-thread.com/eclipse">*/
30 
31 /* </RDTConfigurator>*/
32 #if defined(__ARMCC_VERSION)
33 extern int Image$$ARM_LIB_HEAP$$ZI$$Base;
34 extern int Image$$ARM_LIB_STACK$$ZI$$Base;
35 #define HEAP_BEGIN  ((void *)&Image$$ARM_LIB_HEAP$$ZI$$Base)
36 #define HEAP_END    ((void*)&Image$$ARM_LIB_STACK$$ZI$$Base)
37 #elif defined(__ICCARM__)
38 #pragma section="HEAP"
39 #define HEAP_BEGIN    (__section_begin("HEAP"))
40 #define HEAP_END      (__section_end("HEAP"))
41 #elif defined(__GNUC__)
42 extern int __HeapBase;
43 extern int __HeapLimit;
44 #define HEAP_BEGIN  ((void *)&__HeapBase)
45 #define HEAP_END  ((void *)&__HeapLimit)
46 #endif
47 
48 void rt_hw_board_init(void);
49 
50 
51 #endif
52 
53 
54