4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-21 01:07:18 +08:00

revert RTGUI path in SConstruct, update applications/platform.c

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2462 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
goprife@gmail.com 2012-12-01 07:08:48 +00:00
parent 877d1b38b0
commit 7c82d6e304
2 changed files with 5 additions and 9 deletions

View File

@ -12,8 +12,8 @@ if os.getenv('RTT_RTGUI'):
else: else:
# set the rtgui root directory by hand # set the rtgui root directory by hand
# empty string means use the RTGUI in svn # empty string means use the RTGUI in svn
RTT_RTGUI = os.path.normpath(r'F:\Project\git\rt-gui\components\rtgui') # RTT_RTGUI = os.path.normpath(r'F:\Project\git\rt-gui\components\rtgui')
# RTT_RTGUI ='' RTT_RTGUI =''
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
from building import * from building import *

View File

@ -5,25 +5,21 @@ void rt_platform_init(void)
{ {
#ifdef RT_USING_DFS #ifdef RT_USING_DFS
/* initilize sd card */ /* initilize sd card */
#ifdef RT_USING_DFS_ELMFAT
rt_hw_sdcard_init(); rt_hw_sdcard_init();
#endif
#if defined(RT_USING_MTD_NAND) && defined(RT_USING_DFS_UFFS) #if defined(RT_USING_MTD_NAND)
rt_hw_mtd_nand_init(); rt_hw_mtd_nand_init();
#endif #endif
#if defined(RT_USING_MTD_NOR) && defined(RT_USING_DFS_JFFS2) #if defined(RT_USING_MTD_NOR)
sst25vfxx_mtd_init("nor", 0, RT_UINT32_MAX); sst25vfxx_mtd_init("nor", 0, RT_UINT32_MAX);
#endif #endif
#endif /* RT_USING_DFS */ #endif /* RT_USING_DFS */
#ifdef RT_USING_RTGUI #ifdef RT_USING_RTGUI
/* initilize sdl */ /* initilize sdl */
sdl_start(); sdl_start();
#endif /* RT_USING_RTGUI */ #endif /* RT_USING_RTGUI */
rt_thread_delay(50); rt_thread_delay(50);