I am right in thinking that to convert the OS 6 empty example program into a bare metal one, it just involves adding a mbed_app.json with the same contents as the bare-metal example?
I’ve tried this and added some blinky code including the following
and it compiles fine. Whereas the bare-metal blinky seems to use
So I’m a little confused as the best approach to use for bare-metal: ThisThread::sleep_for() or thread_sleep_for()?