-
Notifications
You must be signed in to change notification settings - Fork 3k
Nanostack HAL: Convert to Chrono #12903
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
@kjbracey-arm, thank you for your changes. |
@@ -114,7 +111,7 @@ static int platform_fhss_timer_start(uint32_t slots, void (*callback)(const fhss | |||
equeue = mbed_highprio_event_queue(); | |||
MBED_ASSERT(equeue != NULL); | |||
#endif | |||
timer->start(); | |||
sleep_manager_lock_deep_sleep(); |
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.
This should really be HighResClock::lock()
, self-documenting why it's needed - keeping that clock running for platform_fhss_timeout_read
.
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.
updating this PR or this will be in the new PR?
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.
Oh, let's do that now.
Test run: FAILEDSummary: 1 of 3 test jobs failed Failed test jobs:
|
CI retriggered |
Test run: FAILEDSummary: 1 of 7 test jobs failed Failed test jobs:
|
Is this a real failure? Seems like it should be, given the subject of the PR, but can't navigate the results. |
@JarkkoPaso, could you review and/or comment on results? I'm rereading the changes. |
@kjbracey-arm Looks like bad FHSS synchronization but not enough information to be sure or to say how bad it is. I'll try this locally later... today or tomorrow.. Unless you find the issue before. |
I tested with Nucleo_F429ZI and it looks like this makes too short timeouts for some reason. For example: 255ms broadcast dwell time is around 190ms when measuring with oscilloscope. |
Could that be down to a flaw in the remaining_time calculations? Not quite sure how that's being used. Oh, actually, it's a fundamental part of triggering the callback, isn't it? |
Yes, could be that function. It should just return the time left for the given callback. Assuming timeout for this callback was started earlier. |
features/nanostack/nanostack-hal-mbed-cmsis-rtos/arm_hal_fhss_timer.cpp
Outdated
Show resolved
Hide resolved
Sign for "overrun" callback parameter fixed. CI started. |
Test run: FAILEDSummary: 1 of 7 test jobs failed Failed test jobs:
|
CI retriggered |
Test run: FAILEDSummary: 1 of 7 test jobs failed Failed test jobs:
|
Summary of changes
Convert Nanostack HAL to use new APIs from #12425.
Impact of changes
Eliminate use of deprecated APIs
Migration actions required
n/a
Documentation
None
Pull request type
Test results
Reviewers