Sw2 key press counter and display to tft

Dependencies:   mbed PinDetect

Committer:
reedas
Date:
Tue Nov 26 09:14:00 2019 +0000
Revision:
2:f7100947de37
Parent:
1:402b32a1025f
Switch SW2 key press counter

Who changed what in which revision?

UserRevisionLine numberNew contents of line
reedas 1:402b32a1025f 1 /*********************************************************************
reedas 1:402b32a1025f 2 * SEGGER Microcontroller GmbH & Co. KG *
reedas 1:402b32a1025f 3 * Solutions for real time microcontroller applications *
reedas 1:402b32a1025f 4 **********************************************************************
reedas 1:402b32a1025f 5 * *
reedas 1:402b32a1025f 6 * (c) 1996 - 2017 SEGGER Microcontroller GmbH & Co. KG *
reedas 1:402b32a1025f 7 * *
reedas 1:402b32a1025f 8 * Internet: www.segger.com Support: support@segger.com *
reedas 1:402b32a1025f 9 * *
reedas 1:402b32a1025f 10 **********************************************************************
reedas 1:402b32a1025f 11
reedas 1:402b32a1025f 12 ** emWin V5.46 - Graphical user interface for embedded applications **
reedas 1:402b32a1025f 13 All Intellectual Property rights in the Software belongs to SEGGER.
reedas 1:402b32a1025f 14 emWin is protected by international copyright laws. Knowledge of the
reedas 1:402b32a1025f 15 source code may not be used to write a similar product. This file may
reedas 1:402b32a1025f 16 only be used in accordance with the following terms:
reedas 1:402b32a1025f 17
reedas 1:402b32a1025f 18 The software has been licensed to Cypress Semiconductor Corporation,
reedas 1:402b32a1025f 19 whose registered office is situated at 198 Champion Ct. San Jose, CA
reedas 1:402b32a1025f 20 95134 USA solely for the purposes of creating libraries for Cypress
reedas 1:402b32a1025f 21 PSoC3 and PSoC5 processor-based devices, sublicensed and distributed
reedas 1:402b32a1025f 22 under the terms and conditions of the Cypress End User License
reedas 1:402b32a1025f 23 Agreement.
reedas 1:402b32a1025f 24 Full source code is available at: www.segger.com
reedas 1:402b32a1025f 25
reedas 1:402b32a1025f 26 We appreciate your understanding and fairness.
reedas 1:402b32a1025f 27 ----------------------------------------------------------------------
reedas 1:402b32a1025f 28 Licensing information
reedas 1:402b32a1025f 29 Licensor: SEGGER Microcontroller Systems LLC
reedas 1:402b32a1025f 30 Licensed to: Cypress Semiconductor Corp, 198 Champion Ct., San Jose, CA 95134, USA
reedas 1:402b32a1025f 31 Licensed SEGGER software: emWin
reedas 1:402b32a1025f 32 License number: GUI-00319
reedas 1:402b32a1025f 33 License model: Services and License Agreement, signed June 10th, 2009
reedas 1:402b32a1025f 34 Licensed platform: Any Cypress platform (Initial targets are: PSoC3, PSoC5)
reedas 1:402b32a1025f 35 ----------------------------------------------------------------------
reedas 1:402b32a1025f 36 Support and Update Agreement (SUA)
reedas 1:402b32a1025f 37 SUA period: 2009-06-12 - 2022-07-27
reedas 1:402b32a1025f 38 Contact to extend SUA: sales@segger.com
reedas 1:402b32a1025f 39 ----------------------------------------------------------------------
reedas 1:402b32a1025f 40 File : GUIConf.c
reedas 1:402b32a1025f 41 Purpose : Display controller initialization
reedas 1:402b32a1025f 42 ---------------------------END-OF-HEADER------------------------------
reedas 1:402b32a1025f 43 */
reedas 1:402b32a1025f 44
reedas 1:402b32a1025f 45 #include "GUI.h"
reedas 1:402b32a1025f 46
reedas 1:402b32a1025f 47 /*********************************************************************
reedas 1:402b32a1025f 48 *
reedas 1:402b32a1025f 49 * Defines
reedas 1:402b32a1025f 50 *
reedas 1:402b32a1025f 51 **********************************************************************
reedas 1:402b32a1025f 52 */
reedas 1:402b32a1025f 53 //
reedas 1:402b32a1025f 54 // Define the available number of bytes available for the GUI
reedas 1:402b32a1025f 55 //
reedas 1:402b32a1025f 56 #define GUI_NUMBYTES 0x8000
reedas 1:402b32a1025f 57
reedas 1:402b32a1025f 58 /*********************************************************************
reedas 1:402b32a1025f 59 *
reedas 1:402b32a1025f 60 * Public code
reedas 1:402b32a1025f 61 *
reedas 1:402b32a1025f 62 **********************************************************************
reedas 1:402b32a1025f 63 */
reedas 1:402b32a1025f 64 /*********************************************************************
reedas 1:402b32a1025f 65 *
reedas 1:402b32a1025f 66 * GUI_X_Config
reedas 1:402b32a1025f 67 *
reedas 1:402b32a1025f 68 * Purpose:
reedas 1:402b32a1025f 69 * Called during the initialization process in order to set up the
reedas 1:402b32a1025f 70 * available memory for the GUI.
reedas 1:402b32a1025f 71 */
reedas 1:402b32a1025f 72 void GUI_X_Config(void) {
reedas 1:402b32a1025f 73 //
reedas 1:402b32a1025f 74 // 32 bit aligned memory area
reedas 1:402b32a1025f 75 //
reedas 1:402b32a1025f 76 static U32 aMemory[GUI_NUMBYTES / 4];
reedas 1:402b32a1025f 77 //
reedas 1:402b32a1025f 78 // Assign memory to emWin
reedas 1:402b32a1025f 79 //
reedas 1:402b32a1025f 80 GUI_ALLOC_AssignMemory(aMemory, GUI_NUMBYTES);
reedas 1:402b32a1025f 81 //
reedas 1:402b32a1025f 82 // Set default font
reedas 1:402b32a1025f 83 //
reedas 1:402b32a1025f 84 GUI_SetDefaultFont(GUI_FONT_6X8);
reedas 1:402b32a1025f 85 }
reedas 1:402b32a1025f 86
reedas 1:402b32a1025f 87 /*************************** End of file ****************************/
reedas 1:402b32a1025f 88