Bare-metal configuration with EventQueue for a Bluepill board.
Warning
It does not work with the Mbed Online Compiler.
Follow these steps to import and compile it with Mbed CLI:
mbed import https://os.mbed.com/users/hudakz/code/Baremetal_EventQue_Bluepill mbed compile -t GCC_ARM -m bluepill
Diff: mbed_app.json
- Revision:
- 1:96018ca8cb3f
- Parent:
- 0:2cf53c219693
- Child:
- 2:f6392c8bd0e0
diff -r 2cf53c219693 -r 96018ca8cb3f mbed_app.json --- a/mbed_app.json Thu May 14 05:27:57 2020 +0000 +++ b/mbed_app.json Mon May 18 15:02:31 2020 +0000 @@ -2,11 +2,13 @@ "requires": ["bare-metal", "events", "rtos-api"], "target_overrides": { "*": { - "platform.stdio-baud-rate" : 115200, + "platform.stdio-baud-rate" : 9600, "platform.stdio-convert-newlines" : true, "platform.stdio-buffered-serial" : true, "platform.stdio-flush-at-exit" : true, - "target.default_lib" : "small" + "platform.callback-nontrivial" : true, + "target.tickless-from-us-ticker" : true, + "target.c_lib" : "small" } } }