GUIDEMO_Conf.c 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. /*********************************************************************
  2. * Portions COPYRIGHT 2016 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. ** emWin V5.28 - Graphical user interface for embedded applications **
  13. All Intellectual Property rights in the Software belongs to SEGGER.
  14. emWin is protected by international copyright laws. Knowledge of the
  15. source code may not be used to write a similar product. This file may
  16. only be used in accordance with the following terms:
  17. The software has been licensed to STMicroelectronics International
  18. N.V. a Dutch company with a Swiss branch and its headquarters in Plan-
  19. les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the
  20. purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_
  21. troller products commercialized by Licensee only, sublicensed and dis_
  22. tributed under the terms and conditions of the End User License Agree_
  23. ment supplied by STMicroelectronics International N.V.
  24. Full source code is available at: www.segger.com
  25. We appreciate your understanding and fairness.
  26. ----------------------------------------------------------------------
  27. File : GUIDEMO_Conf.c
  28. Purpose : Runtime configurability of the GUIDEMO
  29. ----------------------------------------------------------------------
  30. */
  31. /**
  32. ******************************************************************************
  33. * @file GUIDEMO_Conf.c
  34. * @author MCD Application Team
  35. * @brief Runtime configurability of the GUIDEMO
  36. ******************************************************************************
  37. * @attention
  38. *
  39. * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics International N.V.
  40. * All rights reserved.</center></h2>
  41. *
  42. * Redistribution and use in source and binary forms, with or without
  43. * modification, are permitted, provided that the following conditions are met:
  44. *
  45. * 1. Redistribution of source code must retain the above copyright notice,
  46. * this list of conditions and the following disclaimer.
  47. * 2. Redistributions in binary form must reproduce the above copyright notice,
  48. * this list of conditions and the following disclaimer in the documentation
  49. * and/or other materials provided with the distribution.
  50. * 3. Neither the name of STMicroelectronics nor the names of other
  51. * contributors to this software may be used to endorse or promote products
  52. * derived from this software without specific written permission.
  53. * 4. This software, including modifications and/or derivative works of this
  54. * software, must execute solely and exclusively on microcontroller or
  55. * microprocessor devices manufactured by or for STMicroelectronics.
  56. * 5. Redistribution and use of this software other than as permitted under
  57. * this license is void and will automatically terminate your rights under
  58. * this license.
  59. *
  60. * THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS"
  61. * AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT
  62. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  63. * PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY
  64. * RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT
  65. * SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  66. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  67. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
  68. * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  69. * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  70. * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
  71. * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  72. *
  73. ******************************************************************************
  74. */
  75. /*********************************************************************
  76. *
  77. * Includes
  78. *
  79. **********************************************************************
  80. */
  81. #include "GUI.h"
  82. #include "GUIDEMO.h"
  83. #if GUIDEMO_USE_VNC
  84. #include "GUI_VNC.h"
  85. #endif
  86. /*********************************************************************
  87. *
  88. * Routine table
  89. */
  90. static void (* _apfTest[])(void) = {
  91. #if (SHOW_GUIDEMO_SPEEDOMETER && GUI_SUPPORT_MEMDEV)
  92. GUIDEMO_Speedometer,
  93. #endif
  94. #if (SHOW_GUIDEMO_ZOOMANDROTATE && GUI_WINSUPPORT && GUI_SUPPORT_MEMDEV)
  95. GUIDEMO_ZoomAndRotate,
  96. #endif
  97. #if (SHOW_GUIDEMO_RADIALMENU && GUI_WINSUPPORT)
  98. GUIDEMO_RadialMenu,
  99. #endif
  100. #if (SHOW_GUIDEMO_SKINNING && GUI_WINSUPPORT && GUI_SUPPORT_MEMDEV)
  101. GUIDEMO_Skinning,
  102. #endif
  103. #if (SHOW_GUIDEMO_BARGRAPH && GUI_SUPPORT_MEMDEV)
  104. GUIDEMO_BarGraph,
  105. #endif
  106. #if (SHOW_GUIDEMO_FADING && GUI_SUPPORT_MEMDEV)
  107. GUIDEMO_Fading,
  108. #endif
  109. #if SHOW_GUIDEMO_AATEXT
  110. GUIDEMO_AntialiasedText,
  111. #endif
  112. #if (SHOW_GUIDEMO_TRANSPARENTDIALOG && GUI_WINSUPPORT && GUI_SUPPORT_MEMDEV)
  113. GUIDEMO_TransparentDialog,
  114. #endif
  115. #if (SHOW_GUIDEMO_WASHINGMACHINE && GUI_WINSUPPORT && GUI_SUPPORT_MEMDEV)
  116. GUIDEMO_WashingMachine,
  117. #endif
  118. #if (SHOW_GUIDEMO_ICONVIEW && GUI_WINSUPPORT && GUI_SUPPORT_MEMDEV)
  119. GUIDEMO_IconView,
  120. #endif
  121. #if (SHOW_GUIDEMO_IMAGEFLOW && GUI_WINSUPPORT && GUI_SUPPORT_MEMDEV)
  122. GUIDEMO_ImageFlow,
  123. #endif
  124. #if (SHOW_GUIDEMO_TREEVIEW && GUI_WINSUPPORT)
  125. GUIDEMO_Treeview,
  126. #endif
  127. #if (SHOW_GUIDEMO_LISTVIEW && GUI_WINSUPPORT)
  128. GUIDEMO_Listview,
  129. #endif
  130. #if SHOW_GUIDEMO_VSCREEN
  131. GUIDEMO_VScreen,
  132. #endif
  133. #if (SHOW_GUIDEMO_GRAPH && GUI_SUPPORT_MEMDEV)
  134. GUIDEMO_Graph,
  135. #endif
  136. #if SHOW_GUIDEMO_SPEED
  137. GUIDEMO_Speed,
  138. #endif
  139. #if SHOW_GUIDEMO_BITMAP
  140. GUIDEMO_Bitmap,
  141. #endif
  142. #if (SHOW_GUIDEMO_CURSOR && GUI_SUPPORT_CURSOR && GUI_SUPPORT_TOUCH)
  143. GUIDEMO_Cursor,
  144. #endif
  145. #if SHOW_GUIDEMO_COLORBAR
  146. GUIDEMO_ColorBar,
  147. #endif
  148. #if (SHOW_GUIDEMO_AUTOMOTIVE && GUI_SUPPORT_MEMDEV)
  149. GUIDEMO_Automotive,
  150. #endif
  151. 0
  152. };
  153. /*********************************************************************
  154. *
  155. * GUIDEMO_Config
  156. */
  157. void GUIDEMO_Config(GUIDEMO_CONFIG * pConfig) {
  158. pConfig->apFunc = _apfTest;
  159. pConfig->NumDemos = GUI_COUNTOF(_apfTest);
  160. pConfig->Flags = GUIDEMO_CF_SHOW_SPRITES | GUIDEMO_CF_USE_VNC | GUIDEMO_CF_USE_AUTO_BK;
  161. #if GUIDEMO_USE_VNC
  162. pConfig->pGUI_VNC_X_StartServer = GUI_VNC_X_StartServer;
  163. #endif
  164. }
  165. /*************************** End of file ****************************/