Config配置:
【GUIConf.c文件】
- #include "GUI.h"
-
- /*********************************************************************
- *
- * Defines
- *
- **********************************************************************
- */
- //
- // Define the available number of bytes available for the GUI
- //
- #define GUI_NUMBYTES (30*1024) //==============修改使用内存大小
-
- /*********************************************************************
- *
- * Public code
- *
- **********************************************************************
- */
- /*********************************************************************
- *
- * GUI_X_Config
- *
- * Purpose:
- * Called during the initialization process in order to set up the
- * available memory for the GUI.
- */
- void GUI_X_Config(void) {
- //
- // 32 bit aligned memory area
- //
- static U32 aMemory[GUI_NUMBYTES / 4];
- //
- // Assign memory to emWin
- //
- GUI_ALLOC_AssignMemory(aMemory, GUI_NUMBYTES);
- //
- // Set default font
- //
- GUI_SetDefaultFont(GUI_FONT_6X8);
- }
-
- /*************************** End of file ****************************/
|