Kconfig 17 KB

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