/* * Copyright (c) 2006-2022, Synwit Technology Co.,Ltd. * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-07-01 lik first version */ #ifndef __BOARD_H__ #define __BOARD_H__ #include #include #include #include #include #include "drv_gpio.h" #include "drv_uart.h" #include "drv_sdram.h" #ifdef __cplusplus extern "C" { #endif #define SRAM_BASE 0x20000000 #define SRAM_SIZE 0x10000 #define SRAM_END (SRAM_BASE + SRAM_SIZE) #if defined(__ARMCC_VERSION) extern int Image$$RW_IRAM1$$ZI$$Limit; #define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit) #elif __ICCARM__ #pragma section = "HEAP" #define HEAP_BEGIN (__segment_end("HEAP")) #else extern int __bss_end; #define HEAP_BEGIN ((void *)&__bss_end) #endif #define HEAP_END SRAM_END #define HEAP_SIZE (HEAP_END - (rt_uint32_t)HEAP_BEGIN) void rt_hw_board_init(void); #ifdef __cplusplus } #endif #endif /* __BOARD_H__ */