Kconfig 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
  1. config SOC_SERIES_NUC980
  2. bool
  3. select ARCH_ARM_ARM9
  4. select SOC_FAMILY_NUMICRO
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. config BSP_USE_STDDRIVER_SOURCE
  9. bool "Build StdDriver source"
  10. default n
  11. config BSP_USING_MMU
  12. bool "Enable MMU"
  13. select ARCH_ARM_MMU
  14. default y
  15. menuconfig BSP_USING_PDMA
  16. bool "Enable Peripheral Direct Memory Access Controller(PDMA)"
  17. default y
  18. if BSP_USING_PDMA
  19. config NU_PDMA_MEMFUN_ACTOR_MAX
  20. int "Specify maximum mem actor for memfun"
  21. range 1 4
  22. default 2
  23. endif
  24. config BSP_USING_GPIO
  25. bool "Enable General Purpose I/O(GPIO)"
  26. select RT_USING_PIN
  27. default y
  28. menuconfig BSP_USING_EMAC
  29. bool "Enable Ethernet MAC Controller(EMAC)"
  30. select RT_USING_LWIP
  31. select RT_USING_NETDEV
  32. if BSP_USING_EMAC
  33. config BSP_USING_EMAC0
  34. bool "Enable EMAC0"
  35. config BSP_USING_EMAC1
  36. bool "Enable EMAC1"
  37. config NU_EMAC_PDMA_MEMCOPY
  38. bool "Use PDMA for data transferring"
  39. select BSP_USING_PDMA
  40. default y
  41. config NU_EMAC_PDMA_MEMCOPY_THRESHOLD
  42. int "Min threshold to do PDMA memcpy"
  43. range 32 1500
  44. default 128
  45. depends on NU_EMAC_PDMA_MEMCOPY
  46. endif
  47. menuconfig BSP_USING_RTC
  48. bool "Enable Real Time Clock(RTC)"
  49. select RT_USING_RTC
  50. config NU_RTC_SUPPORT_IO_RW
  51. bool "Support device RW entry"
  52. depends on BSP_USING_RTC && RT_USING_RTC
  53. config NU_RTC_SUPPORT_MSH_CMD
  54. bool "Support module shell command"
  55. depends on BSP_USING_RTC && RT_USING_RTC
  56. menuconfig BSP_USING_ADC
  57. bool "Enable Analog-to-Digital Converter(ADC)"
  58. select RT_USING_ADC
  59. if BSP_USING_ADC
  60. config BSP_USING_ADC_TOUCH
  61. bool "Enable ADC Touching function"
  62. select RT_USING_TOUCH
  63. default n
  64. endif
  65. menuconfig BSP_USING_TMR
  66. bool "Enable Timer Controller(TIMER)"
  67. if BSP_USING_TMR
  68. config BSP_USING_TIMER
  69. bool
  70. config BSP_USING_TPWM
  71. bool
  72. config BSP_USING_TIMER_CAPTURE
  73. bool
  74. config BSP_USING_TMR0
  75. bool "Enable TIMER0"
  76. depends on BSP_USING_TMR
  77. if BSP_USING_TMR0
  78. choice
  79. prompt "Select TIMER0 function mode"
  80. config BSP_USING_TIMER0
  81. select BSP_USING_TIMER
  82. select RT_USING_HWTIMER
  83. bool "TIMER"
  84. help
  85. Choose this option if you need TIMER function mode.
  86. config BSP_USING_TIMER0_CAPTURE
  87. select BSP_USING_TIMER_CAPTURE
  88. select RT_USING_INPUT_CAPTURE
  89. bool "TIMER CAPTURE"
  90. help
  91. Choose this option if you need CAPTURE function mode.
  92. endchoice
  93. endif
  94. config BSP_USING_TMR1
  95. bool "Enable TIMER1"
  96. depends on BSP_USING_TMR
  97. if BSP_USING_TMR1
  98. choice
  99. prompt "Select TIMER1 function mode"
  100. config BSP_USING_TIMER1
  101. select BSP_USING_TIMER
  102. select RT_USING_HWTIMER
  103. bool "TIMER"
  104. help
  105. Choose this option if you need TIMER function mode.
  106. config BSP_USING_TIMER1_CAPTURE
  107. select BSP_USING_TIMER_CAPTURE
  108. select RT_USING_INPUT_CAPTURE
  109. bool "TIMER CAPTURE"
  110. help
  111. Choose this option if you need CAPTURE function mode.
  112. endchoice
  113. endif
  114. config BSP_USING_TMR2
  115. bool "Enable TIMER2"
  116. depends on BSP_USING_TMR
  117. if BSP_USING_TMR2
  118. choice
  119. prompt "Select TIMER2 function mode"
  120. config BSP_USING_TIMER2
  121. select BSP_USING_TIMER
  122. select RT_USING_HWTIMER
  123. bool "TIMER"
  124. help
  125. Choose this option if you need TIMER function mode.
  126. config BSP_USING_TIMER2_CAPTURE
  127. select BSP_USING_TIMER_CAPTURE
  128. select RT_USING_INPUT_CAPTURE
  129. bool "TIMER CAPTURE"
  130. help
  131. Choose this option if you need CAPTURE function mode.
  132. endchoice
  133. endif
  134. config BSP_USING_TMR3
  135. bool "Enable TIMER3"
  136. depends on BSP_USING_TMR
  137. if BSP_USING_TMR3
  138. choice
  139. prompt "Select TIMER3 function mode"
  140. config BSP_USING_TIMER3
  141. select BSP_USING_TIMER
  142. select RT_USING_HWTIMER
  143. bool "TIMER"
  144. help
  145. Choose this option if you need TIMER function mode.
  146. config BSP_USING_TIMER3_CAPTURE
  147. select BSP_USING_TIMER_CAPTURE
  148. select RT_USING_INPUT_CAPTURE
  149. bool "TIMER CAPTURE"
  150. help
  151. Choose this option if you need CAPTURE function mode.
  152. endchoice
  153. endif
  154. config BSP_USING_TMR4
  155. bool "Enable TIMER4"
  156. depends on BSP_USING_TMR
  157. if BSP_USING_TMR4
  158. choice
  159. prompt "Select TIMER4 function mode"
  160. config BSP_USING_TIMER4
  161. select BSP_USING_TIMER
  162. select RT_USING_HWTIMER
  163. bool "TIMER"
  164. help
  165. Choose this option if you need TIMER function mode.
  166. config BSP_USING_TIMER4_CAPTURE
  167. select BSP_USING_TIMER_CAPTURE
  168. select RT_USING_INPUT_CAPTURE
  169. bool "TIMER CAPTURE"
  170. help
  171. Choose this option if you need CAPTURE function mode.
  172. endchoice
  173. endif
  174. endif
  175. menuconfig BSP_USING_UART
  176. bool "Enable Universal Asynchronous Receiver/Transmitters(UART)"
  177. select RT_USING_SERIAL
  178. if BSP_USING_UART
  179. config BSP_USING_UART0
  180. bool "Enable UART0"
  181. config BSP_USING_UART0_TX_DMA
  182. bool "Enable UART0 TX DMA"
  183. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  184. config BSP_USING_UART0_RX_DMA
  185. bool "Enable UART0 RX DMA"
  186. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  187. config BSP_USING_UART1
  188. bool "Enable UART1"
  189. config BSP_USING_UART1_TX_DMA
  190. bool "Enable UART1 TX DMA"
  191. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  192. config BSP_USING_UART1_RX_DMA
  193. bool "Enable UART1 RX DMA"
  194. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  195. config BSP_USING_UART2
  196. bool "Enable UART2"
  197. config BSP_USING_UART2_TX_DMA
  198. bool "Enable UART2 TX DMA"
  199. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  200. config BSP_USING_UART2_RX_DMA
  201. bool "Enable UART2 RX DMA"
  202. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  203. config BSP_USING_UART3
  204. bool "Enable UART3"
  205. config BSP_USING_UART3_TX_DMA
  206. bool "Enable UART3 TX DMA"
  207. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  208. config BSP_USING_UART3_RX_DMA
  209. bool "Enable UART3 RX DMA"
  210. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  211. config BSP_USING_UART4
  212. bool "Enable UART4"
  213. config BSP_USING_UART4_TX_DMA
  214. bool "Enable UART4 TX DMA"
  215. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  216. config BSP_USING_UART4_RX_DMA
  217. bool "Enable UART4 RX DMA"
  218. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  219. config BSP_USING_UART5
  220. bool "Enable UART5"
  221. config BSP_USING_UART5_TX_DMA
  222. bool "Enable UART5 TX DMA"
  223. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  224. config BSP_USING_UART5_RX_DMA
  225. bool "Enable UART5 RX DMA"
  226. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  227. config BSP_USING_UART6
  228. bool "Enable UART6"
  229. config BSP_USING_UART6_TX_DMA
  230. bool "Enable UART6 TX DMA"
  231. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  232. config BSP_USING_UART6_RX_DMA
  233. bool "Enable UART6 RX DMA"
  234. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  235. config BSP_USING_UART7
  236. bool "Enable UART7"
  237. config BSP_USING_UART7_TX_DMA
  238. bool "Enable UART7 TX DMA"
  239. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  240. config BSP_USING_UART7_RX_DMA
  241. bool "Enable UART7 RX DMA"
  242. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  243. config BSP_USING_UART8
  244. bool "Enable UART8"
  245. config BSP_USING_UART8_TX_DMA
  246. bool "Enable UART8 TX DMA"
  247. depends on BSP_USING_UART8 && RT_SERIAL_USING_DMA
  248. config BSP_USING_UART8_RX_DMA
  249. bool "Enable UART8 RX DMA"
  250. depends on BSP_USING_UART8 && RT_SERIAL_USING_DMA
  251. config BSP_USING_UART9
  252. bool "Enable UART9"
  253. config BSP_USING_UART9_TX_DMA
  254. bool "Enable UART9 TX DMA"
  255. depends on BSP_USING_UART9 && RT_SERIAL_USING_DMA
  256. config BSP_USING_UART9_RX_DMA
  257. bool "Enable UART9 RX DMA"
  258. depends on BSP_USING_UART9 && RT_SERIAL_USING_DMA
  259. endif
  260. menuconfig BSP_USING_I2C
  261. bool "Enable I2C Serial Interface Controller(I2C)"
  262. select RT_USING_I2C
  263. if BSP_USING_I2C
  264. config BSP_USING_I2C0
  265. bool "Enable I2C0"
  266. config BSP_USING_I2C1
  267. bool "Enable I2C1"
  268. config BSP_USING_I2C2
  269. bool "Enable I2C2"
  270. config BSP_USING_I2C3
  271. bool "Enable I2C3"
  272. endif
  273. menuconfig BSP_USING_SDH
  274. bool "Enable Secure Digital Host Controller(SDH)"
  275. select RT_USING_DFS
  276. select DFS_USING_POSIX
  277. if BSP_USING_SDH
  278. config BSP_USING_SDH0
  279. bool "Enable SDH0"
  280. config BSP_USING_SDH1
  281. bool "Enable SDH1"
  282. config NU_SDH_USING_PDMA
  283. bool "Using PDMA"
  284. select BSP_USING_PDMA
  285. config NU_SDH_HOTPLUG
  286. bool "Using HOTPLUG"
  287. default y
  288. config NU_SDH_MOUNT_ON_ROOT
  289. bool "Mount on root"
  290. endif
  291. menuconfig BSP_USING_CAN
  292. bool "Enable Controller Area Network(CAN)"
  293. select RT_USING_CAN
  294. if BSP_USING_CAN
  295. config BSP_USING_CAN0
  296. bool "Enable CAN0"
  297. config BSP_USING_CAN1
  298. bool "Enable CAN1"
  299. config BSP_USING_CAN2
  300. bool "Enable CAN2"
  301. config BSP_USING_CAN3
  302. bool "Enable CAN3"
  303. endif
  304. menuconfig BSP_USING_PWM
  305. bool "Enable PWM Generator (PWM)"
  306. select RT_USING_PWM
  307. if BSP_USING_PWM
  308. config BSP_USING_PWM0
  309. select RT_USING_PWM
  310. bool "Enable PWM0"
  311. help
  312. Choose this option if you need PWM function mode.
  313. config BSP_USING_PWM1
  314. select RT_USING_PWM
  315. bool "Enable PWM1"
  316. help
  317. Choose this option if you need PWM function mode.
  318. endif
  319. menuconfig BSP_USING_SPI
  320. bool "Enable Serial Peripheral Interface(SPI)"
  321. select RT_USING_SPI
  322. if BSP_USING_SPI
  323. config BSP_USING_SPI_PDMA
  324. bool
  325. default n
  326. choice
  327. prompt "Select SPI0 function mode"
  328. config BSP_USING_SPI0_NONE
  329. bool "NONE"
  330. help
  331. Choose this option if you need not SPI0.
  332. config BSP_USING_SPI0
  333. bool "Enable SPI0"
  334. help
  335. Choose this option if you need SPI function mode.
  336. endchoice
  337. if BSP_USING_SPI0
  338. config BSP_USING_SPI0_PDMA
  339. bool "Enable PDMA for SPI0"
  340. select BSP_USING_SPI_PDMA
  341. depends on BSP_USING_SPI0
  342. endif
  343. choice
  344. prompt "Select SPI1 function mode"
  345. config BSP_USING_SPI1_NONE
  346. bool "NONE"
  347. help
  348. Choose this option if you need not SPI1.
  349. config BSP_USING_SPI1
  350. bool "Enable SPI1"
  351. help
  352. Choose this option if you need SPI function mode.
  353. endchoice
  354. if BSP_USING_SPI1
  355. config BSP_USING_SPI1_PDMA
  356. bool "Enable PDMA for SPI1"
  357. select BSP_USING_SPI_PDMA
  358. depends on BSP_USING_SPI1
  359. endif
  360. endif
  361. config BSP_USING_I2S
  362. bool "Enable I2S Controller(I2S)"
  363. select RT_USING_AUDIO
  364. if BSP_USING_I2S
  365. config NU_I2S_DMA_FIFO_SIZE
  366. int "DMA Buffer size of capture and playback"
  367. range 2048 4096
  368. default 2048
  369. endif
  370. menuconfig BSP_USING_QSPI
  371. bool "Enable Quad Serial Peripheral Interface(QSPI)"
  372. select RT_USING_SPI
  373. select RT_USING_QSPI
  374. select BSP_USING_SPI
  375. if BSP_USING_QSPI
  376. config BSP_USING_QSPI_PDMA
  377. bool
  378. select BSP_USING_SPI_PDMA
  379. default n
  380. config BSP_USING_QSPI0
  381. bool "Enable QSPI0"
  382. config BSP_USING_QSPI0_PDMA
  383. bool "Enable PDMA for QSPI0"
  384. select BSP_USING_QSPI_PDMA
  385. depends on BSP_USING_QSPI0
  386. endif
  387. menuconfig BSP_USING_SCUART
  388. bool "Enable Smart Card Host Interface - UART(SCUART)"
  389. if BSP_USING_SCUART
  390. config BSP_USING_SCUART0
  391. bool "Enable SCUART0"
  392. config BSP_USING_SCUART1
  393. bool "Enable SCUART1"
  394. config BSP_USING_SCUART2
  395. bool "Enable SCUART2"
  396. endif
  397. menuconfig BSP_USING_CRYPTO
  398. bool "Enable Cryptographic Accelerator(CRYPTO)"
  399. select RT_USING_HWCRYPTO
  400. select RT_HWCRYPTO_USING_AES
  401. select RT_HWCRYPTO_USING_AES_ECB
  402. select RT_HWCRYPTO_USING_AES_CBC
  403. select RT_HWCRYPTO_USING_AES_CFB
  404. select RT_HWCRYPTO_USING_AES_CTR
  405. select RT_HWCRYPTO_USING_AES_CFB
  406. select RT_HWCRYPTO_USING_AES_OFB
  407. select RT_HWCRYPTO_USING_SHA1
  408. select RT_HWCRYPTO_USING_SHA2
  409. select RT_HWCRYPTO_USING_SHA2_224
  410. select RT_HWCRYPTO_USING_SHA2_256
  411. select RT_HWCRYPTO_USING_SHA2_384
  412. select RT_HWCRYPTO_USING_SHA2_512
  413. select RT_HWCRYPTO_USING_RNG
  414. if BSP_USING_CRYPTO
  415. config NU_PRNG_USE_SEED
  416. bool "Use specified seed value."
  417. help
  418. Specify the seed value to PRNG.
  419. if NU_PRNG_USE_SEED
  420. config NU_PRNG_SEED_VALUE
  421. hex "Enter seed value"
  422. range 0 0xFFFFFFFF
  423. default 0
  424. endif
  425. endif
  426. menuconfig BSP_USING_SOFT_I2C
  427. bool "Enable SOFT I2C"
  428. if BSP_USING_SOFT_I2C
  429. config BSP_USING_SOFT_I2C0
  430. bool "Enable SOFT I2C0"
  431. select RT_USING_I2C
  432. select RT_USING_I2C_BITOPS
  433. default n
  434. if BSP_USING_SOFT_I2C0
  435. config BSP_SOFT_I2C0_SCL_PIN
  436. hex "Specify the pin index of SCL of SOFT I2C0"
  437. range 0 0x7F
  438. default 0x18
  439. config BSP_SOFT_I2C0_SDA_PIN
  440. hex "Specify the pin index of SDA of SOFT I2C0"
  441. range 0 0x7F
  442. default 0x17
  443. endif
  444. config BSP_USING_SOFT_I2C1
  445. bool "Enable SOFT I2C1"
  446. select RT_USING_I2C
  447. select RT_USING_I2C_BITOPS
  448. default n
  449. if BSP_USING_SOFT_I2C1
  450. config BSP_SOFT_I2C1_SCL_PIN
  451. hex "Specify the pin index of SCL of SOFT I2C1"
  452. range 0 0x7F
  453. default 0x0B
  454. config BSP_SOFT_I2C1_SDA_PIN
  455. hex "Specify the pin index of SDA of SOFT I2C1"
  456. range 0 0x7F
  457. default 0x0A
  458. endif
  459. endif
  460. config BSP_USING_WDT
  461. bool "Enable Watchdog Timer(WDT)"
  462. select RT_USING_WDT
  463. default y
  464. config BSP_USING_EBI
  465. bool "Enable External Bus Interface(EBI)"
  466. default n
  467. config BSP_USING_USBD
  468. bool "Enable USB Device Controller(USBD)"
  469. select RT_USING_USB_DEVICE
  470. config BSP_USING_USBH
  471. bool "Enable USB Host Controller(USBH)"
  472. select RT_USING_USB_HOST
  473. select RT_USBH_MSTORAGE