5 ms·
Semi-related: are there any good recommendations for Rust-based RTOSs. Bare metal is great, but for a lot of projects you'll want some sort of scheduler.
by wiremine 7y ago
Semi-related: are there any good recommendations for Rust-based RTOSs. Bare metal is great, but for a lot of projects you'll want some sort of scheduler.
- deleted 7y ago[deleted]
- fra 7y agoCheck out Tock: https://www.tockos.org/ https://www.tockos.org/. As far as I know it's the most complete effort out there.
- nicoburns 7y agoThere is also Real Time For The Masses https://rtfm.rs/0.5/book/en/ https://rtfm.rs/0.5/book/en/
- jsjohnst 7y agoTock definitely looks interesting, but reading the walkthrough[0] leaves a bad taste in my mouth. Mixing C and Rust without even calling that out, let alone explaining the why. Their init() function (serves same purpose as the reset_handler in OP’s article) is also a gnarly mess in comparison to OP’s version. That said, judging a project based solely on its howto will mean you’ll miss out on a lot of otherwise good stuff. As such, will definitely keep digging into it as I have a project that could leverage it. [0] https://www.tockos.org/documentation/walkthrough/ https://www.tockos.org/documentation/walkthrough/
- seren 7y agoIs Tock a Real Time OS though ? They mention a preemptive scheduling, but not priority inversion for example. And they do not claim anything regarding real time in their doc.
- SAI_Peregrinus 7y agoThere's also Drone: https://www.drone-os.com/ https://www.drone-os.com/ I've not used either though, yet. I need to play with them.
- mlindner 7y agoI mean it's not that hard to write your own scheduler. You can easily set up a simple event poll loop that's not much more than a raw loop. See cooperative multitasking which is completely sufficient for this case if you want something a little more complex.