rtconfig.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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_UART0
  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: RTGUI support */
  48. /* using RTGUI support */
  49. /* #define RT_USING_RTGUI */
  50. /* name length of RTGUI object */
  51. #define RTGUI_NAME_MAX 16
  52. /* support 16 weight font */
  53. //#define RTGUI_USING_FONT16
  54. /* support 12 weight font */
  55. #define RTGUI_USING_FONT12
  56. /* support Chinese font */
  57. //#define RTGUI_USING_FONTHZ
  58. /* use DFS as file interface */
  59. //#define RTGUI_USING_DFS_FILERW
  60. /* use font file as Chinese font */
  61. /* #define RTGUI_USING_HZ_FILE */
  62. /* use Chinese bitmap font */
  63. //#define RTGUI_USING_HZ_BMP
  64. /* use small size in RTGUI */
  65. //#define RTGUI_USING_SMALL_SIZE
  66. /* use mouse cursor */
  67. /* #define RTGUI_USING_MOUSE_CURSOR */
  68. #define RTGUI_DEFAULT_FONT_SIZE 12
  69. #endif