From cefc7452c9ffc9843c6c9bed10a3bb64f525c738 Mon Sep 17 00:00:00 2001 From: Volodymyr Medvid Date: Fri, 15 Feb 2019 14:35:52 +0200 Subject: [PATCH] PSOC6: do not reconfigure BT GPIO pins in CYW43XXX HCIDriver --- .../targets/TARGET_Cypress/TARGET_CYW43XXX/HCIDriver.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/features/FEATURE_BLE/targets/TARGET_Cypress/TARGET_CYW43XXX/HCIDriver.cpp b/features/FEATURE_BLE/targets/TARGET_Cypress/TARGET_CYW43XXX/HCIDriver.cpp index 3b5bf8ef50..3288b568e0 100644 --- a/features/FEATURE_BLE/targets/TARGET_Cypress/TARGET_CYW43XXX/HCIDriver.cpp +++ b/features/FEATURE_BLE/targets/TARGET_Cypress/TARGET_CYW43XXX/HCIDriver.cpp @@ -75,11 +75,10 @@ public: virtual void do_initialize() { - - Cy_GPIO_Clr(BT_DEVICE_WAKE_PORT, BT_DEVICE_WAKE_PIN); + bt_device_wake = 0; wait_ms(500); - Cy_GPIO_Set(BT_POWER_PORT, BT_POWER_PIN); + bt_power = 1; wait_ms(500); }