Select one of the symbols to view example projects that use it.
 
Outline
#include "GUI.h"
#define MEM_BASE
#define GUI_NUMBYTES
aMemory
GUI_X_Config()
Files
loading...
CodeScopeSTM32 Libraries and SamplesSTemWinConfig/GUIConf.c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/********************************************************************* * Portions COPYRIGHT 2016 STMicroelectronics * * Portions SEGGER Microcontroller GmbH & Co. KG * * Solutions for real time microcontroller applications * ********************************************************************** * * * (c) 1996 - 2015 SEGGER Microcontroller GmbH & Co. KG * * * * Internet: www.segger.com Support: support@segger.com * * * ********************************************************************** ** emWin V5.28 - Graphical user interface for embedded applications ** All Intellectual Property rights in the Software belongs to SEGGER. emWin is protected by international copyright laws. Knowledge of the source code may not be used to write a similar product. This file may only be used in accordance with the following terms: The software has been licensed to STMicroelectronics International N.V. a Dutch company with a Swiss branch and its headquarters in Plan- les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_ troller products commercialized by Licensee only, sublicensed and dis_ tributed under the terms and conditions of the End User License Agree_ ment supplied by STMicroelectronics International N.V. Full source code is available at: www.segger.com We appreciate your understanding and fairness. ---------------------------------------------------------------------- File : GUIConf.c Purpose : Display controller initialization ---------------------------END-OF-HEADER------------------------------ *//* ... */ /** ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ #include "GUI.h" /********************************************************************* * * Defines * ********************************************************************** *//* ... */ // // Define the available number of bytes available for the GUI // #define MEM_BASE 0xC0100000 #define GUI_NUMBYTES (1024) * 1024 #if (defined ( __CC_ARM )) U32 aMemory[GUI_NUMBYTES / 4] __attribute__((at(MEM_BASE))); #elif (defined (__ICCARM__)) #pragma location = MEM_BASE __no_init U32 aMemory[GUI_NUMBYTES / 4];/* ... */ #elif defined ( __GNUC__ ) U32 aMemory[GUI_NUMBYTES / 4] __attribute__((section(".ExtRAMData1"))); #endif /********************************************************************* * * Public code * ********************************************************************** *//* ... */ /********************************************************************* * * GUI_X_Config * * Purpose: * Called during the initialization process in order to set up the * available memory for the GUI. *//* ... */ void GUI_X_Config(void) { // // 32 bit aligned memory area // // // Assign memory to emWin // GUI_ALLOC_AssignMemory(aMemory, GUI_NUMBYTES); // // Set default font // GUI_SetDefaultFont(GUI_FONT_6X8); }{ ... }