rtconfig.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
  4. /* RT-Thread Kernel */
  5. #define RT_NAME_MAX 8
  6. #define RT_ALIGN_SIZE 4
  7. #define RT_THREAD_PRIORITY_32
  8. #define RT_THREAD_PRIORITY_MAX 32
  9. #define RT_TICK_PER_SECOND 100
  10. #define RT_USING_OVERFLOW_CHECK
  11. #define RT_USING_HOOK
  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. #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. /* end of Inter-Thread communication */
  26. /* Memory Management */
  27. #define RT_USING_MEMPOOL
  28. #define RT_USING_SMALL_MEM
  29. #define RT_USING_HEAP
  30. /* end of Memory Management */
  31. /* Kernel Device Object */
  32. #define RT_USING_DEVICE
  33. #define RT_USING_CONSOLE
  34. #define RT_CONSOLEBUF_SIZE 128
  35. #define RT_CONSOLE_DEVICE_NAME "uart0"
  36. /* end of Kernel Device Object */
  37. #define RT_VER_NUM 0x40004
  38. /* end of RT-Thread Kernel */
  39. #define ARCH_ARM
  40. #define ARCH_ARM_ARM9
  41. /* RT-Thread Components */
  42. #define RT_USING_COMPONENTS_INIT
  43. #define RT_USING_USER_MAIN
  44. #define RT_MAIN_THREAD_STACK_SIZE 2048
  45. #define RT_MAIN_THREAD_PRIORITY 10
  46. /* C++ features */
  47. /* end of C++ features */
  48. /* Command shell */
  49. #define RT_USING_FINSH
  50. #define RT_USING_MSH
  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. /* end of Command shell */
  63. /* Device virtual file system */
  64. #define RT_USING_DFS
  65. #define DFS_USING_WORKDIR
  66. #define DFS_FILESYSTEMS_MAX 2
  67. #define DFS_FILESYSTEM_TYPES_MAX 2
  68. #define DFS_FD_MAX 4
  69. #define RT_USING_DFS_ELMFAT
  70. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  71. #define RT_DFS_ELM_CODE_PAGE 437
  72. #define RT_DFS_ELM_WORD_ACCESS
  73. #define RT_DFS_ELM_USE_LFN_0
  74. #define RT_DFS_ELM_USE_LFN 0
  75. #define RT_DFS_ELM_LFN_UNICODE_0
  76. #define RT_DFS_ELM_LFN_UNICODE 0
  77. #define RT_DFS_ELM_MAX_LFN 255
  78. #define RT_DFS_ELM_DRIVES 2
  79. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  80. #define RT_DFS_ELM_REENTRANT
  81. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  82. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  83. #define RT_USING_DFS_DEVFS
  84. /* end of Device virtual file system */
  85. /* Device Drivers */
  86. #define RT_USING_DEVICE_IPC
  87. #define RT_PIPE_BUFSZ 512
  88. #define RT_USING_SERIAL
  89. #define RT_USING_SERIAL_V1
  90. #define RT_SERIAL_USING_DMA
  91. #define RT_SERIAL_RB_BUFSZ 64
  92. #define RT_USING_PIN
  93. #define RT_USING_SDIO
  94. #define RT_SDIO_STACK_SIZE 512
  95. #define RT_SDIO_THREAD_PRIORITY 15
  96. #define RT_MMCSD_STACK_SIZE 1024
  97. #define RT_MMCSD_THREAD_PREORITY 22
  98. #define RT_MMCSD_MAX_PARTITION 16
  99. #define RT_USING_SPI
  100. #define RT_USING_SFUD
  101. #define RT_SFUD_USING_SFDP
  102. #define RT_SFUD_USING_FLASH_INFO_TABLE
  103. #define RT_SFUD_SPI_MAX_HZ 50000000
  104. /* Using USB */
  105. /* end of Using USB */
  106. /* end of Device Drivers */
  107. /* POSIX layer and C standard library */
  108. #define RT_USING_LIBC
  109. #define RT_USING_POSIX
  110. #define RT_LIBC_USING_TIME
  111. #define RT_LIBC_DEFAULT_TIMEZONE 8
  112. /* end of POSIX layer and C standard library */
  113. /* Network */
  114. /* Socket abstraction layer */
  115. /* end of Socket abstraction layer */
  116. /* Network interface device */
  117. /* end of Network interface device */
  118. /* light weight TCP/IP stack */
  119. /* end of light weight TCP/IP stack */
  120. /* AT commands */
  121. /* end of AT commands */
  122. /* end of Network */
  123. /* VBUS(Virtual Software BUS) */
  124. /* end of VBUS(Virtual Software BUS) */
  125. /* Utilities */
  126. /* end of Utilities */
  127. /* end of RT-Thread Components */
  128. /* RT-Thread Utestcases */
  129. /* end of RT-Thread Utestcases */
  130. /* RT-Thread online packages */
  131. /* IoT - internet of things */
  132. /* Wi-Fi */
  133. /* Marvell WiFi */
  134. /* end of Marvell WiFi */
  135. /* Wiced WiFi */
  136. /* end of Wiced WiFi */
  137. /* end of Wi-Fi */
  138. /* IoT Cloud */
  139. /* end of IoT Cloud */
  140. /* end of IoT - internet of things */
  141. /* security packages */
  142. /* end of security packages */
  143. /* language packages */
  144. /* end of language packages */
  145. /* multimedia packages */
  146. /* lvgl: powerful and easy-to-use embedded GUI library */
  147. /* end of lvgl: powerful and easy-to-use embedded GUI library */
  148. /* u8g2: a monochrome graphic library */
  149. /* end of u8g2: a monochrome graphic library */
  150. /* end of multimedia packages */
  151. /* tools packages */
  152. /* end of tools packages */
  153. /* system packages */
  154. /* acceleration: Assembly language or algorithmic acceleration packages */
  155. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  156. /* Micrium: Micrium software products porting for RT-Thread */
  157. /* end of Micrium: Micrium software products porting for RT-Thread */
  158. /* end of system packages */
  159. /* peripheral libraries and drivers */
  160. /* end of peripheral libraries and drivers */
  161. /* AI packages */
  162. /* end of AI packages */
  163. /* miscellaneous packages */
  164. /* samples: kernel and components samples */
  165. /* end of samples: kernel and components samples */
  166. /* entertainment: terminal games and other interesting software packages */
  167. /* end of entertainment: terminal games and other interesting software packages */
  168. /* end of miscellaneous packages */
  169. /* end of RT-Thread online packages */
  170. #define SOC_TINA
  171. #define TINA_USING_UART0
  172. #define TINA_USING_UART2
  173. #define TINA_USING_SDIO0
  174. #define TINA_USING_SPI0
  175. #define TINA_USING_SPI1
  176. #define TINA_USING_SPI_FLASH
  177. #endif