LPCOpen Platform  v1.03
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.18 - Graphical user interface for embedded applications **
13 All Intellectual Property rights in the Software belongs to SEGGER.
14 emWin is protected by international copyright laws. Knowledge of the
15 source code may not be used to write a similar product. This file may
16 only be used in accordance with the following terms:
17 
18 The software has been licensed to NXP Semiconductors USA, Inc. whose
19 registered office is situated at 1109 McKay Dr, M/S 76, San Jose,
20 CA 95131, USA solely for the purposes of creating libraries for
21 NXPs M0, M3/M4 and ARM7/9 processor-based devices, sublicensed and
22 distributed under the terms and conditions of the NXP End User License
23 Agreement.
24 Full source code is available at: www.segger.com
25 
26 We appreciate your understanding and fairness.
27 ----------------------------------------------------------------------
28 File : GUIConf.c
29 Purpose : Display controller initialization
30 ---------------------------END-OF-HEADER------------------------------
31 */
32 
33 #include "GUI.h"
34 
35 /*********************************************************************
36 *
37 * Defines
38 *
39 **********************************************************************
40 */
41 //
42 // Define the available number of bytes available for the GUI
43 //
44 //#define GUI_NUMBYTES 0x200000
45 //
46 // Define the average block size
47 //
48 #define GUI_BLOCKSIZE 0x80
49 
50 /*********************************************************************
51 *
52 * Public code
53 *
54 **********************************************************************
55 */
56 /*
57 * Define these in application code
58 */
59 extern U32 GUI_Memory_Size;
60 extern U32 GUI_Memory[];
61 extern U32 GUI_Block_Size;
62 
63 /*********************************************************************
64 *
65 * GUI_X_Config
66 *
67 * Purpose:
68 * Called during the initialization process in order to set up the
69 * available memory for the GUI.
70 */
71 void GUI_X_Config(void) {
72  //
73  // 32 bit aligned memory area
74  //
75  //static U32 aMemory[GUI_NUMBYTES / 4];
76  //
77  // Assign memory to emWin
78  //
79  GUI_ALLOC_AssignMemory(GUI_Memory, GUI_Memory_Size);
80  GUI_ALLOC_SetAvBlockSize(GUI_Block_Size);
81  //
82  // Set default font
83  //
84  GUI_SetDefaultFont(GUI_FONT_6X8);
85 }
86 
87 /*************************** End of file ****************************/