rtconfig.h 3.9 KB

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