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