STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
GUI_X.c
Go to the documentation of this file.
1 /*********************************************************************
2 * Portions COPYRIGHT 2015 STMicroelectronics *
3 * Portions SEGGER Microcontroller GmbH & Co. KG *
4 * Solutions for real time microcontroller applications *
5 **********************************************************************
6 * *
7 * (c) 1996 - 2015 SEGGER Microcontroller GmbH & Co. KG *
8 * *
9 * Internet: www.segger.com Support: support@segger.com *
10 * *
11 **********************************************************************
12 
13 ** emWin V5.28 - Graphical user interface for embedded applications **
14 All Intellectual Property rights in the Software belongs to SEGGER.
15 emWin is protected by international copyright laws. Knowledge of the
16 source code may not be used to write a similar product. This file may
17 only be used in accordance with the following terms:
18 
19 The software has been licensed to STMicroelectronics International
20 N.V. a Dutch company with a Swiss branch and its headquarters in Plan-
21 les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the
22 purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_
23 troller products commercialized by Licensee only, sublicensed and dis_
24 tributed under the terms and conditions of the End User License Agree_
25 ment supplied by STMicroelectronics International N.V.
26 Full source code is available at: www.segger.com
27 
28 We appreciate your understanding and fairness.
29 ----------------------------------------------------------------------
30 File : GUI_X.C
31 Purpose : Config / System dependent externals for GUI
32 ---------------------------END-OF-HEADER------------------------------
33 */
34 
54 #include "GUI.h"
55 
56 /*********************************************************************
57 *
58 * Global data
59 */
61 
62 /*********************************************************************
63 *
64 * Timing:
65 * GUI_X_GetTime()
66 * GUI_X_Delay(int)
67 
68  Some timing dependent routines require a GetTime
69  and delay function. Default time unit (tick), normally is
70  1 ms.
71 */
72 
74  return OS_TimeMS;
75 }
76 
77 void GUI_X_Delay(int ms) {
78  int tEnd = OS_TimeMS + ms;
79  while ((tEnd - OS_TimeMS) > 0);
80 }
81 
82 /*********************************************************************
83 *
84 * GUI_X_Init()
85 *
86 * Note:
87 * GUI_X_Init() is called from GUI_Init is a possibility to init
88 * some hardware which needs to be up and running before the GUI.
89 * If not required, leave this routine blank.
90 */
91 
92 void GUI_X_Init(void) {}
93 
94 
95 /*********************************************************************
96 *
97 * GUI_X_ExecIdle
98 *
99 * Note:
100 * Called if WM is in idle state
101 */
102 
103 void GUI_X_ExecIdle(void) {}
104 
105 /*********************************************************************
106 *
107 * Logging: OS dependent
108 
109 Note:
110  Logging is used in higher debug levels only. The typical target
111  build does not use logging and does therefor not require any of
112  the logging routines below. For a release build without logging
113  the routines below may be eliminated to save some space.
114  (If the linker is not function aware and eliminates unreferenced
115  functions automatically)
116 
117 */
118 
119 void GUI_X_Log (const char *s) { GUI_USE_PARA(s); }
120 void GUI_X_Warn (const char *s) { GUI_USE_PARA(s); }
121 void GUI_X_ErrorOut(const char *s) { GUI_USE_PARA(s); }
122 
123 /*************************** End of file ****************************/
volatile GUI_TIMER_TIME OS_TimeMS
Definition: GUI_X.c:60
void GUI_X_Init(void)
Definition: GUI_X.c:92
#define GUI_USE_PARA(para)
void GUI_X_Log(const char *s)
Definition: GUI_X.c:119
void GUI_X_Warn(const char *s)
Definition: GUI_X.c:120
void GUI_X_ErrorOut(const char *s)
Definition: GUI_X.c:121
GUI_TIMER_TIME GUI_X_GetTime(void)
Definition: GUI_X.c:73
void GUI_X_ExecIdle(void)
Definition: GUI_X.c:103
void GUI_X_Delay(int ms)
Definition: GUI_X.c:77
#define GUI_TIMER_TIME