-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CYW43XXX Cordio HCI driver: update BT power up sequences to remove redundant delay (500ms) during HCIDrive initialization #14988
Conversation
@npal-cy, thank you for your changes. |
@@ -103,9 +103,6 @@ class HCIDriver : public CordioHCIDriver { | |||
{ | |||
//Prevent PSoC6 to enter deep-sleep till BT initialization is complete | |||
sleep_manager_lock_deep_sleep(); | |||
rtos::ThisThread::sleep_for(500ms); | |||
bt_power = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to keep bt_power
member variable ? It doesn't seems to be used anymore (except for initialization).
I also noticed that it is initialized differently in the transport (PullNone) from the HCI (PullUp) driver.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @pan,
I updated code according to your comment. Additionally cleaned some indentations (replaced tab to spaces)
Regards,
Nazar
…BT_POWER operation during HCIDrive initialization. Current BT_POWER sequence: 1. BT_POWER=0 ( from CyH4TransportDriver::initialize) 2. delay 1ms ( from CyH4TransportDriver::initialize) 3. BT_POWER=1 ( from CyH4TransportDriver::initialize) 4. delay 500ms (from HCIDriver::do_initialize) 5. BT_POWER=1 (from HCIDriver::do_initialize) 6. delay 500ms (from HCIDriver::do_initialize) updates: 1. remove 4) and 5) 2. keep all BT_POWER operations in one place. The best logic place is CyH4TransportDriver::initialize. So finally the BT_POWER sequences should looks like: 1. BT_POWER=0 ( from CyH4TransportDriver::initialize) 2. delay 1ms ( from CyH4TransportDriver::initialize) 3. BT_POWER=1 ( from CyH4TransportDriver::initialize) 4. delay 500ms ( from CyH4TransportDriver::initialize)
…ver class; 2. set PullUp for bt_power in CyH4TransportDriver; 3. cleanup code: replace tabs to 4 spaces
ce6313c
to
b245445
Compare
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
Update of BT power up sequences to remove redundant delay (500ms) in BT_POWER operation during HCIDrive initialization.
Current BT_POWER sequence:
Suggest to update:
So finally the BT_POWER sequences should looks like:
Depends on: PR#14982
Impact of changes
Migration actions required
Documentation
None
Pull request type
Test results
Reviewers
@ARMmbed/team-cypress
CY8CKIT_062_WIFI_BT-ble-cordio-hci.pdf
CY8CKIT_062S2_43012-full-test.pdf
CY8CPROTO_062_4343W-ble-cordio-hci.pdf
CYW9P62S1_43012EVB_01-ble-cordio-hci.pdf
CYW9P62S1_43438EVB_01-ble-cordio-hci.pdf