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

Mbed OS #1

Open
40Grit opened this issue May 22, 2019 · 5 comments
Open

Mbed OS #1

40Grit opened this issue May 22, 2019 · 5 comments

Comments

@40Grit
Copy link

40Grit commented May 22, 2019

When's it getting into mbed os?

@0Grit
Copy link

0Grit commented May 28, 2019

@geky

@geky
Copy link
Owner

geky commented May 28, 2019

I hadn't actually thought about this until seeing your comment. Mbed OS is pretty invested in the whole deep integration with an RTOS thing.

Nothing stops you from adding coru to an mbed project, but without the driver integration it may not be that useful.

What we really need is a way to hook into wait calls similarly to what the RTOS does. But I don't think I will be able to put up a PR anytime soon.
https://github.com/ARMmbed/mbed-os/blob/master/platform/mbed_wait_api_rtos.cpp
https://github.com/ARMmbed/mbed-os/blob/master/platform/mbed_wait_api_no_rtos.c

@geky
Copy link
Owner

geky commented May 28, 2019

Eh, I created a PR: ARMmbed/mbed-os#10693

We'll see if that goes through. With it you can hook in coru with this function:

#include "coru.h"
void mbed_override_wait_hook() {
    coru_yield();
}

@40Grit
Copy link
Author

40Grit commented May 29, 2019

Related issues:

@geky
Copy link
Owner

geky commented May 29, 2019

Ah interesting, #9141 is related. I haven't forgotten about ARMmbed/mbed-os#10263, but I've been working through a backlog so it's taking me a while to get to everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants