费劲周折,终于移植成功,运行良好!
(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 |