coru icon indicating copy to clipboard operation
coru copied to clipboard

Mbed OS

Open 40Grit opened this issue 6 years ago • 5 comments

When's it getting into mbed os?

40Grit avatar May 22 '19 11:05 40Grit

@geky

0Grit avatar May 28 '19 18:05 0Grit

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 avatar May 28 '19 22:05 geky

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();
}

geky avatar May 28 '19 22:05 geky

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

40Grit avatar May 29 '19 00:05 40Grit

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.

geky avatar May 29 '19 01:05 geky