rtconfig.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /* RT-Thread config file */
  2. #ifndef __RTTHREAD_CFG_H__
  3. #define __RTTHREAD_CFG_H__
  4. /* RT_NAME_MAX*/
  5. #define RT_NAME_MAX 8
  6. /* RT_ALIGN_SIZE*/
  7. #define RT_ALIGN_SIZE 4
  8. /* PRIORITY_MAX */
  9. #define RT_THREAD_PRIORITY_MAX 32
  10. /* Tick per Second */
  11. #define RT_TICK_PER_SECOND 100
  12. /* SECTION: RT_DEBUG */
  13. /* Thread Debug */
  14. #define RT_DEBUG
  15. #define RT_USING_OVERFLOW_CHECK
  16. /* Using Hook */
  17. #define RT_USING_HOOK
  18. /* SECTION: IPC */
  19. /* Using Semaphore */
  20. #define RT_USING_SEMAPHORE
  21. /* Using Mutex */
  22. #define RT_USING_MUTEX
  23. /* Using Event */
  24. #define RT_USING_EVENT
  25. /* Using MailBox */
  26. #define RT_USING_MAILBOX
  27. /* Using Message Queue */
  28. #define RT_USING_MESSAGEQUEUE
  29. /* SECTION: Memory Management */
  30. /* Using Memory Pool Management*/
  31. #define RT_USING_MEMPOOL
  32. /* Using Dynamic Heap Management */
  33. #define RT_USING_HEAP
  34. /* Using Small MM */
  35. #define RT_USING_SMALL_MEM
  36. /* SECTION: Device System */
  37. /* Using Device System */
  38. #define RT_USING_DEVICE
  39. /* RT_USING_UART */
  40. #define RT_USING_UART2
  41. #define RT_UART_RX_BUFFER_SIZE 64
  42. /* SECTION: Console options */
  43. //#define RT_TINY_SIZE
  44. #define RT_USING_CONSOLE
  45. /* the buffer size of console */
  46. #define RT_CONSOLEBUF_SIZE 128
  47. /* SECTION: finsh, a C-Express shell */
  48. /* Using FinSH as Shell*/
  49. #define RT_USING_FINSH
  50. /* Using symbol table */
  51. #define FINSH_USING_SYMTAB
  52. #define FINSH_USING_DESCRIPTION
  53. #define FINSH_THREAD_STACK_SIZE 4096
  54. /* SECTION: Device filesystem support */
  55. /* using DFS support */
  56. /* #define RT_USING_DFS */
  57. /* #define RT_USING_DFS_ELMFAT */
  58. /* use long file name feature */
  59. #define RT_DFS_ELM_USE_LFN 1
  60. /* the max number of file length */
  61. #define RT_DFS_ELM_MAX_LFN 32
  62. /* #define RT_USING_DFS_YAFFS2 */
  63. /* #define RT_USING_DFS_UFFS */
  64. /* #define RT_USING_DFS_DEVFS */
  65. //#define RT_USING_DFS_NFS
  66. //#define RT_NFS_HOST_EXPORT "192.168.1.5:/"
  67. #define DFS_USING_WORKDIR
  68. /* the max number of mounted filesystem */
  69. #define DFS_FILESYSTEMS_MAX 4
  70. /* the max number of opened files */
  71. #define DFS_FD_MAX 16
  72. /* the max number of cached sector */
  73. #define DFS_CACHE_MAX_NUM 4
  74. /* SECTION: RTGUI support */
  75. /* using RTGUI support */
  76. //#define RT_USING_RTGUI
  77. /* name length of RTGUI object */
  78. #define RTGUI_NAME_MAX 16
  79. /* support 16 weight font */
  80. //#define RTGUI_USING_FONT16
  81. /* support 12 weight font */
  82. #define RTGUI_USING_FONT12
  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 Chinese bitmap font */
  90. //#define RTGUI_USING_HZ_BMP
  91. /* use small size in RTGUI */
  92. //#define RTGUI_USING_SMALL_SIZE
  93. /* use mouse cursor */
  94. /* #define RTGUI_USING_MOUSE_CURSOR */
  95. #define RTGUI_DEFAULT_FONT_SIZE 12
  96. #endif