mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-18 23:42:39 +00:00
windows: re-enable support for bcm chipsets and stdin support
This commit is contained in:
parent
9ed5a9efe4
commit
341c09ee6e
@ -16,7 +16,7 @@
|
|||||||
#include "hal_led.h"
|
#include "hal_led.h"
|
||||||
#include "btstack_link_key_db_fs.h"
|
#include "btstack_link_key_db_fs.h"
|
||||||
|
|
||||||
// #include "stdin_support.h"
|
#include "stdin_support.h"
|
||||||
|
|
||||||
#include "btstack_chipset_bcm.h"
|
#include "btstack_chipset_bcm.h"
|
||||||
#include "btstack_chipset_csr.h"
|
#include "btstack_chipset_csr.h"
|
||||||
@ -46,10 +46,9 @@ void hal_led_toggle(void){
|
|||||||
|
|
||||||
static void sigint_handler(int param){
|
static void sigint_handler(int param){
|
||||||
|
|
||||||
#ifndef _WIN32
|
// reset even if not setup before
|
||||||
// reset anyway
|
|
||||||
btstack_stdin_reset();
|
btstack_stdin_reset();
|
||||||
#endif
|
|
||||||
log_info(" <= SIGINT received, shutting down..\n");
|
log_info(" <= SIGINT received, shutting down..\n");
|
||||||
// hci_power_control(HCI_POWER_OFF);
|
// hci_power_control(HCI_POWER_OFF);
|
||||||
// hci_close();
|
// hci_close();
|
||||||
@ -71,11 +70,9 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
|||||||
// terminate, name 248 chars
|
// terminate, name 248 chars
|
||||||
packet[6+248] = 0;
|
packet[6+248] = 0;
|
||||||
printf("Local name: %s\n", &packet[6]);
|
printf("Local name: %s\n", &packet[6]);
|
||||||
#if 0
|
|
||||||
if (is_bcm){
|
if (is_bcm){
|
||||||
btstack_chipset_bcm_set_device_name((const char *)&packet[6]);
|
btstack_chipset_bcm_set_device_name((const char *)&packet[6]);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -117,14 +114,10 @@ static void local_version_information_callback(uint8_t * packet){
|
|||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case COMPANY_ID_BROADCOM_CORPORATION:
|
case COMPANY_ID_BROADCOM_CORPORATION:
|
||||||
printf("Broadcom - not supported on Windows yet.\n");
|
|
||||||
#if 0
|
|
||||||
printf("Broadcom - using BCM driver.\n");
|
printf("Broadcom - using BCM driver.\n");
|
||||||
hci_set_chipset(btstack_chipset_bcm_instance());
|
hci_set_chipset(btstack_chipset_bcm_instance());
|
||||||
use_fast_uart();
|
use_fast_uart();
|
||||||
is_bcm = 1;
|
is_bcm = 1;
|
||||||
#else
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
case COMPANY_ID_ST_MICROELECTRONICS:
|
case COMPANY_ID_ST_MICROELECTRONICS:
|
||||||
printf("ST Microelectronics - using STLC2500d driver.\n");
|
printf("ST Microelectronics - using STLC2500d driver.\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user