Mbed OS
When's it getting into mbed os?
@geky
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
Eh, I created a PR: https://github.com/ARMmbed/mbed-os/pull/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();
}
Related issues:
-
https://github.com/ARMmbed/mbed-os/issues/9141
-
Some great commentary from @kjbracey-arm https://github.com/ARMmbed/mbed-os/issues/10263, issue also still awaiting @geky's feedback
Ah interesting, #9141 is related. I haven't forgotten about https://github.com/ARMmbed/mbed-os/issues/10263, but I've been working through a backlog so it's taking me a while to get to everything.