GUIDEMO_Conf.c 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /*********************************************************************
  2. * SEGGER Microcontroller GmbH & Co. KG *
  3. * Solutions for real time microcontroller applications *
  4. **********************************************************************
  5. * *
  6. * (c) 1996 - 2015 SEGGER Microcontroller GmbH & Co. KG *
  7. * *
  8. * Internet: www.segger.com Support: support@segger.com *
  9. * *
  10. **********************************************************************
  11. ** emWin V5.32 - Graphical user interface for embedded applications **
  12. All Intellectual Property rights in the Software belongs to SEGGER.
  13. emWin is protected by international copyright laws. Knowledge of the
  14. source code may not be used to write a similar product. This file may
  15. only be used in accordance with the following terms:
  16. The software has been licensed to STMicroelectronics International
  17. N.V. a Dutch company with a Swiss branch and its headquarters in Plan-
  18. les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the
  19. purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_
  20. troller products commercialized by Licensee only, sublicensed and dis_
  21. tributed under the terms and conditions of the End User License Agree_
  22. ment supplied by STMicroelectronics International N.V.
  23. Full source code is available at: www.segger.com
  24. We appreciate your understanding and fairness.
  25. ----------------------------------------------------------------------
  26. Licensing information
  27. Licensor: SEGGER Software GmbH
  28. Licensed to: STMicroelectronics International NV
  29. Licensed SEGGER software: emWin
  30. License number: GUI-00429
  31. License model: Buyout SRC [Buyout Source Code License, signed November 29th 2012]
  32. Licensed product: -
  33. Licensed platform: STMs ARM Cortex-M based 32 BIT CPUs
  34. Licensed number of seats: -
  35. ----------------------------------------------------------------------
  36. File : GUIDEMO_Conf.c
  37. Purpose : Runtime configurability of the GUIDEMO
  38. ----------------------------------------------------------------------
  39. */
  40. /*********************************************************************
  41. *
  42. * Includes
  43. *
  44. **********************************************************************
  45. */
  46. #include "GUI.h"
  47. #include "GUIDEMO.h"
  48. #if GUIDEMO_USE_VNC
  49. #include "GUI_VNC.h"
  50. #endif
  51. /*********************************************************************
  52. *
  53. * Routine table
  54. */
  55. static void (* _apfTest[])(void) = {
  56. #if (SHOW_GUIDEMO_SPEEDOMETER && GUI_SUPPORT_MEMDEV)
  57. GUIDEMO_Speedometer, // 1
  58. #endif
  59. #if (SHOW_GUIDEMO_ZOOMANDROTATE && GUI_WINSUPPORT && GUI_SUPPORT_MEMDEV)
  60. GUIDEMO_ZoomAndRotate, // 2
  61. #endif
  62. #if (SHOW_GUIDEMO_RADIALMENU && GUI_WINSUPPORT)
  63. GUIDEMO_RadialMenu, // 3
  64. #endif
  65. #if (SHOW_GUIDEMO_SKINNING && GUI_WINSUPPORT && GUI_SUPPORT_MEMDEV)
  66. GUIDEMO_Skinning, // 4
  67. #endif
  68. #if (SHOW_GUIDEMO_BARGRAPH && GUI_SUPPORT_MEMDEV)
  69. GUIDEMO_BarGraph, // 5
  70. #endif
  71. #if (SHOW_GUIDEMO_FADING && GUI_SUPPORT_MEMDEV)
  72. GUIDEMO_Fading, // 6
  73. #endif
  74. #if SHOW_GUIDEMO_BITMAP
  75. GUIDEMO_Bitmap, // 7
  76. #endif
  77. #if SHOW_GUIDEMO_AATEXT
  78. GUIDEMO_AntialiasedText, // 8
  79. #endif
  80. #if (SHOW_GUIDEMO_TRANSPARENTDIALOG && GUI_WINSUPPORT && GUI_SUPPORT_MEMDEV)
  81. GUIDEMO_TransparentDialog, // 9
  82. #endif
  83. #if (SHOW_GUIDEMO_WASHINGMACHINE && GUI_WINSUPPORT && GUI_SUPPORT_MEMDEV)
  84. GUIDEMO_WashingMachine, // 10
  85. #endif
  86. #if (SHOW_GUIDEMO_ICONVIEW && GUI_WINSUPPORT && GUI_SUPPORT_MEMDEV)
  87. GUIDEMO_IconView, // 11
  88. #endif
  89. #if (SHOW_GUIDEMO_IMAGEFLOW && GUI_WINSUPPORT && GUI_SUPPORT_MEMDEV)
  90. GUIDEMO_ImageFlow, // 12
  91. #endif
  92. #if (SHOW_GUIDEMO_TREEVIEW && GUI_WINSUPPORT)
  93. GUIDEMO_Treeview, // 13
  94. #endif
  95. #if (SHOW_GUIDEMO_LISTVIEW && GUI_WINSUPPORT)
  96. GUIDEMO_Listview, // 14
  97. #endif
  98. #if SHOW_GUIDEMO_VSCREEN
  99. GUIDEMO_VScreen, // 15
  100. #endif
  101. #if (SHOW_GUIDEMO_GRAPH && GUI_WINSUPPORT && GUI_SUPPORT_MEMDEV)
  102. GUIDEMO_Graph, // 16
  103. #endif
  104. #if SHOW_GUIDEMO_SPEED
  105. GUIDEMO_Speed, // 17
  106. #endif
  107. #if (SHOW_GUIDEMO_CURSOR && GUI_SUPPORT_CURSOR)
  108. GUIDEMO_Cursor, // 18
  109. #endif
  110. #if SHOW_GUIDEMO_COLORBAR
  111. GUIDEMO_ColorBar, // 19
  112. #endif
  113. #if (SHOW_GUIDEMO_AUTOMOTIVE && GUI_SUPPORT_MEMDEV)
  114. GUIDEMO_Automotive, // 20
  115. #endif
  116. 0
  117. };
  118. /*********************************************************************
  119. *
  120. * GUIDEMO_Config
  121. */
  122. void GUIDEMO_Config(GUIDEMO_CONFIG * pConfig) {
  123. pConfig->apFunc = _apfTest;
  124. pConfig->NumDemos = GUI_COUNTOF(_apfTest);
  125. pConfig->Flags = GUIDEMO_CF_SHOW_SPRITES | GUIDEMO_CF_USE_VNC | GUIDEMO_CF_USE_AUTO_BK | GUIDEMO_CF_SUPPORT_TOUCH;
  126. #if GUIDEMO_USE_VNC
  127. pConfig->pGUI_VNC_X_StartServer = GUI_VNC_X_StartServer;
  128. #endif
  129. }
  130. /*************************** End of file ****************************/