Skip to content

Export wait_ns to be overridable #10683

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

Merged
merged 1 commit into from
Jun 3, 2019

Conversation

ccli8
Copy link
Contributor

@ccli8 ccli8 commented May 28, 2019

Description

This PR is replacement for #10632. Some targets may not provide zero-wait-state flash performance. Export wait_ns to be overridable for targets to provide more accurate implementation like locating delay_loop_code in SRAM.

Pull request type

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

Reviewers

@kjbracey-arm

Some targets may not provide zero-wait-state flash performance. Export this function
to be overridable for targets to provide more accurate implementation like locating
'delay_loop_code' in SRAM.
@kjbracey
Copy link
Contributor

kjbracey commented May 28, 2019

Still would like to see M2351's cache enabled so this wasn't necessary (for it) though.

@0xc0170
Copy link
Contributor

0xc0170 commented May 31, 2019

I've just noticed nightly failures for this:

| NUMAKER_PFM_M487-ARMC6 | NUMAKER_PFM_M487 | tests-mbed_platform-wait_ns                                                  | FAIL   | 41.21              | default     |

This PR should fix it, shouldn't it?

@0xc0170
Copy link
Contributor

0xc0170 commented May 31, 2019

Wait, it only provides a hook, not the real fix.

@0xc0170
Copy link
Contributor

0xc0170 commented May 31, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented May 31, 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.

4 participants