Skip to content

Conversation

MukundGitHub
Copy link
Contributor

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

[ ] Fix
[ ] Refactor
[ x] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

Release Notes

…ve for the duration BT device asserts HOST WAKE. This change fixes race condition in Cypress Cordio driver.
@ciarmcom ciarmcom requested a review from a team October 8, 2019 01:00
@ciarmcom
Copy link
Member

ciarmcom commented Oct 8, 2019

@MukundGitHub, thank you for your changes.
@ARMmbed/mbed-os-pan @ARMmbed/mbed-os-maintainers please review.

@ciarmcom ciarmcom requested a review from a team October 8, 2019 01:00
@bulislaw
Copy link
Member

bulislaw commented Oct 9, 2019

@pan- @donatieng please review

Copy link
Contributor

@0xc0170 0xc0170 left a 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

Copy link
Member

@pan- pan- left a 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.


DigitalInOut bt_host_wake;
DigitalInOut bt_device_wake;
bool bt_host_wake_active;
Copy link
Member

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.

Copy link
Contributor Author

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.

@0xc0170 0xc0170 requested a review from pan- October 17, 2019 07:59
@0xc0170
Copy link
Contributor

0xc0170 commented Oct 17, 2019

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.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 17, 2019

Ci started

@mbed-ci
Copy link

mbed-ci commented Oct 17, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

@0xc0170 0xc0170 merged commit 0efea30 into ARMmbed:master Oct 17, 2019
@MukundGitHub MukundGitHub deleted the cypress_cordio_driver_host_wake_logic_changes branch October 23, 2019 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants