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