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  * 2013-12-18     Bernard      porting to LPC4088 bsp
11  */
12 
13 #ifndef __BOARD_H__
14 #define __BOARD_H__
15 
16 #include "LPC43xx.h"
17 #include <rtthread.h>
18 
19 /* disable SDRAM in default */
20 #ifndef LPC_EXT_SDRAM
21 #define LPC_EXT_SDRAM       0
22 #endif
23 
24 // <RDTConfigurator URL="http://www.rt-thread.com/eclipse">
25 
26 // <integer name="LPC_EXT_SDRAM" description="Begin Address of External SDRAM" default="0xA0000000" />
27 #define LPC_EXT_SDRAM_BEGIN    0xA0000000
28 // <integer name="LPC_EXT_SDRAM_END" description="End Address of External SDRAM" default="0xA2000000" />
29 #define LPC_EXT_SDRAM_END      0xA2000000
30 
31 // <bool name="RT_USING_UART0" description="Using UART0" default="true" />
32 // <bool name="RT_USING_UART1" description="Using UART1" default="true" />
33 //#define RT_USING_UART1
34 // <bool name="RT_USING_UART2" description="Using UART2" default="true" />
35 //#define RT_USING_UART2
36 
37 // </RDTConfigurator>
38 
39 #ifdef __CC_ARM
40 extern int Image$$RW_IRAM2$$ZI$$Limit;
41 #define HEAP_BEGIN  ((void *)&Image$$RW_IRAM2$$ZI$$Limit)
42 #elif __ICCARM__
43 #pragma section="HEAP"
44 #define HEAP_BEGIN  (__segment_end("HEAP"))
45 #else
46 extern int __bss_end;
47 #define HEAP_BEGIN  ((void *)&__bss_end)
48 #endif
49 #define HEAP_END    (void*)(0x10080000 + 0x8000)
50 
51 void rt_hw_board_init(void);
52 int  rt_hw_board_heap_init(void);
53 int rt_vbus_do_init(void);
54 
55 #endif
56