Start the h5 threads from main instead of via uart device init
This commit is contained in:
parent
34a40c8180
commit
8797feba2f
|
@ -704,8 +704,6 @@ static int h5_open(struct device *unused)
|
|||
|
||||
uart_irq_callback_set(hci_uart_dev, bt_uart_isr);
|
||||
|
||||
h5_init();
|
||||
|
||||
uart_irq_rx_enable(hci_uart_dev);
|
||||
|
||||
return 0;
|
||||
|
@ -901,6 +899,8 @@ void main(void)
|
|||
bt_enable_raw(&h5.host_queue);
|
||||
struct net_buf *buf = NULL;
|
||||
|
||||
h5_init();
|
||||
|
||||
while (true) {
|
||||
buf = net_buf_get(&h5.host_queue, K_FOREVER);
|
||||
|
||||
|
|
Loading…
Reference in New Issue