Searched refs:hci_uart_dev (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/samples/bluetooth/hci_uart/src/ |
D | main.c | 35 static const struct device *const hci_uart_dev = variable 126 read = h4_read(hci_uart_dev, &type, sizeof(type)); in rx_isr() 143 read = h4_read(hci_uart_dev, in rx_isr() 175 read = h4_read(hci_uart_dev, net_buf_tail(buf), in rx_isr() 191 read = h4_read(hci_uart_dev, discard, to_read); in rx_isr() 217 uart_irq_tx_disable(hci_uart_dev); in tx_isr() 222 len = uart_fifo_fill(hci_uart_dev, buf->data, buf->len); in tx_isr() 235 while (uart_irq_update(hci_uart_dev) && uart_irq_is_pending(hci_uart_dev)) { in bt_uart_isr() 236 if (!(uart_irq_rx_ready(hci_uart_dev) || in bt_uart_isr() 237 uart_irq_tx_ready(hci_uart_dev))) { in bt_uart_isr() [all …]
|
/Zephyr-latest/samples/boards/st/bluetooth/interactive_gui/src/ |
D | main.c | 36 static const struct device *const hci_uart_dev = variable 252 read = h4_read(hci_uart_dev, &type, sizeof(type)); in rx_isr() 269 read = h4_read(hci_uart_dev, &hdr_buf[hdr_len(type) - remaining], in rx_isr() 311 read = h4_read(hci_uart_dev, net_buf_tail(buf), remaining); in rx_isr() 325 read = h4_read(hci_uart_dev, discard, to_read); in rx_isr() 348 uart_irq_tx_disable(hci_uart_dev); in tx_isr() 352 len = uart_fifo_fill(hci_uart_dev, buf->data, buf->len); in tx_isr() 365 if (!(uart_irq_rx_ready(hci_uart_dev) || uart_irq_tx_ready(hci_uart_dev))) { in bt_uart_isr() 368 if (uart_irq_tx_ready(hci_uart_dev)) { in bt_uart_isr() 371 if (uart_irq_rx_ready(hci_uart_dev)) { in bt_uart_isr() [all …]
|
/Zephyr-latest/samples/bluetooth/hci_uart_async/src/ |
D | hci_uart_async.c | 34 static const struct device *const hci_uart_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_bt_c2h_uart)); variable 62 err = uart_tx(hci_uart_dev, data, size, SYS_FOREVER_US); in uart_c2h_tx() 130 err = uart_rx_enable(hci_uart_dev, dst, size, SYS_FOREVER_US); in uart_h2c_rx() 341 if (!device_is_ready(hci_uart_dev)) { in hci_uart_init() 342 LOG_ERR("HCI UART %s is not ready", hci_uart_dev->name); in hci_uart_init() 347 err = uart_callback_set(hci_uart_dev, callback, NULL); in hci_uart_init()
|