-
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
Cypress Cordio BT Driver setting Host MCU active during Host Wake assert #11644
Cypress Cordio BT Driver setting Host MCU active during Host Wake assert #11644
Conversation
…ve for the duration BT device asserts HOST WAKE. This change fixes race condition in Cypress Cordio driver.
@MukundGitHub, thank you for your changes. |
@pan- @donatieng please review |
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.
future reference: It would be easier if these 3 fixes are in separate commits
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.
Once the initialisation issue is fixed it can get in.
@@ -93,6 +94,7 @@ class CyH4TransportDriver : public cordio::CordioHCITransportDriver { | |||
|
|||
DigitalInOut bt_host_wake; | |||
DigitalInOut bt_device_wake; | |||
bool bt_host_wake_active; |
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.
This value should be initialised in the constructor.
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.
Thanks for review feedback. Addressed the feedback with new commit. Please review the changes and approve the PR Merge request.
For future reference, rather than "Address ARM Code review feedback.", just specify what has changed. When we get back to this few days later no one will remember what feedback was it. |
Ci started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
Update Target Cypress Specific Cordio BT Driver to keep Host MCU active for the duration BT device asserts HOST WAKE. This change fixes race condition in Cypress Cordio driver.
Change Description:
1) Added Rising and falling edge interrupt for Host Wake Pin
2) Keep Host MCU active for the duration of Host Wake Pin Asserted
3) Remove Cordio inactivity virtual functions
Tested with mbed os BT applications:
1) mbed-os-example-ble-LED
2) mbed-os-example-ble-Beacon
Pull request type
Reviewers
Release Notes