hci.c (d6596031ae576ad9f7b3aa7e1891e1134919a11c) hci.c (f9fd20c2db12eb04dce3fa044720f18b66f6c5dc)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 1420 unchanged lines hidden (view full) ---

1429 hci_stack->state = HCI_STATE_WORKING;
1430 hci_emit_state();
1431}
1432
1433// assumption: hci_can_send_command_packet_now() == true
1434static void hci_initializing_run(void){
1435 log_debug("hci_initializing_run: substate %u, can send %u", hci_stack->substate, hci_can_send_command_packet_now());
1436
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 1420 unchanged lines hidden (view full) ---

1429 hci_stack->state = HCI_STATE_WORKING;
1430 hci_emit_state();
1431}
1432
1433// assumption: hci_can_send_command_packet_now() == true
1434static void hci_initializing_run(void){
1435 log_debug("hci_initializing_run: substate %u, can send %u", hci_stack->substate, hci_can_send_command_packet_now());
1436
1437 bool need_baud_change = false;
1438
1439#ifndef HAVE_HOST_CONTROLLER_API
1437#ifndef HAVE_HOST_CONTROLLER_API
1440 need_baud_change = hci_stack->config
1438 bool need_baud_change = hci_stack->config
1441 && hci_stack->chipset
1442 && hci_stack->chipset->set_baudrate_command
1443 && hci_stack->hci_transport->set_baudrate
1444 && ((hci_transport_config_uart_t *)hci_stack->config)->baudrate_main;
1445#endif
1446
1447 switch (hci_stack->substate){
1448 case HCI_INIT_SEND_RESET:

--- 5486 unchanged lines hidden ---
1439 && hci_stack->chipset
1440 && hci_stack->chipset->set_baudrate_command
1441 && hci_stack->hci_transport->set_baudrate
1442 && ((hci_transport_config_uart_t *)hci_stack->config)->baudrate_main;
1443#endif
1444
1445 switch (hci_stack->substate){
1446 case HCI_INIT_SEND_RESET:

--- 5486 unchanged lines hidden ---