diff options
| author | [email protected] <[email protected]> | 2012-11-23 14:05:39 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-11-23 14:05:39 +0000 |
| commit | 67e250675006e7efa4cc1ccac4c26cc49db2a065 (patch) | |
| tree | 5a8cfcab11830edc8c7b98110d4bc817dac9936f /bsp | |
| parent | 5057b28523222b9f7fb2014d3d3aa9d9f497aeba (diff) | |
update files
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2440 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/simulator/SConstruct | 2 | ||||
| -rw-r--r-- | bsp/simulator/readme.txt | 46 | ||||
| -rw-r--r-- | bsp/simulator/rtconfig.h | 7 |
3 files changed, 48 insertions, 7 deletions
diff --git a/bsp/simulator/SConstruct b/bsp/simulator/SConstruct index 57322db1be..ae5bc8097f 100644 --- a/bsp/simulator/SConstruct +++ b/bsp/simulator/SConstruct @@ -12,7 +12,7 @@ if os.getenv('RTT_RTGUI'): else:
# set the rtgui root directory by hand
# empty string means use the RTGUI in svn
- # RTT_RTGUI = os.path.normpath('F:/Project/git/rt-gui')
+ # RTT_RTGUI = os.path.normpath(r'F:\Project\git\rt-gui\components\rtgui')
RTT_RTGUI =''
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
diff --git a/bsp/simulator/readme.txt b/bsp/simulator/readme.txt index ba905d3023..186dbc5ada 100644 --- a/bsp/simulator/readme.txt +++ b/bsp/simulator/readme.txt @@ -1,13 +1,47 @@ -两种方法编译当前bsp
+说明: 本BSP可以如下演示
+默认演示realtouch GUI效果,并提供了一个贪吃的demo用于演示
-编译:
-1). 使用Visual Studio(2005以上版本)打开vs2005.vcproj
+目前支持的功能有
+1). LWIP(可以打开LWIP选项,不过尚存在bug,不建议使用)
+2). 文件系统支持,支持ELM FatFS,UFFS,JFFS2
+3). RTGUI支持
+ 说明:需要使用github中的RTGUI源码
+ github网页:https://github.com/RT-Thread/RTGUI
+ 并修改当前目录下的SConstruct文件,共有两种方法。
+方法1
+ 向系统环境变量中加入RTT_RTGUI,其值为刚才github上下载的rtgui源码包的路径。
+ 例如笔者的rtgui源码包解压至 F:\Project\git\rt-gui\下
+ 则将此环境变量配置为 F:\Project\git\rt-gui\components\rtgui
+方法2
+ 不添加环境变量,打开SConstruct文件,
+ ....
+ 10 if os.getenv('RTT_RTGUI'):
+ 11 RTT_RTGUI = os.getenv('RTT_RTGUI')
+ 12 else:
+ 13 # set the rtgui root directory by hand
+ 14 # empty string means use the RTGUI in svn
+ 15 # RTT_RTGUI = os.path.normpath(r'F:\Project\git\rt-gui\components\rtgui')
+ 16 RTT_RTGUI =''
+ ....
+将15,16行修改为
+ 14 # empty string means use the RTGUI in svn
+ 15 RTT_RTGUI = os.path.normpath(r'F:\Project\git\rt-gui\components\rtgui')
+ 16 # RTT_RTGUI =''
+简单说明一下:
+ 1)#号表示注释,类似于c语言中的//,
+ 2)其中15行的路径为你的RTGUI路径源码,注意不是压缩包路径,而是压缩包路径下的 components\rtgui目录的绝对路径。
+
+1 编译:
+1.1 使用Visual Studio(2005以上版本)
+ 在命令行中执行 scons --target=vs -s 可以生成vs2005的工程,名为project.vsproj
+
编译后运行
-2). 使用scons编译,在当前目录中打开cmd,输入
+1.2 使用scons编译,在当前目录中打开cmd,输入
scons -j4
编译完成后会在当前目录下生成 rtthrad-win32.exe,双击即可运行。
+2. 测试文件系统
运行:
编译后运行,会弹出CMD命令行窗口,可以看到控制台的输出信息,如下所示
@@ -96,3 +130,7 @@ thread 312c exit
Ok,到现在,一个完整的文件系统测试环境就搭建完毕了,enjoy~~
+
+3 测试RTGUI
+ 启动后就会看到GUI窗口,分辨率800×480串口,并出现图形界面。
+ 此时在finsh中输入 snake_main,即可运行贪吃蛇程序。
diff --git a/bsp/simulator/rtconfig.h b/bsp/simulator/rtconfig.h index f12a644528..d8754e6dc2 100644 --- a/bsp/simulator/rtconfig.h +++ b/bsp/simulator/rtconfig.h @@ -183,7 +183,10 @@ #define RTGUI_DEFAULT_FONT_SIZE 16
/* image support */
-/* #define RTGUI_IMAGE_XPM */
-/* #define RTGUI_IMAGE_BMP */
+#define RTGUI_IMAGE_XPM
+#define RTGUI_IMAGE_BMP
+//#define RTGUI_IMAGE_JPEG
+//#define RTGUI_IMAGE_PNG
+#define RTGUI_USING_NOTEBOOK_IMAGE
#endif
|
