rtconfig.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /*
  2. * File : rtconfig.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2010, 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. * 2010-03-30 Kyle First version
  13. */
  14. #ifndef RTCONFIG_H_
  15. #define RTCONFIG_H_
  16. /* RT_NAME_MAX*/
  17. #define RT_NAME_MAX 8
  18. /* RT_ALIGN_SIZE*/
  19. #define RT_ALIGN_SIZE 4
  20. /* PRIORITY_MAX*/
  21. #define RT_THREAD_PRIORITY_MAX 32
  22. /* Tick per Second*/
  23. #define RT_TICK_PER_SECOND 100
  24. /* SECTION: RT_DEBUG */
  25. /* Thread Debug*/
  26. //#define RT_DEBUG
  27. /* #define RT_THREAD_DEBUG */
  28. #define RT_USING_OVERFLOW_CHECK
  29. /* Using Hook*/
  30. //#define RT_USING_HOOK
  31. /* SECTION: IPC */
  32. /* Using Semaphore*/
  33. #define RT_USING_SEMAPHORE
  34. /* Using Mutex*/
  35. //#define RT_USING_MUTEX
  36. /* Using Event*/
  37. //#define RT_USING_EVENT
  38. /* Using MailBox*/
  39. //#define RT_USING_MAILBOX
  40. /* Using Message Queue*/
  41. //#define RT_USING_MESSAGEQUEUE
  42. /* SECTION: Memory Management */
  43. /* Using Memory Pool Management*/
  44. #define RT_USING_MEMPOOL
  45. /* Using Dynamic Heap Management*/
  46. #define RT_USING_HEAP
  47. /* Using Small MM*/
  48. #define RT_USING_SMALL_MEM
  49. /* Using SLAB Allocator*/
  50. /* #define RT_USING_SLAB */
  51. /* SECTION: Device System */
  52. /* Using Device System*/
  53. #define RT_USING_DEVICE
  54. /* SECTION: Console options */
  55. /* the buffer size of console*/
  56. #define RT_USING_CONSOLE
  57. #define RT_CONSOLEBUF_SIZE 128
  58. /* SECTION: FinSH shell options */
  59. /* Using FinSH as Shell*/
  60. #define RT_USING_FINSH
  61. /* Using symbol table */
  62. #define FINSH_USING_SYMTAB
  63. #define FINSH_USING_DESCRIPTION
  64. #define FINSH_DEVICE_NAME "uart1"
  65. /* SECTION: RT-Thread/GUI */
  66. //#define RT_USING_DFS
  67. #define RT_USING_DFS_ELMFAT
  68. #define RT_DFS_ELM_WORD_ACCESS
  69. #define RT_DFS_ELM_DRIVES 2
  70. /* SECTION: DFS options */
  71. /* the max number of mounted filesystem */
  72. #define DFS_FILESYSTEMS_MAX 2
  73. /* the max number of opened files */
  74. #define DFS_FD_MAX 8
  75. /* the max number of cached sector */
  76. #define DFS_CACHE_MAX_NUM 4
  77. /* SECTION: RT-Thread/GUI */
  78. //#define RT_USING_RTGUI
  79. /* name length of RTGUI object */
  80. #define RTGUI_NAME_MAX 12
  81. /* support 16 weight font */
  82. #define RTGUI_USING_FONT16
  83. /* support Chinese font */
  84. #define RTGUI_USING_FONTHZ
  85. /* use DFS as file interface */
  86. #define RTGUI_USING_DFS_FILERW
  87. /* use font file as Chinese font */
  88. #define RTGUI_USING_HZ_FILE
  89. /* use small size in RTGUI */
  90. #define RTGUI_USING_SMALL_SIZE
  91. /* use mouse cursor */
  92. /* #define RTGUI_USING_MOUSE_CURSOR */
  93. /* default font size in RTGUI */
  94. #define RTGUI_DEFAULT_FONT_SIZE 16
  95. #endif /* RTCONFIG_H_ */