Let's run this #RustLang program on Apache #NuttX OS
https://github.com/lupyuen/incubator-nuttx-apps/blob/rust/examples/rust_test/rust/src/lib.rs
Our #NuttX Build Script compiles the #RustLang code into a Static Library ... And links the Static Library into the NuttX Firmware
https://github.com/lupyuen/incubator-nuttx-apps/blob/rust/examples/rust_test/run.sh#L85-L103
#RustLang builds OK with #NuttX OS! 🎉 Let's run the NuttX Firmware
https://gist.github.com/lupyuen/9bfd71f7029bb66e327f89c8a58f450d
#RustLang runs OK on #NuttX OS ... We're ready to create Rust Embedded Apps on NuttX! 🎉
https://github.com/lupyuen/incubator-nuttx-apps/blob/rust/examples/rust_test/rust/src/lib.rs
Once we implement the #RustLang Embedded HAL on #NuttX OS ... We can run all kinds of Rust Drivers on NuttX! 👍
https://github.com/tweedegolf/sx126x-rs/blob/master/examples/stm32f103-ping-pong.rs#L58-L85
#RustLang opens GPIO Ports on Apache #NuttX OS ... The POSIX Way 👍
https://github.com/lupyuen/incubator-nuttx-apps/blob/rust/examples/rust_test/rust/src/lib.rs#L10-L27
Let's do SPI in #RustLang on Apache #NuttX OS
https://github.com/lupyuen/incubator-nuttx-apps/blob/rust/examples/rust_test/rust/src/lib.rs#L34-L85
#RustLang on Apache #NuttX OS ... SPI Data Transfer works OK! 🎉
https://gist.github.com/lupyuen/995de62d678cd6d1fadf464e1795fc8d
Let's implement #RustLang Embedded HAL for #NuttX OS ... So that we can test the Rust Driver for LoRa SX1262
https://github.com/lupyuen/incubator-nuttx-apps/blob/rust/examples/rust_test/rust/src/sx1262.rs
#RustLang Embedded HAL for #NuttX OS ... Builds OK with the Rust Driver for LoRa SX1262! 🎉
https://github.com/lupyuen/incubator-nuttx-apps/blob/rust/examples/rust_test/rust/src/sx1262.rs
But the #RustLang Driver for LoRa SX1262 doesn't run correctly on #NuttX OS 🤔
https://gist.github.com/lupyuen/ee010b118166627f04f4fa63d8ccc0c9
#RustLang Driver for LoRa SX1262 splits SPI Transfers into 1-byte and 2-byte chunks ... So this driver won't work on #NuttX OS unless we merge the SPI Transfers 🤔
https://gist.github.com/lupyuen/ee010b118166627f04f4fa63d8ccc0c9
Let's merge the SPI Transfers in the #RustLang Driver for LoRa SX1262 ... And make it work on Apache #NuttX OS
https://github.com/lupyuen/sx126x-rs-nuttx/blob/master/src/sx/slave_select.rs
Modified #RustLang Driver for LoRa SX1262 ... Now runs correctly on Apache #NuttX OS! 🎉
https://gist.github.com/lupyuen/9c637e2c1f6ea331c3df8d8d29e282a8
@lupyuen tagging @laufi @eichkat3r
@laufi @guenther @eichkat3r Thanks! Here's the article I'm writing now...