LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
GUIConf.c
Go to the documentation of this file.
1 /*********************************************************************
2 * SEGGER Microcontroller GmbH & Co. KG *
3 * Solutions for real time microcontroller applications *
4 **********************************************************************
5 * *
6 * (c) 1996 - 2012 SEGGER Microcontroller GmbH & Co. KG *
7 * *
8 * Internet: www.segger.com Support: support@segger.com *
9 * *
10 **********************************************************************
11 
12 ** emWin V5.16 - Graphical user interface for embedded applications **
13 emWin is protected by international copyright laws. Knowledge of the
14 source code may not be used to write a similar product. This file may
15 only be used in accordance with a license and should not be re-
16 distributed in any way. We appreciate your understanding and fairness.
17 ----------------------------------------------------------------------
18 File : GUIConf.c
19 Purpose : Display controller initialization
20 ---------------------------END-OF-HEADER------------------------------
21 */
22 
23 #include "GUI.h"
24 
25 /*********************************************************************
26 *
27 * Defines
28 *
29 **********************************************************************
30 */
31 //
32 // Define the available number of bytes available for the GUI
33 //
34 //#define GUI_NUMBYTES 0x2000
35 //#define GUI_NUMBYTES (1024 * 1024) * 2 // x MByte
36 //
37 // Define the average block size
38 //
39 #define GUI_BLOCKSIZE 0x128
40 
41 /*********************************************************************
42 *
43 * Public code
44 *
45 **********************************************************************
46 */
47 /*
48 * Define these in application code
49 */
50 extern U32 GUI_Memory_Size;
51 extern U32 GUI_Memory[];
52 extern U32 GUI_Block_Size;
53 
54 /*********************************************************************
55 *
56 * GUI_X_Config
57 *
58 * Purpose:
59 * Called during the initialization process in order to set up the
60 * available memory for the GUI.
61 */
62 void GUI_X_Config(void) {
63  //
64  // 32 bit aligned memory area
65  //
66  //static U32 aMemory[GUI_NUMBYTES / 4] __attribute__((at(0x28050000)));//__attribute__((at(0x28250000)));
67  //
68  // Assign memory to emWin
69  //
70  GUI_ALLOC_AssignMemory(GUI_Memory, GUI_Memory_Size);
71  GUI_ALLOC_SetAvBlockSize(GUI_Block_Size);
72  //
73  // Set default font
74  //
75  GUI_SetDefaultFont(GUI_FONT_6X8);
76 }
77 
78 /*************************** End of file ****************************/