3 ms·
I think that one thing that makes it difficult to write safe microcontroller code is the interrupts that can interrupt the normal flow at anytime. Does Rust on
by jfries 10y ago
I think that one thing that makes it difficult to write safe microcontroller code is the interrupts that can interrupt the normal flow at anytime.
Does Rust on AVR help with this at all, or is it an orthogonal issue?
- jononor 10y agoYes, really interested in how interrupts can be modelled with Rust. Preferably a safe abstraction without going full RTOS?
- steveklabnik 10y agoMy toy OS project has a partial implementation of interrupts for x86_64: https://github.com/intermezzOS/kernel/blob/master/interrupts/src/lib.rs https://github.com/intermezzOS/kernel/blob/master/interrupts... Just enough to get keyboards working, still a lot of stuff to do, but the foundation is there. Used like this: https://github.com/intermezzOS/kernel/blob/master/src/main.rs#L48-L68 https://github.com/intermezzOS/kernel/blob/master/src/main.r...