rtgui_config.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * File : rtgui_config.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006 - 2009, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2009-10-16 Bernard first version
  13. * 2010-02-08 Bernard move some RTGUI options to bsp
  14. */
  15. #ifndef __RTGUI_CONFIG_H__
  16. #define __RTGUI_CONFIG_H__
  17. /* RTGUI options */
  18. #ifndef RT_USING_DFS
  19. #undef RTGUI_USING_DFS_FILERW
  20. #undef RTGUI_USING_HZ_FILE
  21. #endif
  22. #ifdef RT_USING_DFS
  23. /* if file system is used, the DFS_FILERW will be defined */
  24. #ifndef RTGUI_USING_DFS_FILERW
  25. #define RTGUI_USING_DFS_FILERW
  26. #endif
  27. #endif
  28. #if RTGUI_DEFAULT_FONT_SIZE == 0
  29. #define RTGUI_DEFAULT_FONT_SIZE 12
  30. #endif
  31. #define RTGUI_SVR_THREAD_PRIORITY 15
  32. #define RTGUI_SVR_THREAD_TIMESLICE 5
  33. #ifndef RTGUI_SVR_THREAD_STACK_SIZE
  34. #ifdef RTGUI_USING_SMALL_SIZE
  35. #define RTGUI_SVR_THREAD_STACK_SIZE 1024
  36. #else
  37. #define RTGUI_SVR_THREAD_STACK_SIZE 2048
  38. #endif
  39. #endif
  40. #define RTGUI_APP_THREAD_PRIORITY 25
  41. #define RTGUI_APP_THREAD_TIMESLICE 5
  42. #ifdef RTGUI_USING_SMALL_SIZE
  43. #define RTGUI_APP_THREAD_STACK_SIZE 1024
  44. #else
  45. #define RTGUI_APP_THREAD_STACK_SIZE 2048
  46. #endif
  47. // #define RTGUI_USING_CAST_CHECK
  48. // #define RTGUI_USING_DESKTOP_WINDOW
  49. // #undef RTGUI_USING_SMALL_SIZE
  50. //#define RTGUI_USING_CALIBRATION
  51. #define RTGUI_USING_VFRAMEBUFFER
  52. #ifdef DEBUG_MEMLEAK
  53. #define rtgui_malloc rt_malloc
  54. #define rtgui_realloc rt_realloc
  55. #define rtgui_free rt_free
  56. #endif
  57. #endif