ruduino
ruduino copied to clipboard
Reusable components for the Arduino Uno.
The README has the following code snipped: ```rust const DESIRED_HZ_TIM1: f64 = 2.0; const TIM1_PRESCALER: u64 = 1024; const INTERRUPT_EVERY_1_HZ_1024_PRESCALER: u16 = ((ruduino::config::CPU_FREQUENCY_HZ as f64 / (DESIRED_HZ_TIM1 * TIM1_PRESCALER as...
Please help to add a .devcontainer for this project to be able to use Github Codespaces.
Currently this ```text $ AVR_CPU_FREQUENCY_HZ=8_000_000 cargo +nightly publish --target ./avr-atmega328p.json -Z build-std=core Updating crates.io index Packaging ruduino v0.4.0 (/home/gs0604/src/rust/RustAVR/ruduino) error: failed to prepare local package for uploading Caused by: failed...
avr-gcc 5.4 ruduino 0.3.2 Compiling rustc-std-workspace-core v1.99.0 (/home/m/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core) error: ran out of registers during register allocation error: could not compile `core` due to previous erro
... similar to the current without_interrupts() helper. What do you think about this? I renamed the existing disable/enable API to with_irqs_disabled(). The new API for suspend/restore is with_irqs_suspended(). The old...
The `without_interrupts()` in PR #4 always enables interrupts when the closure finishes executing. This could be problematic in libraries; a library using this function assumes that the program it is...
Hi! I'm looking to code Rust on Arduino. I love the Arduino platform, and Rust intrigues me. I just have a couple questions: Is this designed to be a low...
The `README` shows ```rust pub unsafe extern "avr-interrupt" fn _ivr_timer1_compare_a() { ``` as interrupt handler for timer1 but that didn't work for me on the Arduino Uno Rev3. Every time...
Hiya, First of all, thanks all for all the work on Rust/AVR, it's awesome :). Secondly though, I'm trying to get Rust working with the Arduino Nano Every board (electrically...
`Register` trait allows reading and writing any pointer in safe code which is unsound. Example: ```rust use ruduino::Register; struct Unsound; impl Register for Unsound { type T = u8; const...