1 /*
2  * Copyright (c) 2006-2021, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2012-04-15     Bernard      the first version.
9  */
10 #include "platform.h"
11 
12 #ifdef RT_USING_MEMHEAP
13 static struct rt_memheap _memheap;
14 #endif
15 
platform_init(void)16 void platform_init(void)
17 {
18 #ifdef RT_USING_MEMHEAP
19     /* create memory heap object on 0x2007 C000 - 0x2008 4000*/
20 #ifdef RT_USING_LWIP
21     rt_memheap_init(&_memheap, "system", (void*)0x2007C000, 16*1024);
22 #else
23     rt_memheap_init(&_memheap, "system", (void*)0x2007C000, 32*1024);
24 #endif
25 #endif
26 }
27