Skip to content
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

SysTimer should be buildable without lp ticker #10597

Merged
merged 3 commits into from
May 22, 2019

Conversation

LDong-Arm
Copy link
Contributor

Description

Tickless from us ticker is possible since #9785, but SysTimer cannot be built if lp ticker is not enabled even if the latter is not used. This PR drops such restriction and is a dependency for #10572 .

Pull request type

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

@kjbracey
Copy link
Contributor

The equivalent functionality is present in #10104

@LDong-Arm
Copy link
Contributor Author

The equivalent functionality is present in #10104

Thanks for letting me know.

This PR is just a quick fix to allow #10572 to proceed, is there a chance we get this done?

@kjbracey
Copy link
Contributor

If you adjust it to match #10104, retaining the default constructor, then I guess it's fine to proceed.

@@ -119,8 +118,8 @@ class SysTimer: private mbed::TimerEvent, private mbed::NonCopyable<SysTimer> {
static void _set_irq_pending();
us_timestamp_t _time_us;
uint64_t _tick;
bool _suspend_time_passed;
bool _suspended;
bool _suspend_time_passed = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is C++11, isn't it? We've not activated that yet.

#10104 fixed this in the constructor initializer lists.

@ciarmcom ciarmcom requested review from a team May 16, 2019 13:00
@ciarmcom
Copy link
Member

@LDong-Arm, thank you for your changes.
@ARMmbed/mbed-os-test @ARMmbed/mbed-os-core @ARMmbed/mbed-os-maintainers please review.

SysTimer can run on us ticker now. Only deep sleep test
strictly requires lp ticker and it already has build conditions
in place.
If a ticker is unavailable, its macro is undefined and cannot
be checked with MBED_STATIC_ASSERT.
@LDong-Arm
Copy link
Contributor Author

Now the SysTimer constructor is aligned with #10104

@0xc0170
Copy link
Contributor

0xc0170 commented May 21, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented May 21, 2019

Test run: SUCCESS

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

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.

5 participants