1 /* 2 * Copyright (c) 2017-2019, MindMotion AE Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2019-03-13 henryhuang first version 9 */ 10 11 #ifndef BOARD_H__ 12 #define BOARD_H__ 13 #include <rtthread.h> 14 #include <HAL_device.h> 15 16 #define SRAM_SIZE 0x5000 17 18 #define SRAM_END (SRAM_BASE + SRAM_SIZE) 19 #ifdef __CC_ARM 20 extern int Image$$RW_IRAM1$$ZI$$Limit; 21 #define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit) 22 #elif __ICCARM__ 23 #pragma section = "HEAP" 24 #define HEAP_BEGIN (__segment_end("HEAP")) 25 #else 26 extern int __bss_end; 27 #define HEAP_BEGIN ((void *)&__bss_end) 28 #endif 29 #define HEAP_END SRAM_END 30 #define HEAP_SIZE (HEAP_END - (rt_uint32_t)HEAP_BEGIN) 31 extern void rt_hw_board_init(void); 32 #endif 33