硬汉嵌入式论坛

 找回密码
 立即注册
查看: 4963|回复: 3
收起左侧

[emWin] emwin GUI_MEMDEV_Create返回0?

[复制链接]

11

主题

33

回帖

11

积分

新手上路

积分
11
发表于 2015-3-11 10:17:58 | 显示全部楼层 |阅读模式
各位老大!
我在emWin中调用GUI_MEMDEV_Create总返回0?
有人说在“是因为你分配给MENDEV的内存不够,在GUI_Config配置里面有个内存分配#define GUI_ALLOC_SIZE          20000”
但emWin中找不到该宏定义?
回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
115679
QQ
发表于 2015-3-11 10:27:29 | 显示全部楼层
emwin的动态内存配置在文件GUIConf.c文件里面。
回复

使用道具 举报

11

主题

33

回帖

11

积分

新手上路

积分
11
 楼主| 发表于 2015-3-11 10:36:45 | 显示全部楼层
这是我的guiconf.h文件,但我没找到guiconf.c文件?
而且里面没有 gui_alloc_size的定义

#ifndef GUICONF_H
#define GUICONF_H

/*********************************************************************
*
*       Multi layer/display support
*/
#define GUI_NUM_LAYERS            2    // Maximum number of available layers(支持2个图层)

/*********************************************************************
*
*       Multi tasking support
*/
#ifdef OS_SUPPORT                                                //是否支持操作系统
#define GUI_OS                    (1)  // Compile with multitasking support
#else
#define GUI_OS                    (0)
#endif

/*********************************************************************
*
*       Configuration of touch support
*/
#ifndef   GUI_SUPPORT_TOUCH
  #define GUI_SUPPORT_TOUCH       (1)  // Support touchscreen(支持触摸屏)
#endif

/*********************************************************************
*
*       Default font
*/
#define GUI_DEFAULT_FONT          &GUI_Font6x8

/*********************************************************************
*
*         Configuration of available packages
*/
#define GUI_SUPPORT_MOUSE             (1)    // Support a mouse(支持鼠标)
#define GUI_WINSUPPORT                (1)    // Use window manager(支持窗口管理器)
#define GUI_SUPPORT_MEMDEV            (1)    // Memory device package available(可用内存设备包)
#define GUI_SUPPORT_DEVICES           (1)    // Enable use of device pointers

#endif  /* Avoid multiple inclusion */
回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
115679
QQ
发表于 2015-3-11 11:23:25 | 显示全部楼层
2.png
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2025-5-11 20:09 , Processed in 0.221917 second(s), 27 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

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