rtconfig.h 2.5 KB

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