1
0
Fork 0

Start the h5 threads from main instead of via uart device init

This commit is contained in:
Shawn Nock 2019-07-18 12:28:00 -04:00
parent 34a40c8180
commit 8797feba2f
1 changed files with 2 additions and 2 deletions

View File

@ -704,8 +704,6 @@ static int h5_open(struct device *unused)
uart_irq_callback_set(hci_uart_dev, bt_uart_isr); uart_irq_callback_set(hci_uart_dev, bt_uart_isr);
h5_init();
uart_irq_rx_enable(hci_uart_dev); uart_irq_rx_enable(hci_uart_dev);
return 0; return 0;
@ -901,6 +899,8 @@ void main(void)
bt_enable_raw(&h5.host_queue); bt_enable_raw(&h5.host_queue);
struct net_buf *buf = NULL; struct net_buf *buf = NULL;
h5_init();
while (true) { while (true) {
buf = net_buf_get(&h5.host_queue, K_FOREVER); buf = net_buf_get(&h5.host_queue, K_FOREVER);