Andrew Reed / Mbed OS CITY1082-capsense-tft
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GUIConf.cpp Source File

GUIConf.cpp

00001 /*********************************************************************
00002 *                SEGGER Microcontroller GmbH & Co. KG                *
00003 *        Solutions for real time microcontroller applications        *
00004 **********************************************************************
00005 *                                                                    *
00006 *        (c) 1996 - 2017  SEGGER Microcontroller GmbH & Co. KG       *
00007 *                                                                    *
00008 *        Internet: www.segger.com    Support:  support@segger.com    *
00009 *                                                                    *
00010 **********************************************************************
00011 
00012 ** emWin V5.46 - Graphical user interface for embedded applications **
00013 All  Intellectual Property rights  in the Software belongs to  SEGGER.
00014 emWin is protected by  international copyright laws.  Knowledge of the
00015 source code may not be used to write a similar product.  This file may
00016 only be used in accordance with the following terms:
00017 
00018 The software  has been licensed to  Cypress Semiconductor Corporation,
00019 whose registered  office is situated  at 198 Champion Ct. San Jose, CA 
00020 95134 USA  solely for the  purposes of creating  libraries for Cypress
00021 PSoC3 and  PSoC5 processor-based devices,  sublicensed and distributed
00022 under  the  terms  and  conditions  of  the  Cypress  End User License
00023 Agreement.
00024 Full source code is available at: www.segger.com
00025 
00026 We appreciate your understanding and fairness.
00027 ----------------------------------------------------------------------
00028 Licensing information
00029 Licensor:                 SEGGER Microcontroller Systems LLC
00030 Licensed to:              Cypress Semiconductor Corp, 198 Champion Ct., San Jose, CA 95134, USA
00031 Licensed SEGGER software: emWin
00032 License number:           GUI-00319
00033 License model:            Services and License Agreement, signed June 10th, 2009
00034 Licensed platform:        Any Cypress platform (Initial targets are: PSoC3, PSoC5)
00035 ----------------------------------------------------------------------
00036 Support and Update Agreement (SUA)
00037 SUA period:               2009-06-12 - 2022-07-27
00038 Contact to extend SUA:    sales@segger.com
00039 ----------------------------------------------------------------------
00040 File        : GUIConf.c
00041 Purpose     : Display controller initialization
00042 ---------------------------END-OF-HEADER------------------------------
00043 */
00044 
00045 #include "GUI.h"
00046 
00047 /*********************************************************************
00048 *
00049 *       Defines
00050 *
00051 **********************************************************************
00052 */
00053 //
00054 // Define the available number of bytes available for the GUI
00055 //
00056 #define GUI_NUMBYTES  0x8000
00057 
00058 /*********************************************************************
00059 *
00060 *       Public code
00061 *
00062 **********************************************************************
00063 */
00064 /*********************************************************************
00065 *
00066 *       GUI_X_Config
00067 *
00068 * Purpose:
00069 *   Called during the initialization process in order to set up the
00070 *   available memory for the GUI.
00071 */
00072 void GUI_X_Config(void) {
00073   //
00074   // 32 bit aligned memory area
00075   //
00076   static U32 aMemory[GUI_NUMBYTES / 4];
00077   //
00078   // Assign memory to emWin
00079   //
00080   GUI_ALLOC_AssignMemory(aMemory, GUI_NUMBYTES);
00081   //
00082   // Set default font
00083   //
00084   GUI_SetDefaultFont(GUI_FONT_6X8);
00085 }
00086 
00087 /*************************** End of file ****************************/
00088