-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix some targets fail to pass ticker overflow test #7548
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
Conversation
In mbed-os-tests-mbed_hal-common_tickers/Microsecond ticker overflow test, some targets would fail to catch specified ticker value near overflow in time and so fail. This commit alleviates the issue by checking ticker value range rather than one exact ticker value near overflow.
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.
The fix looks good. Nice catch! Thanks!
/morph build |
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
#define LP_TICKER_OVERFLOW_DELTA1 0 // this will allow to detect that ticker counter rollovers to 0 | ||
#define LP_TICKER_OVERFLOW_DELTA2 0 | ||
#define US_TICKER_OVERFLOW_DELTA1 50 | ||
#define US_TICKER_OVERFLOW_DELTA2 60 |
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.
It will be good to name the defines as min/max instead 1/2 to have better understanding
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.
@deepikabhavnani Because this PR has merged, I would make no modification for it.
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.
No problem
Build : SUCCESSBuild number : 2645 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2278 |
Test : SUCCESSBuild number : 2384 |
…verflow Fix some targets fail to pass ticker overflow test
Description
In
mbed-os-tests-mbed_hal-common_tickers
/Microsecond ticker overflow test
, some targets would fail to catch specified ticker value near overflow in time and so fail. This commit alleviates the issue by checking ticker value range rather than one exact ticker value near overflow.Pull request type
@deepikabhavnani