-
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
Pr dev/remove hardcoded timeout in cypress bt code #12164
Pr dev/remove hardcoded timeout in cypress bt code #12164
Conversation
Replaced a hardcoded timeout in CyH4TransportDriver.cpp with a cypress hal function. The cypress PUTC hal API only blocks until data has been send into the HW buffer, not until all data has been out of the HW buffer. Modified an API to block untill all tx transmit is complete. This allows the removal of a hardcoded timeout in CyH4TransportDriver.cpp that waits for data int the HW buffer to be sent.
@shuopeng-deng, thank you for your changes. |
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.
Looks good to me. I'm assuming someone that knows the Cypress code already reviewed it internally?
@ARMmbed/team-cypress has anybody reviewed this internally from your side ? |
@adbridge yes, this change was reviewed internally. |
CI started |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
Failure doesn't look related, I'll restart the CI. |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
This PR does not contain release version label after merging. |
1 similar comment
This PR does not contain release version label after merging. |
Summary of changes
Replaced a hardcoded timeout in CyH4TransportDriver.cpp with a cypress hal function. The cypress PUTC hal API only blocks until data has been send into the HW buffer, not until all data has been out of the HW buffer. Modified an API to block until all tx transmit is complete. This allows the removal of a hardcoded timeout in CyH4TransportDriver.cpp that waits for data int the HW buffer to be sent.
The 5000 us delay was insufficient on some Cypress board which may cause the radio to go to sleep prematurely and BLE packets to be delay until the radio wakes up again.
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
CYW9P62S1_43438EVB_01_GT.txt
Reviewers