打印

LM3S8962 触摸屏 uC/GUI 成功移植 版本V3.90a

[复制链接]
1444|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
anhuihbo|  楼主 | 2011-4-30 22:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
费劲周折,终于移植成功,运行良好!
(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

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

10

主题

40

帖子

0

粉丝