summaryrefslogtreecommitdiff
path: root/bsp/lpc176x/applications/platform.c
blob: 05e3b0d5e0321152f81e586b95a6ee0295ec0802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * File      : platform.c
 * This file is part of RT-Thread RTOS
 * COPYRIGHT (C) 2012, RT-Thread Development Team
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rt-thread.org/license/LICENSE
 *
 * Change Logs:
 * Date           Author       Notes
 * 2012-04-15     Bernard      the first version.
 */
#include "platform.h"

#ifdef RT_USING_MEMHEAP
static struct rt_memheap _memheap;
#endif

void platform_init(void)
{
#ifdef RT_USING_MEMHEAP
	/* create memory heap object on 0x2007 C000 - 0x2008 4000*/
#ifdef RT_USING_LWIP
	rt_memheap_init(&_memheap, "system", (void*)0x2007C000, 16*1024);
#else
	rt_memheap_init(&_memheap, "system", (void*)0x2007C000, 32*1024);
#endif
#endif
}