xiaoxiang781216 commented on pull request #2566: URL: https://github.com/apache/incubator-nuttx/pull/2566#issuecomment-750726828
@Virus-V NuttX already provide a generic driver to adapter tty device(either real or pseduo) to native bluetooth stack: https://github.com/apache/incubator-nuttx/blob/master/include/nuttx/wireless/bluetooth/bt_uart_shim.h https://github.com/apache/incubator-nuttx/blob/master/drivers/wireless/bluetooth/bt_uart_shim.c Simply call bt_uart_shim_getdevice and btuart_register in soc or board initilize routine: btuart_register(bt_uart_shim_getdevice("/dev/ttyXXX")); ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org