rtconfig.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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 8
  8. #define RT_THREAD_PRIORITY_32
  9. #define RT_THREAD_PRIORITY_MAX 32
  10. #define RT_TICK_PER_SECOND 100
  11. #define RT_USING_HOOK
  12. #define RT_HOOK_USING_FUNC_PTR
  13. #define RT_USING_IDLE_HOOK
  14. #define RT_IDLE_HOOK_LIST_SIZE 4
  15. #define IDLE_THREAD_STACK_SIZE 256
  16. #define RT_USING_TIMER_SOFT
  17. #define RT_TIMER_THREAD_PRIO 4
  18. #define RT_TIMER_THREAD_STACK_SIZE 512
  19. /* kservice optimization */
  20. /* Inter-Thread communication */
  21. #define RT_USING_SEMAPHORE
  22. #define RT_USING_MUTEX
  23. #define RT_USING_EVENT
  24. /* Memory Management */
  25. #define RT_PAGE_MAX_ORDER 11
  26. #define RT_USING_MEMPOOL
  27. #define RT_USING_SMALL_MEM
  28. #define RT_USING_SMALL_MEM_AS_HEAP
  29. #define RT_USING_HEAP
  30. /* Kernel Device Object */
  31. #define RT_USING_DEVICE
  32. #define RT_USING_CONSOLE
  33. #define RT_CONSOLEBUF_SIZE 128
  34. #define RT_CONSOLE_DEVICE_NAME "uart0"
  35. #define RT_VER_NUM 0x50000
  36. /* RT-Thread Components */
  37. #define RT_USING_COMPONENTS_INIT
  38. #define RT_USING_USER_MAIN
  39. #define RT_MAIN_THREAD_STACK_SIZE 2048
  40. #define RT_MAIN_THREAD_PRIORITY 10
  41. #define RT_USING_MSH
  42. #define RT_USING_FINSH
  43. #define FINSH_USING_MSH
  44. #define FINSH_THREAD_NAME "tshell"
  45. #define FINSH_THREAD_PRIORITY 20
  46. #define FINSH_THREAD_STACK_SIZE 4096
  47. #define FINSH_USING_HISTORY
  48. #define FINSH_HISTORY_LINES 5
  49. #define FINSH_USING_SYMTAB
  50. #define FINSH_CMD_SIZE 80
  51. #define MSH_USING_BUILT_IN_COMMANDS
  52. #define FINSH_USING_DESCRIPTION
  53. #define FINSH_ARG_MAX 10
  54. /* Device Drivers */
  55. #define RT_USING_DEVICE_IPC
  56. #define RT_UNAMED_PIPE_NUMBER 64
  57. #define RT_USING_SERIAL
  58. #define RT_USING_SERIAL_V1
  59. #define RT_SERIAL_RB_BUFSZ 64
  60. #define RT_USING_PIN
  61. /* Using USB */
  62. /* C/C++ and POSIX layer */
  63. #define RT_LIBC_DEFAULT_TIMEZONE 8
  64. /* POSIX (Portable Operating System Interface) layer */
  65. /* Interprocess Communication (IPC) */
  66. /* Socket is in the 'Network' category */
  67. /* Network */
  68. /* Utilities */
  69. /* RT-Thread Utestcases */
  70. /* RT-Thread online packages */
  71. /* IoT - internet of things */
  72. /* Wi-Fi */
  73. /* Marvell WiFi */
  74. /* Wiced WiFi */
  75. /* IoT Cloud */
  76. /* security packages */
  77. /* language packages */
  78. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  79. /* XML: Extensible Markup Language */
  80. /* multimedia packages */
  81. /* LVGL: powerful and easy-to-use embedded GUI library */
  82. /* u8g2: a monochrome graphic library */
  83. /* tools packages */
  84. /* system packages */
  85. /* enhanced kernel services */
  86. /* acceleration: Assembly language or algorithmic acceleration packages */
  87. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  88. /* Micrium: Micrium software products porting for RT-Thread */
  89. /* peripheral libraries and drivers */
  90. /* sensors drivers */
  91. /* touch drivers */
  92. #define PKG_USING_NRFX
  93. #define PKG_USING_NRFX_LATEST_VERSION
  94. /* Kendryte SDK */
  95. /* AI packages */
  96. /* Signal Processing and Control Algorithm Packages */
  97. /* miscellaneous packages */
  98. /* project laboratory */
  99. /* samples: kernel and components samples */
  100. /* entertainment: terminal games and other interesting software packages */
  101. /* Arduino libraries */
  102. /* Projects */
  103. /* Sensors */
  104. /* Display */
  105. /* Timing */
  106. /* Data Processing */
  107. /* Data Storage */
  108. /* Communication */
  109. /* Device Control */
  110. /* Other */
  111. /* Signal IO */
  112. /* Uncategorized */
  113. /* Hardware Drivers Config */
  114. #define SOC_NRF52840
  115. #define SOC_NORDIC
  116. #define BSP_BOARD_PCA_10056
  117. /* Onboard Peripheral Drivers */
  118. #define BSP_USING_JLINK_TO_USART
  119. #define RT_BSP_LED_PIN 13
  120. /* On-chip Peripheral Drivers */
  121. #define BSP_USING_GPIO
  122. #define BSP_USING_UART
  123. #define NRFX_USING_UART
  124. #define BSP_USING_UART0
  125. #define BSP_UART0_RX_PIN 8
  126. #define BSP_UART0_TX_PIN 6
  127. /* MCU flash config */
  128. #define MCU_FLASH_START_ADDRESS 0x00000000
  129. #define MCU_FLASH_SIZE_KB 1024
  130. #define MCU_SRAM_START_ADDRESS 0x20000000
  131. #define MCU_SRAM_SIZE_KB 256
  132. #define MCU_FLASH_PAGE_SIZE 0x1000
  133. #define BLE_STACK_USING_NULL
  134. #define NRFX_CLOCK_ENABLED 1
  135. #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7
  136. #define NRFX_CLOCK_CONFIG_LF_SRC 1
  137. #define NRFX_UART_ENABLED 1
  138. #define NRFX_UART0_ENABLED 1
  139. #define NRFX_GPIOTE_ENABLED 1
  140. #endif