1 /*
2  * Copyright (c) 2019 Winner Microelectronics Co., Ltd.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2018-09-15     flyingcys    1st version
9  */
10 
11 #ifndef __BOARD_H__
12 #define __BOARD_H__
13 
14 #ifdef __CC_ARM
15 extern int Image$$RW_IRAM1$$ZI$$Limit;
16 #define HEAP_BEGIN    (&Image$$RW_IRAM1$$ZI$$Limit)
17 #elif __ICCARM__
18 #pragma section="CSTACK"
19 #define HEAP_BEGIN    (__segment_end("CSTACK"))
20 #else
21 extern int __bss_end__;
22 #define HEAP_BEGIN    (&__bss_end__)
23 #endif
24 
25 #define HEAP_END           (0x20028000UL)
26 
27 #define HARDWARE_VERSION 0x0003U
28 #include "pin_config.h"
29 
30 void rt_hw_board_init(void);
31 
32 #endif
33