rtconfig.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Automatically generated file; DO NOT EDIT. */
  4. /* RT-Thread Configuration */
  5. /* RT-Thread Kernel */
  6. #define RT_NAME_MAX 8
  7. #define RT_ALIGN_SIZE 4
  8. #define RT_THREAD_PRIORITY_32
  9. #define RT_THREAD_PRIORITY_MAX 32
  10. #define RT_TICK_PER_SECOND 100
  11. #define RT_USING_OVERFLOW_CHECK
  12. #define RT_USING_HOOK
  13. #define RT_USING_IDLE_HOOK
  14. #define RT_IDLE_HOOK_LIST_SIZE 4
  15. #define IDLE_THREAD_STACK_SIZE 256
  16. /* kservice optimization */
  17. #define RT_DEBUG
  18. #define RT_DEBUG_COLOR
  19. /* Inter-Thread communication */
  20. #define RT_USING_SEMAPHORE
  21. #define RT_USING_MUTEX
  22. #define RT_USING_EVENT
  23. #define RT_USING_MAILBOX
  24. #define RT_USING_MESSAGEQUEUE
  25. /* Memory Management */
  26. #define RT_USING_MEMPOOL
  27. #define RT_USING_SMALL_MEM
  28. #define RT_USING_HEAP
  29. /* Kernel Device Object */
  30. #define RT_USING_DEVICE
  31. #define RT_USING_CONSOLE
  32. #define RT_CONSOLEBUF_SIZE 128
  33. #define RT_CONSOLE_DEVICE_NAME "uart0"
  34. #define RT_VER_NUM 0x40004
  35. /* RT-Thread Components */
  36. #define RT_USING_COMPONENTS_INIT
  37. #define RT_USING_USER_MAIN
  38. #define RT_MAIN_THREAD_STACK_SIZE 2048
  39. #define RT_MAIN_THREAD_PRIORITY 10
  40. /* C++ features */
  41. /* Command shell */
  42. #define RT_USING_FINSH
  43. #define FINSH_THREAD_NAME "tshell"
  44. #define FINSH_USING_HISTORY
  45. #define FINSH_HISTORY_LINES 5
  46. #define FINSH_USING_SYMTAB
  47. #define FINSH_USING_DESCRIPTION
  48. #define FINSH_THREAD_PRIORITY 20
  49. #define FINSH_THREAD_STACK_SIZE 4096
  50. #define FINSH_CMD_SIZE 80
  51. #define FINSH_USING_MSH
  52. #define FINSH_USING_MSH_DEFAULT
  53. #define FINSH_ARG_MAX 10
  54. /* Device virtual file system */
  55. #define RT_USING_DFS
  56. #define DFS_USING_WORKDIR
  57. #define DFS_FILESYSTEMS_MAX 4
  58. #define DFS_FILESYSTEM_TYPES_MAX 4
  59. #define DFS_FD_MAX 16
  60. #define RT_USING_DFS_ELMFAT
  61. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  62. #define RT_DFS_ELM_CODE_PAGE 437
  63. #define RT_DFS_ELM_WORD_ACCESS
  64. #define RT_DFS_ELM_USE_LFN_3
  65. #define RT_DFS_ELM_USE_LFN 3
  66. #define RT_DFS_ELM_LFN_UNICODE_0
  67. #define RT_DFS_ELM_LFN_UNICODE 0
  68. #define RT_DFS_ELM_MAX_LFN 255
  69. #define RT_DFS_ELM_DRIVES 2
  70. #define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
  71. #define RT_DFS_ELM_REENTRANT
  72. #define RT_USING_DFS_DEVFS
  73. /* Device Drivers */
  74. #define RT_USING_DEVICE_IPC
  75. #define RT_PIPE_BUFSZ 512
  76. #define RT_USING_SERIAL
  77. #define RT_USING_SERIAL_V1
  78. #define RT_SERIAL_USING_DMA
  79. #define RT_SERIAL_RB_BUFSZ 64
  80. #define RT_USING_I2C
  81. #define RT_USING_PIN
  82. #define RT_USING_SPI
  83. #define RT_USING_SFUD
  84. #define RT_SFUD_USING_SFDP
  85. #define RT_SFUD_USING_FLASH_INFO_TABLE
  86. #define RT_SFUD_SPI_MAX_HZ 50000000
  87. /* Using USB */
  88. /* POSIX layer and C standard library */
  89. #define RT_LIBC_USING_TIME
  90. #define RT_LIBC_DEFAULT_TIMEZONE 8
  91. /* Network */
  92. /* Socket abstraction layer */
  93. /* Network interface device */
  94. /* light weight TCP/IP stack */
  95. /* AT commands */
  96. /* VBUS(Virtual Software BUS) */
  97. /* Utilities */
  98. /* RT-Thread Utestcases */
  99. /* RT-Thread online packages */
  100. /* IoT - internet of things */
  101. /* Wi-Fi */
  102. /* Marvell WiFi */
  103. /* Wiced WiFi */
  104. /* IoT Cloud */
  105. /* security packages */
  106. /* language packages */
  107. /* multimedia packages */
  108. /* tools packages */
  109. /* system packages */
  110. /* acceleration: Assembly language or algorithmic acceleration packages */
  111. /* Micrium: Micrium software products porting for RT-Thread */
  112. /* peripheral libraries and drivers */
  113. /* AI packages */
  114. /* miscellaneous packages */
  115. /* samples: kernel and components samples */
  116. /* entertainment: terminal games and other interesting software packages */
  117. /* Hardware Drivers Config */
  118. /* Onboard Peripheral Drivers */
  119. /* On-chip Peripheral Drivers */
  120. #define SOC_SERIES_GD32F1
  121. #define SOC_GD32105C
  122. #define RT_USING_USART0
  123. #define RT_USING_SPI0
  124. #define RT_USING_I2C0
  125. /* Board extended module Drivers */
  126. #endif