Where do I start these days if I want to write a state machine that on the outside looks like a C function, e.g.
void update(uint32_t event, struct state *s);
and on the inside looks like Rust async code? This would be nostd, plugging into an existing CM3 system written in C.
Conversation
I already have a CSP-style scheduler. Would be nice if I could wrap that as well to have C and Rust tasks work together.
Replying to
Maybe what I'm looking for is not an executor, but a way to wrap futures such that the cooperative C scheduler can run them?
