rtconfig.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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_USING_SMP
  7. #define RT_CPUS_NR 4
  8. #define RT_ALIGN_SIZE 4
  9. #define RT_THREAD_PRIORITY_32
  10. #define RT_THREAD_PRIORITY_MAX 32
  11. #define RT_TICK_PER_SECOND 100
  12. #define RT_USING_OVERFLOW_CHECK
  13. #define RT_USING_HOOK
  14. #define RT_USING_IDLE_HOOK
  15. #define RT_IDLE_HOOK_LIST_SIZE 4
  16. #define IDLE_THREAD_STACK_SIZE 256
  17. #define SYSTEM_THREAD_STACK_SIZE 256
  18. /* kservice optimization */
  19. /* end of kservice optimization */
  20. #define RT_DEBUG
  21. #define RT_DEBUG_COLOR
  22. /* Inter-Thread communication */
  23. #define RT_USING_SEMAPHORE
  24. #define RT_USING_MUTEX
  25. #define RT_USING_EVENT
  26. #define RT_USING_MAILBOX
  27. #define RT_USING_MESSAGEQUEUE
  28. /* end of Inter-Thread communication */
  29. /* Memory Management */
  30. #define RT_USING_MEMPOOL
  31. #define RT_USING_MEMHEAP
  32. #define RT_USING_SMALL_MEM
  33. #define RT_USING_MEMTRACE
  34. #define RT_USING_HEAP
  35. /* end of Memory Management */
  36. /* Kernel Device Object */
  37. #define RT_USING_DEVICE
  38. #define RT_USING_DEVICE_OPS
  39. #define RT_USING_CONSOLE
  40. #define RT_CONSOLEBUF_SIZE 128
  41. #define RT_CONSOLE_DEVICE_NAME "uart1"
  42. /* end of Kernel Device Object */
  43. #define RT_VER_NUM 0x40004
  44. /* end of RT-Thread Kernel */
  45. #define ARCH_ARM
  46. #define RT_USING_CPU_FFS
  47. #define ARCH_ARM_CORTEX_A
  48. #define RT_NO_USING_GIC
  49. #define ARCH_ARM_CORTEX_A7
  50. /* RT-Thread Components */
  51. #define RT_USING_COMPONENTS_INIT
  52. #define RT_USING_USER_MAIN
  53. #define RT_MAIN_THREAD_STACK_SIZE 2048
  54. #define RT_MAIN_THREAD_PRIORITY 10
  55. /* C++ features */
  56. /* end of C++ features */
  57. /* Command shell */
  58. #define RT_USING_FINSH
  59. #define RT_USING_MSH
  60. #define FINSH_USING_MSH
  61. #define FINSH_THREAD_NAME "tshell"
  62. #define FINSH_THREAD_PRIORITY 20
  63. #define FINSH_THREAD_STACK_SIZE 4096
  64. #define FINSH_USING_HISTORY
  65. #define FINSH_HISTORY_LINES 5
  66. #define FINSH_USING_SYMTAB
  67. #define FINSH_CMD_SIZE 80
  68. #define MSH_USING_BUILT_IN_COMMANDS
  69. #define FINSH_USING_DESCRIPTION
  70. #define FINSH_ARG_MAX 10
  71. /* end of Command shell */
  72. /* Device virtual file system */
  73. #define RT_USING_DFS
  74. #define DFS_USING_WORKDIR
  75. #define DFS_FILESYSTEMS_MAX 2
  76. #define DFS_FILESYSTEM_TYPES_MAX 2
  77. #define DFS_FD_MAX 16
  78. #define RT_USING_DFS_ELMFAT
  79. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  80. #define RT_DFS_ELM_CODE_PAGE 437
  81. #define RT_DFS_ELM_WORD_ACCESS
  82. #define RT_DFS_ELM_USE_LFN_3
  83. #define RT_DFS_ELM_USE_LFN 3
  84. #define RT_DFS_ELM_LFN_UNICODE_0
  85. #define RT_DFS_ELM_LFN_UNICODE 0
  86. #define RT_DFS_ELM_MAX_LFN 255
  87. #define RT_DFS_ELM_DRIVES 2
  88. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  89. #define RT_DFS_ELM_REENTRANT
  90. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  91. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  92. #define RT_USING_DFS_DEVFS
  93. /* end of Device virtual file system */
  94. /* Device Drivers */
  95. #define RT_USING_DEVICE_IPC
  96. #define RT_PIPE_BUFSZ 512
  97. #define RT_USING_SERIAL
  98. #define RT_USING_SERIAL_V1
  99. #define RT_SERIAL_RB_BUFSZ 64
  100. #define RT_USING_HWTIMER
  101. #define RT_USING_I2C
  102. #define RT_USING_PIN
  103. #define RT_USING_RTC
  104. #define RT_USING_SDIO
  105. #define RT_SDIO_STACK_SIZE 512
  106. #define RT_SDIO_THREAD_PRIORITY 15
  107. #define RT_MMCSD_STACK_SIZE 1024
  108. #define RT_MMCSD_THREAD_PREORITY 22
  109. #define RT_MMCSD_MAX_PARTITION 16
  110. #define RT_USING_SPI
  111. #define RT_USING_WDT
  112. /* Using USB */
  113. /* end of Using USB */
  114. /* end of Device Drivers */
  115. /* POSIX layer and C standard library */
  116. #define RT_USING_LIBC
  117. #define RT_USING_POSIX
  118. #define RT_LIBC_USING_TIME
  119. #define RT_LIBC_DEFAULT_TIMEZONE 8
  120. /* end of POSIX layer and C standard library */
  121. /* Network */
  122. /* Socket abstraction layer */
  123. /* end of Socket abstraction layer */
  124. /* Network interface device */
  125. /* end of Network interface device */
  126. /* light weight TCP/IP stack */
  127. /* end of light weight TCP/IP stack */
  128. /* AT commands */
  129. /* end of AT commands */
  130. /* end of Network */
  131. /* VBUS(Virtual Software BUS) */
  132. /* end of VBUS(Virtual Software BUS) */
  133. /* Utilities */
  134. /* end of Utilities */
  135. /* end of RT-Thread Components */
  136. /* RT-Thread Utestcases */
  137. /* end of RT-Thread Utestcases */
  138. /* RT-Thread online packages */
  139. /* IoT - internet of things */
  140. /* Wi-Fi */
  141. /* Marvell WiFi */
  142. /* end of Marvell WiFi */
  143. /* Wiced WiFi */
  144. /* end of Wiced WiFi */
  145. /* end of Wi-Fi */
  146. /* IoT Cloud */
  147. /* end of IoT Cloud */
  148. /* end of IoT - internet of things */
  149. /* security packages */
  150. /* end of security packages */
  151. /* language packages */
  152. /* end of language packages */
  153. /* multimedia packages */
  154. /* lvgl: powerful and easy-to-use embedded GUI library */
  155. /* end of lvgl: powerful and easy-to-use embedded GUI library */
  156. /* u8g2: a monochrome graphic library */
  157. /* end of u8g2: a monochrome graphic library */
  158. /* end of multimedia packages */
  159. /* tools packages */
  160. /* end of tools packages */
  161. /* system packages */
  162. /* acceleration: Assembly language or algorithmic acceleration packages */
  163. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  164. /* Micrium: Micrium software products porting for RT-Thread */
  165. /* end of Micrium: Micrium software products porting for RT-Thread */
  166. /* end of system packages */
  167. /* peripheral libraries and drivers */
  168. /* end of peripheral libraries and drivers */
  169. /* AI packages */
  170. /* end of AI packages */
  171. /* miscellaneous packages */
  172. /* samples: kernel and components samples */
  173. /* end of samples: kernel and components samples */
  174. /* entertainment: terminal games and other interesting software packages */
  175. /* end of entertainment: terminal games and other interesting software packages */
  176. /* end of miscellaneous packages */
  177. /* end of RT-Thread online packages */
  178. #define BCM2836_SOC
  179. /* Hardware Drivers Config */
  180. /* BCM Peripheral Drivers */
  181. #define BSP_USING_UART
  182. #define RT_USING_UART1
  183. #define BSP_USING_PIN
  184. #define BSP_USING_SYSTIMER
  185. #define RT_USING_SYSTIMER1
  186. #define RT_USING_SYSTIMER3
  187. #define BSP_USING_I2C
  188. #define BSP_USING_I2C0
  189. #define BSP_USING_I2C1
  190. #define BSP_USING_SPI
  191. #define BSP_USING_SPI0_BUS
  192. #define BSP_USING_SPI0_DEVICE0
  193. #define BSP_USING_SPI0_DEVICE1
  194. #define BSP_USING_WDT
  195. #define BSP_USING_RTC
  196. #define BSP_USING_SDIO
  197. #define BSP_USING_SDIO0
  198. #define BSP_USING_HDMI
  199. /* end of BCM Peripheral Drivers */
  200. /* end of Hardware Drivers Config */
  201. #endif