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 #define RT_USING_UART0 33 // <bool name="RT_USING_UART1" description="Using UART1" default="true" /> 34 //#define RT_USING_UART1 35 // <bool name="RT_USING_UART2" description="Using UART2" default="true" /> 36 //#define RT_USING_UART2 37 38 // </RDTConfigurator> 39 40 #ifdef __CC_ARM 41 extern int Image$$RW_IRAM1$$ZI$$Limit; 42 #define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit) 43 #elif __ICCARM__ 44 #pragma section="HEAP" 45 #define HEAP_BEGIN (__segment_end("HEAP")) 46 #else 47 extern int __bss_end; 48 #define HEAP_BEGIN ((void *)&__bss_end) 49 #endif 50 #define HEAP_END (void*)(0x10000000 + 0x20000) 51 52 void rt_hw_board_init(void); 53 int rt_hw_board_heap_init(void); 54 55 56 #endif 57