-
Notifications
You must be signed in to change notification settings - Fork 3k
RTL8195AM - Fix us_ticker porting #5143
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
11549cf
to
f6d6241
Compare
commit f7bc126 (Re-work Rtl8195AM ticker) tried to address ticker drifting issue, but in fact broke ticker functionality. This patch adjusts us_ticker porting to unbreak it, and to fix the following tests: mbed-os-tests-mbed_drivers-ticker mbed-os-tests-mbed_drivers-timeout mbed-os-tests-mbedmicro-rtos-mbed-isr mbed-os-features-frameworks-utest-tests-unit_tests-minimal_async_scheduler mbed-os-features-frameworks-utest-tests-unit_tests-case_control_async mbed-os-features-frameworks-utest-tests-unit_tests-case_async_validate Changes are: 1. Dont disable timer after every us_ticker interrupt. That basically breaks ticker functionality. 2. Fine-tune us to tick conversion macro. Previous conversion method yields 1 tick drift every 2 ms. 3. Remove special placement of ticker objects. No longer necessary. Signed-off-by: Tony Wu <[email protected]>
f6d6241
to
6c11678
Compare
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.
- Remove special placement of ticker objects. No longer necessary.
👍
How was this tested? run tests that you can share the results? |
Hi @0xc0170 , I found previous PR could not pass driver_ticker test in Greentea. So I just ran Greentea test on this branch with GCC and ARM and IAR. All tests passed. Here's the result with GCC
|
Like @Archcady mentioned, without this patch, ticker and timeout related greentea tests will fail. |
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
Description
commit f7bc126 (Re-work Rtl8195AM ticker) tried to address ticker drifting issue, but in
fact broke ticker functionality.This patch adjusts us_ticker porting to un-break it, and to fix the following tests:
Changes are:
Dont disable timer after every us_ticker interrupt. That basically
breaks ticker functionality.
Fine-tune us to tick conversion macro. Previous conversion method
yields 1 tick drift every 2 ms.
Remove special placement of ticker objects. No longer necessary.
Status
READY
Migrations
NO
Related PRs
#5044
Todos
NONE
Deploy notes
NONE
Steps to test or reproduce
mbed greentea test