rtconfig.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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_USING_IDLE_HOOK
  40. #define RT_IDLE_HOOK_LIST_SIZE 4
  41. #define IDLE_THREAD_STACK_SIZE 256
  42. #define RT_USING_TIMER_SOFT
  43. #define RT_TIMER_THREAD_PRIO 4
  44. #define RT_TIMER_THREAD_STACK_SIZE 512
  45. /* kservice optimization */
  46. /* Inter-Thread communication */
  47. #define RT_USING_SEMAPHORE
  48. #define RT_USING_MUTEX
  49. #define RT_USING_EVENT
  50. /* Memory Management */
  51. #define RT_USING_MEMPOOL
  52. #define RT_USING_SMALL_MEM
  53. #define RT_USING_HEAP
  54. /* Kernel Device Object */
  55. #define RT_USING_DEVICE
  56. #define RT_USING_CONSOLE
  57. #define RT_CONSOLEBUF_SIZE 128
  58. #define RT_CONSOLE_DEVICE_NAME "uart0"
  59. #define RT_VER_NUM 0x40004
  60. /* RT-Thread Components */
  61. #define RT_USING_COMPONENTS_INIT
  62. #define RT_USING_USER_MAIN
  63. #define RT_MAIN_THREAD_STACK_SIZE 2048
  64. #define RT_MAIN_THREAD_PRIORITY 10
  65. /* C++ features */
  66. /* Command shell */
  67. #define RT_USING_FINSH
  68. #define FINSH_THREAD_NAME "tshell"
  69. #define FINSH_USING_HISTORY
  70. #define FINSH_HISTORY_LINES 5
  71. #define FINSH_USING_SYMTAB
  72. #define FINSH_USING_DESCRIPTION
  73. #define FINSH_THREAD_PRIORITY 20
  74. #define FINSH_THREAD_STACK_SIZE 4096
  75. #define FINSH_CMD_SIZE 80
  76. #define FINSH_USING_MSH
  77. #define FINSH_USING_MSH_DEFAULT
  78. #define FINSH_ARG_MAX 10
  79. /* Device virtual file system */
  80. /* Device Drivers */
  81. #define RT_USING_DEVICE_IPC
  82. #define RT_PIPE_BUFSZ 512
  83. #define RT_USING_SERIAL
  84. #define RT_SERIAL_RB_BUFSZ 64
  85. #define RT_USING_PIN
  86. /* Using USB */
  87. /* POSIX layer and C standard library */
  88. /* Network */
  89. /* Socket abstraction layer */
  90. /* Network interface device */
  91. /* light weight TCP/IP stack */
  92. /* AT commands */
  93. /* VBUS(Virtual Software BUS) */
  94. /* Utilities */
  95. /* RT-Thread Utestcases */
  96. /* RT-Thread online packages */
  97. /* IoT - internet of things */
  98. /* Wi-Fi */
  99. /* Marvell WiFi */
  100. /* Wiced WiFi */
  101. /* IoT Cloud */
  102. /* security packages */
  103. /* language packages */
  104. /* multimedia packages */
  105. /* tools packages */
  106. /* system packages */
  107. /* acceleration: Assembly language or algorithmic acceleration packages */
  108. /* Micrium: Micrium software products porting for RT-Thread */
  109. /* peripheral libraries and drivers */
  110. #define PKG_USING_NRFX
  111. #define PKG_USING_NRFX_LATEST_VERSION
  112. /* AI packages */
  113. /* miscellaneous packages */
  114. /* samples: kernel and components samples */
  115. /* entertainment: terminal games and other interesting software packages */
  116. #endif