rtconfig.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* RT-Thread Kernel */
  4. #define RT_NAME_MAX 8
  5. #define RT_CPUS_NR 1
  6. #define RT_ALIGN_SIZE 8
  7. #define RT_THREAD_PRIORITY_32
  8. #define RT_THREAD_PRIORITY_MAX 32
  9. #define RT_TICK_PER_SECOND 100
  10. #define RT_USING_HOOK
  11. #define RT_HOOK_USING_FUNC_PTR
  12. #define RT_USING_IDLE_HOOK
  13. #define RT_IDLE_HOOK_LIST_SIZE 4
  14. #define IDLE_THREAD_STACK_SIZE 256
  15. /* kservice optimization */
  16. /* end of kservice optimization */
  17. /* klibc optimization */
  18. /* end of klibc optimization */
  19. #define RT_USING_DEBUG
  20. #define RT_DEBUGING_ASSERT
  21. #define RT_DEBUGING_COLOR
  22. #define RT_DEBUGING_CONTEXT
  23. #define RT_USING_OVERFLOW_CHECK
  24. /* Inter-Thread communication */
  25. #define RT_USING_SEMAPHORE
  26. #define RT_USING_MUTEX
  27. #define RT_USING_EVENT
  28. #define RT_USING_MAILBOX
  29. #define RT_USING_MESSAGEQUEUE
  30. /* end of Inter-Thread communication */
  31. /* Memory Management */
  32. #define RT_USING_MEMPOOL
  33. #define RT_USING_SMALL_MEM
  34. #define RT_USING_SMALL_MEM_AS_HEAP
  35. #define RT_USING_HEAP
  36. /* end of Memory Management */
  37. #define RT_USING_DEVICE
  38. #define RT_USING_CONSOLE
  39. #define RT_CONSOLEBUF_SIZE 128
  40. #define RT_CONSOLE_DEVICE_NAME "uart0"
  41. #define RT_VER_NUM 0x50200
  42. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  43. /* end of RT-Thread Kernel */
  44. /* RT-Thread Components */
  45. #define RT_USING_COMPONENTS_INIT
  46. #define RT_USING_USER_MAIN
  47. #define RT_MAIN_THREAD_STACK_SIZE 2048
  48. #define RT_MAIN_THREAD_PRIORITY 10
  49. #define RT_USING_MSH
  50. #define RT_USING_FINSH
  51. #define FINSH_USING_MSH
  52. #define FINSH_THREAD_NAME "tshell"
  53. #define FINSH_THREAD_PRIORITY 20
  54. #define FINSH_THREAD_STACK_SIZE 4096
  55. #define FINSH_USING_HISTORY
  56. #define FINSH_HISTORY_LINES 5
  57. #define FINSH_USING_SYMTAB
  58. #define FINSH_CMD_SIZE 80
  59. #define MSH_USING_BUILT_IN_COMMANDS
  60. #define FINSH_USING_DESCRIPTION
  61. #define FINSH_ARG_MAX 10
  62. #define FINSH_USING_OPTION_COMPLETION
  63. /* DFS: device virtual file system */
  64. /* end of DFS: device virtual file system */
  65. /* Device Drivers */
  66. #define RT_USING_DEVICE_IPC
  67. #define RT_UNAMED_PIPE_NUMBER 64
  68. #define RT_USING_SYSTEM_WORKQUEUE
  69. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  70. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  71. #define RT_USING_SERIAL
  72. #define RT_USING_SERIAL_V1
  73. #define RT_SERIAL_USING_DMA
  74. #define RT_SERIAL_RB_BUFSZ 64
  75. #define RT_USING_PIN
  76. /* end of Device Drivers */
  77. /* C/C++ and POSIX layer */
  78. /* ISO-ANSI C layer */
  79. /* Timezone and Daylight Saving Time */
  80. #define RT_LIBC_USING_LIGHT_TZ_DST
  81. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  82. #define RT_LIBC_TZ_DEFAULT_MIN 0
  83. #define RT_LIBC_TZ_DEFAULT_SEC 0
  84. /* end of Timezone and Daylight Saving Time */
  85. /* end of ISO-ANSI C layer */
  86. /* POSIX (Portable Operating System Interface) layer */
  87. /* Interprocess Communication (IPC) */
  88. /* Socket is in the 'Network' category */
  89. /* end of Interprocess Communication (IPC) */
  90. /* end of POSIX (Portable Operating System Interface) layer */
  91. /* end of C/C++ and POSIX layer */
  92. /* Network */
  93. /* end of Network */
  94. /* Memory protection */
  95. /* end of Memory protection */
  96. /* Utilities */
  97. /* end of Utilities */
  98. /* Using USB legacy version */
  99. /* end of Using USB legacy version */
  100. /* end of RT-Thread Components */
  101. /* RT-Thread Utestcases */
  102. /* end of RT-Thread Utestcases */
  103. /* Hardware Drivers Config */
  104. /* SOC Series */
  105. #define SOC_SERIES_GD32E50x
  106. #define SOC_GD32503V
  107. /* end of SOC Series */
  108. /* Onboard Peripheral Drivers */
  109. /* On-chip Peripheral Drivers */
  110. #define BSP_USING_GPIO
  111. #define BSP_USING_UART
  112. #define BSP_USING_UART0
  113. /* end of On-chip Peripheral Drivers */
  114. /* Board extended module Drivers */
  115. /* end of Hardware Drivers Config */
  116. #endif