rtconfig.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Automatically generated file; DO NOT EDIT. */
  4. /* RT-Thread Configuration */
  5. /* Hardware Drivers Config */
  6. #define SOC_NRF5340
  7. #define SOC_NORDIC
  8. #define BSP_BOARD_PCA_10095
  9. /* Onboard Peripheral Drivers */
  10. #define RT_BSP_LED_PIN 28
  11. /* On-chip Peripheral Drivers */
  12. #define BSP_USING_GPIO
  13. #define BSP_USING_UART
  14. #define NRFX_USING_UARTE
  15. #define BSP_USING_UART0
  16. #define BSP_UART0_RX_PIN 22
  17. #define BSP_UART0_TX_PIN 20
  18. #define NRFX_UARTE_ENABLED 1
  19. #define NRFX_UARTE0_ENABLED 1
  20. #define BSP_USING_UART1
  21. #define NRFX_UARTE1_ENABLED 1
  22. #define BSP_UART1_RX_PIN 32
  23. #define BSP_UART1_TX_PIN 33
  24. /* MCU flash config */
  25. #define MCU_FLASH_START_ADDRESS 0x00000000
  26. #define MCU_FLASH_SIZE_KB 1024
  27. #define MCU_SRAM_START_ADDRESS 0x20000000
  28. #define MCU_SRAM_SIZE_KB 512
  29. #define MCU_FLASH_PAGE_SIZE 0x1000
  30. #define BLE_STACK_USING_NULL
  31. #define NRFX_CLOCK_ENABLED 1
  32. #define NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY 7
  33. #define NRFX_CLOCK_CONFIG_LF_SRC 1
  34. #define NRFX_UART_ENABLED 1
  35. #define NRFX_UART0_ENABLED 1
  36. #define NRFX_GPIOTE_ENABLED 1
  37. /* RT-Thread Kernel */
  38. #define RT_NAME_MAX 8
  39. #define RT_ALIGN_SIZE 8
  40. #define RT_THREAD_PRIORITY_32
  41. #define RT_THREAD_PRIORITY_MAX 32
  42. #define RT_TICK_PER_SECOND 100
  43. #define RT_USING_HOOK
  44. #define RT_HOOK_USING_FUNC_PTR
  45. #define RT_USING_IDLE_HOOK
  46. #define RT_IDLE_HOOK_LIST_SIZE 4
  47. #define IDLE_THREAD_STACK_SIZE 512
  48. #define RT_USING_TIMER_SOFT
  49. #define RT_TIMER_THREAD_PRIO 4
  50. #define RT_TIMER_THREAD_STACK_SIZE 512
  51. /* kservice optimization */
  52. /* Inter-Thread communication */
  53. #define RT_USING_SEMAPHORE
  54. #define RT_USING_MUTEX
  55. #define RT_USING_EVENT
  56. #define RT_USING_MESSAGEQUEUE
  57. /* Memory Management */
  58. #define RT_USING_MEMPOOL
  59. #define RT_USING_SMALL_MEM
  60. #define RT_USING_SMALL_MEM_AS_HEAP
  61. #define RT_USING_HEAP
  62. /* Kernel Device Object */
  63. #define RT_USING_DEVICE
  64. #define RT_USING_CONSOLE
  65. #define RT_CONSOLEBUF_SIZE 128
  66. #define RT_CONSOLE_DEVICE_NAME "uart0"
  67. #define RT_VER_NUM 0x50000
  68. /* RT-Thread Components */
  69. #define RT_USING_COMPONENTS_INIT
  70. #define RT_USING_USER_MAIN
  71. #define RT_MAIN_THREAD_STACK_SIZE 2048
  72. #define RT_MAIN_THREAD_PRIORITY 10
  73. #define RT_USING_MSH
  74. #define RT_USING_FINSH
  75. #define FINSH_USING_MSH
  76. #define FINSH_THREAD_NAME "tshell"
  77. #define FINSH_THREAD_PRIORITY 20
  78. #define FINSH_THREAD_STACK_SIZE 4096
  79. #define FINSH_USING_HISTORY
  80. #define FINSH_HISTORY_LINES 5
  81. #define FINSH_USING_SYMTAB
  82. #define FINSH_CMD_SIZE 80
  83. #define MSH_USING_BUILT_IN_COMMANDS
  84. #define FINSH_USING_DESCRIPTION
  85. #define FINSH_ARG_MAX 10
  86. /* Device Drivers */
  87. #define RT_USING_DEVICE_IPC
  88. #define RT_UNAMED_PIPE_NUMBER 64
  89. #define RT_USING_SERIAL
  90. #define RT_USING_SERIAL_V1
  91. #define RT_SERIAL_USING_DMA
  92. #define RT_SERIAL_RB_BUFSZ 64
  93. #define RT_USING_HWTIMER
  94. #define RT_USING_I2C
  95. #define RT_USING_I2C_BITOPS
  96. #define RT_USING_PIN
  97. #define RT_USING_ADC
  98. #define RT_USING_PWM
  99. #define RT_USING_RTC
  100. #define RT_USING_SPI
  101. #define RT_USING_WDT
  102. /* Using USB */
  103. /* C/C++ and POSIX layer */
  104. #define RT_LIBC_DEFAULT_TIMEZONE 8
  105. /* POSIX (Portable Operating System Interface) layer */
  106. /* Interprocess Communication (IPC) */
  107. /* Socket is in the 'Network' category */
  108. /* Network */
  109. /* Utilities */
  110. /* RT-Thread Utestcases */
  111. /* RT-Thread online packages */
  112. /* IoT - internet of things */
  113. /* Wi-Fi */
  114. /* Marvell WiFi */
  115. /* Wiced WiFi */
  116. /* IoT Cloud */
  117. /* security packages */
  118. /* language packages */
  119. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  120. /* XML: Extensible Markup Language */
  121. /* multimedia packages */
  122. /* LVGL: powerful and easy-to-use embedded GUI library */
  123. /* u8g2: a monochrome graphic library */
  124. /* PainterEngine: A cross-platform graphics application framework written in C language */
  125. /* tools packages */
  126. /* system packages */
  127. /* enhanced kernel services */
  128. /* POSIX extension functions */
  129. /* acceleration: Assembly language or algorithmic acceleration packages */
  130. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  131. /* Micrium: Micrium software products porting for RT-Thread */
  132. /* peripheral libraries and drivers */
  133. #define PKG_USING_NRFX
  134. #define PKG_USING_NRFX_LATEST_VERSION
  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. #endif