找回密码
 注册
搜索
查看: 1669|回复: 1

[综合资料] LM3S8962 触摸屏 uC/GUI 成功移植 版本V3.90a

[复制链接]
发表于 2011-5-9 21:31:06 | 显示全部楼层 |阅读模式
(1)GUIConf.h的配置

#ifndef GUICONF_H
#define GUICONF_H

#define GUI_OS                    (0)  /* Compile with multitasking support */
#define GUI_SUPPORT_TOUCH         (0)  /* Support a touch screen (req. win-manager) */
#define GUI_SUPPORT_UNICODE       (1)  /* Support mixed ASCII/UNICODE strings */

#define GUI_DEFAULT_FONT          &GUI_Font6x8
#define GUI_ALLOC_SIZE          12500  /* Size of dynamic memory ... For WM and memory devices*/
//#define GUI_ALLOC_SIZE          1024*1024  /* Size of dynamic memory ... For WM and memory devices*/

/*********************************************************************
*
*         Configuration of available packages
*/

#define GUI_WINSUPPORT            0  /* Window manager package available */
#define GUI_SUPPORT_MEMDEV        0  /* Memory devices available */
#define GUI_SUPPORT_AA            1  /* Anti aliasing available */

(2)LCDConf.h的配置


#define LCD_XSIZE      (240)   /* X-resolution of LCD, Logical coor. */
#define LCD_YSIZE      (320)   /* Y-resolution of LCD, Logical coor. */

#define LCD_BITSPERPIXEL (16)
//#define LCD_BITSPERPIXEL (16)

#define LCD_CONTROLLER 1375

(3)LCD底层接口程序的配置,即LCDWin.c的配置

int   LCDSIM_GetPixelIndex(int x, int y, int LayerIndex)
{
  LCD_Get_Poit(x,y,LayerIndex);
  return (0);
}

void  LCDSIM_SetPixelIndex(int x, int y, int Index, int LayerIndex)
{
  LCD_Set_Poit(x,y,Index);  //底层驱动,画点程序
}

(4)调用程序

    GUI_Init();
    GUI_Clear();
    GUI_SetBkColor(GUI_BLUE);   
    GUI_Clear();
    GUI_SetBkColor(GUI_RED);
    while(1)
    {
      GUI_DispString("Hello world!");
    }

小结:(1)首先保证底层驱动正常。

(2)移植调试,调试过程中运行进入FaultISR,为lm3s8962配置问题。

欢迎大家交流,共同学习!

邮箱:anhuihbo@126.com

QQ:306612835


【文件名】:1159@52RD_ucgui_00_20110411.rar
【格 式】:rar
【大 小】:2914K
【简 介】:uC/GUI 成功移植 版本V3.90a LM3S6432
【目 录】:Config,GUI,GUI_X,LCDTarget,settings,User,GUIDemo,ucgui.eww,ucgui.c,lm3s6432.icf


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2011-5-16 22:58:41 | 显示全部楼层
看看再说 , 东西被ucuo
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-10-9 05:16 , Processed in 0.061581 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表