rtconfig.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Automatically generated file; DO NOT EDIT. */
  4. /* RT-Thread Project Configuration */
  5. /* RT-Thread Kernel */
  6. #define RT_NAME_MAX 8
  7. #define RT_USING_SMP
  8. #define RT_CPUS_NR 4
  9. #define RT_ALIGN_SIZE 4
  10. #define RT_THREAD_PRIORITY_32
  11. #define RT_THREAD_PRIORITY_MAX 32
  12. #define RT_TICK_PER_SECOND 100
  13. #define RT_USING_OVERFLOW_CHECK
  14. #define RT_USING_HOOK
  15. #define RT_HOOK_USING_FUNC_PTR
  16. #define RT_USING_IDLE_HOOK
  17. #define RT_IDLE_HOOK_LIST_SIZE 4
  18. #define IDLE_THREAD_STACK_SIZE 256
  19. #define SYSTEM_THREAD_STACK_SIZE 256
  20. /* kservice optimization */
  21. #define RT_DEBUG
  22. #define RT_DEBUG_COLOR
  23. /* Inter-Thread communication */
  24. #define RT_USING_SEMAPHORE
  25. #define RT_USING_MUTEX
  26. #define RT_USING_EVENT
  27. #define RT_USING_MAILBOX
  28. #define RT_USING_MESSAGEQUEUE
  29. /* Memory Management */
  30. #define RT_USING_MEMPOOL
  31. #define RT_USING_SMALL_MEM
  32. #define RT_USING_MEMHEAP
  33. #define RT_MEMHEAP_FAST_MODE
  34. #define RT_USING_SMALL_MEM_AS_HEAP
  35. #define RT_USING_MEMTRACE
  36. #define RT_USING_HEAP
  37. /* Kernel Device Object */
  38. #define RT_USING_DEVICE
  39. #define RT_USING_DEVICE_OPS
  40. #define RT_USING_CONSOLE
  41. #define RT_CONSOLEBUF_SIZE 128
  42. #define RT_CONSOLE_DEVICE_NAME "uart1"
  43. #define RT_VER_NUM 0x40100
  44. #define ARCH_ARM
  45. #define RT_USING_CPU_FFS
  46. #define ARCH_ARM_CORTEX_A
  47. #define RT_NO_USING_GIC
  48. #define ARCH_ARM_CORTEX_A7
  49. /* RT-Thread Components */
  50. #define RT_USING_COMPONENTS_INIT
  51. #define RT_USING_USER_MAIN
  52. #define RT_MAIN_THREAD_STACK_SIZE 2048
  53. #define RT_MAIN_THREAD_PRIORITY 10
  54. #define RT_USING_MSH
  55. #define RT_USING_FINSH
  56. #define FINSH_USING_MSH
  57. #define FINSH_THREAD_NAME "tshell"
  58. #define FINSH_THREAD_PRIORITY 20
  59. #define FINSH_THREAD_STACK_SIZE 4096
  60. #define FINSH_USING_HISTORY
  61. #define FINSH_HISTORY_LINES 5
  62. #define FINSH_USING_SYMTAB
  63. #define FINSH_CMD_SIZE 80
  64. #define MSH_USING_BUILT_IN_COMMANDS
  65. #define FINSH_USING_DESCRIPTION
  66. #define FINSH_ARG_MAX 10
  67. #define RT_USING_DFS
  68. #define DFS_USING_POSIX
  69. #define DFS_USING_WORKDIR
  70. #define DFS_FILESYSTEMS_MAX 2
  71. #define DFS_FILESYSTEM_TYPES_MAX 2
  72. #define DFS_FD_MAX 16
  73. #define RT_USING_DFS_ELMFAT
  74. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  75. #define RT_DFS_ELM_CODE_PAGE 437
  76. #define RT_DFS_ELM_WORD_ACCESS
  77. #define RT_DFS_ELM_USE_LFN_3
  78. #define RT_DFS_ELM_USE_LFN 3
  79. #define RT_DFS_ELM_LFN_UNICODE_0
  80. #define RT_DFS_ELM_LFN_UNICODE 0
  81. #define RT_DFS_ELM_MAX_LFN 255
  82. #define RT_DFS_ELM_DRIVES 2
  83. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  84. #define RT_DFS_ELM_REENTRANT
  85. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  86. #define RT_USING_DFS_DEVFS
  87. /* Device Drivers */
  88. #define RT_USING_DEVICE_IPC
  89. #define RT_USING_SERIAL
  90. #define RT_USING_SERIAL_V1
  91. #define RT_SERIAL_RB_BUFSZ 64
  92. #define RT_USING_HWTIMER
  93. #define RT_USING_I2C
  94. #define RT_USING_PIN
  95. #define RT_USING_RTC
  96. #define RT_USING_SDIO
  97. #define RT_SDIO_STACK_SIZE 512
  98. #define RT_SDIO_THREAD_PRIORITY 15
  99. #define RT_MMCSD_STACK_SIZE 1024
  100. #define RT_MMCSD_THREAD_PREORITY 22
  101. #define RT_MMCSD_MAX_PARTITION 16
  102. #define RT_USING_SPI
  103. #define RT_USING_WDT
  104. /* Using USB */
  105. /* C/C++ and POSIX layer */
  106. #define RT_LIBC_DEFAULT_TIMEZONE 8
  107. /* POSIX (Portable Operating System Interface) layer */
  108. /* Interprocess Communication (IPC) */
  109. /* Socket is in the 'Network' category */
  110. /* Network */
  111. /* Utilities */
  112. /* RT-Thread Utestcases */
  113. /* RT-Thread online packages */
  114. /* IoT - internet of things */
  115. /* Wi-Fi */
  116. /* Marvell WiFi */
  117. /* Wiced WiFi */
  118. /* IoT Cloud */
  119. /* security packages */
  120. /* language packages */
  121. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  122. /* XML: Extensible Markup Language */
  123. /* multimedia packages */
  124. /* LVGL: powerful and easy-to-use embedded GUI library */
  125. /* u8g2: a monochrome graphic library */
  126. /* PainterEngine: A cross-platform graphics application framework written in C language */
  127. /* tools packages */
  128. /* system packages */
  129. /* enhanced kernel services */
  130. /* POSIX extension functions */
  131. /* acceleration: Assembly language or algorithmic acceleration packages */
  132. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  133. /* Micrium: Micrium software products porting for RT-Thread */
  134. /* peripheral libraries and drivers */
  135. /* AI packages */
  136. /* miscellaneous packages */
  137. /* project laboratory */
  138. /* samples: kernel and components samples */
  139. /* entertainment: terminal games and other interesting software packages */
  140. #define BCM2836_SOC
  141. /* Hardware Drivers Config */
  142. /* BCM Peripheral Drivers */
  143. #define BSP_USING_UART
  144. #define RT_USING_UART1
  145. #define BSP_USING_PIN
  146. #define BSP_USING_SYSTIMER
  147. #define RT_USING_SYSTIMER1
  148. #define RT_USING_SYSTIMER3
  149. #define BSP_USING_I2C
  150. #define BSP_USING_I2C0
  151. #define BSP_USING_I2C1
  152. #define BSP_USING_SPI
  153. #define BSP_USING_SPI0_BUS
  154. #define BSP_USING_SPI0_DEVICE0
  155. #define BSP_USING_SPI0_DEVICE1
  156. #define BSP_USING_WDT
  157. #define BSP_USING_RTC
  158. #define BSP_USING_SDIO
  159. #define BSP_USING_SDIO0
  160. #define BSP_USING_HDMI
  161. #endif