From 341c09ee6e9a5dc2ac566e235217a857c1ae3117 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 2 Dec 2016 17:27:48 +0100 Subject: [PATCH] windows: re-enable support for bcm chipsets and stdin support --- port/windows-h4/main.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/port/windows-h4/main.c b/port/windows-h4/main.c index b4373c3c5..034b72f8c 100644 --- a/port/windows-h4/main.c +++ b/port/windows-h4/main.c @@ -16,7 +16,7 @@ #include "hal_led.h" #include "btstack_link_key_db_fs.h" -// #include "stdin_support.h" +#include "stdin_support.h" #include "btstack_chipset_bcm.h" #include "btstack_chipset_csr.h" @@ -46,10 +46,9 @@ void hal_led_toggle(void){ static void sigint_handler(int param){ -#ifndef _WIN32 - // reset anyway + // reset even if not setup before btstack_stdin_reset(); -#endif + log_info(" <= SIGINT received, shutting down..\n"); // hci_power_control(HCI_POWER_OFF); // hci_close(); @@ -71,11 +70,9 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack // terminate, name 248 chars packet[6+248] = 0; printf("Local name: %s\n", &packet[6]); -#if 0 if (is_bcm){ btstack_chipset_bcm_set_device_name((const char *)&packet[6]); } -#endif } break; default: @@ -117,14 +114,10 @@ static void local_version_information_callback(uint8_t * packet){ #endif break; case COMPANY_ID_BROADCOM_CORPORATION: - printf("Broadcom - not supported on Windows yet.\n"); -#if 0 printf("Broadcom - using BCM driver.\n"); hci_set_chipset(btstack_chipset_bcm_instance()); use_fast_uart(); is_bcm = 1; -#else -#endif break; case COMPANY_ID_ST_MICROELECTRONICS: printf("ST Microelectronics - using STLC2500d driver.\n");