1 /* 2 * Copyright (c) 2006-2018, 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 */ 10 11 // <<< Use Configuration Wizard in Context Menu >>> 12 #ifndef __BOARD_H__ 13 #define __BOARD_H__ 14 15 #include "fsl_common.h" 16 #include "clock_config.h" 17 18 #ifdef __CC_ARM 19 extern int Image$$RTT_HEAP$$ZI$$Base; 20 extern int Image$$RTT_HEAP$$ZI$$Limit; 21 #define HEAP_BEGIN (&Image$$RTT_HEAP$$ZI$$Base) 22 #define HEAP_END (&Image$$RTT_HEAP$$ZI$$Limit) 23 24 #elif __ICCARM__ 25 #pragma section="HEAP" 26 #define HEAP_BEGIN (__segment_end("HEAP")) 27 extern void __RTT_HEAP_END; 28 #define HEAP_END (&__RTT_HEAP_END) 29 30 #else 31 extern int heap_start; 32 extern int heap_end; 33 #define HEAP_BEGIN (&heap_start) 34 #define HEAP_END (&heap_end) 35 #endif 36 37 #define HEAP_SIZE ((uint32_t)HEAP_END - (uint32_t)HEAP_BEGIN) 38 39 #define SDRAM_BEGIN (0x80000000u) 40 #define SDRAM_END (0x81E00000u) 41 42 43 /*! @brief The board flash size */ 44 #define BOARD_FLASH_SIZE (0x400000U) 45 46 void rt_hw_board_init(void); 47 48 #ifdef BSP_USING_ETH 49 void imxrt_enet_pins_init(void); 50 void imxrt_enet_phy_reset_by_gpio(void); 51 52 #endif 53 54 #endif 55 56