1 /* 2 * Copyright (c) 2006-2025, 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 (__segment_end("HEAP")) 40 extern void __RTT_HEAP_END; 41 #define HEAP_END (&__RTT_HEAP_END) 42 #elif defined(__GNUC__) 43 extern int __HeapBase; 44 extern int __HeapLimit; 45 #define HEAP_BEGIN ((void *)&__HeapBase) 46 #define HEAP_END ((void *)&__HeapLimit) 47 #endif 48 49 void rt_hw_board_init(void); 50 51 52 #endif 53 54 55