@@ -197,3 +197,64 @@ config BT_BLE_LOG_SPI_OUT_MESH_TASK_CNT
197197 default 3
198198 help
199199 Mesh task count
200+
201+ config BT_BLE_LOG_UHCI_OUT_ENABLED
202+ bool "Output ble logs via UHCI (UART DMA) driver (Experimental)"
203+ default n
204+ help
205+ Output ble logs via UHCI (UART DMA) driver
206+ On enable, BT_BLE_LOG_UHCI_OUT_UART_PORT would be reinited with
207+ BT_BLE_LOG_UHCI_OUT_UART_BAUD_RATE as new baud rate and
208+ BT_BLE_LOG_UHCI_OUT_UART_IO_NUM_TX as new UART Tx IO
209+
210+ config BT_BLE_LOG_UHCI_OUT_UART_PORT
211+ int "UART port connected to UHCI controller"
212+ depends on BT_BLE_LOG_UHCI_OUT_ENABLED
213+ default 0
214+ help
215+ UART port connected to UHCI controller
216+ If UART port 0 is selected, UART VFS Driver, UART ROM Driver
217+ and UART Driver output would be redirected to BLE Log UHCI Out
218+ to solve UART Tx FIFO multi-task access issue
219+
220+ config BT_BLE_LOG_UHCI_OUT_LL_TASK_BUF_SIZE
221+ int "UHCI transaction buffer size for lower layer task logs"
222+ depends on BT_BLE_LOG_UHCI_OUT_ENABLED
223+ default 1024
224+ help
225+ UHCI transaction buffer size for lower layer task logs
226+
227+ config BT_BLE_LOG_UHCI_OUT_LL_ISR_BUF_SIZE
228+ int "UHCI transaction buffer size for lower layer ISR logs"
229+ depends on BT_BLE_LOG_UHCI_OUT_ENABLED
230+ default 1024
231+ help
232+ UHCI transaction buffer size for lower layer ISR logs
233+
234+ config BT_BLE_LOG_UHCI_OUT_LL_HCI_BUF_SIZE
235+ int "UHCI transaction buffer size for lower layer HCI logs"
236+ depends on BT_BLE_LOG_UHCI_OUT_ENABLED
237+ default 1024
238+ help
239+ UHCI transaction buffer size for lower layer HCI logs
240+
241+ config BT_BLE_LOG_UHCI_OUT_UART_NEED_INIT
242+ bool "Enable to init UART port"
243+ depends on BT_BLE_LOG_UHCI_OUT_ENABLED
244+ default y
245+ help
246+ Enable to init UART port
247+
248+ config BT_BLE_LOG_UHCI_OUT_UART_BAUD_RATE
249+ int "Baud rate for BT_BLE_LOG_UHCI_OUT_UART_PORT"
250+ depends on BT_BLE_LOG_UHCI_OUT_UART_NEED_INIT
251+ default 3000000
252+ help
253+ Baud rate for BT_BLE_LOG_UHCI_OUT_UART_PORT
254+
255+ config BT_BLE_LOG_UHCI_OUT_UART_IO_NUM_TX
256+ int "IO number for UART TX port"
257+ depends on BT_BLE_LOG_UHCI_OUT_UART_NEED_INIT
258+ default 0
259+ help
260+ IO number for UART TX port
0 commit comments