rtic VS avr-hal

Compare rtic vs avr-hal and see what are their differences.

rtic

Real-Time Interrupt-driven Concurrency (RTIC) framework for ARM Cortex-M microcontrollers (by rtic-rs)

avr-hal

embedded-hal abstractions for AVR microcontrollers (by Rahix)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
rtic avr-hal
14 30
1,589 1,158
4.3% -
8.8 8.7
7 days ago 4 days ago
Rust Rust
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

rtic

Posts with mentions or reviews of rtic. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-27.

avr-hal

Posts with mentions or reviews of avr-hal. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-04.
  • Arduino Uno issue with interfacing with a dht11 sensor.
    4 projects | /r/rust | 4 Jul 2023
    /* * For examples (and inspiration), head to * * https://github.com/Rahix/avr-hal/tree/main/examples * * NOTE: Not all examples were ported to all boards! There is a good chance though, that code * for a different board can be adapted for yours. The Arduino Uno currently has the most * examples available. */ #![no_std] #![no_main] use dht_sensor::*; use panic_halt as _; #[arduino_hal::entry] fn main() -> ! { let dp = arduino_hal::Peripherals::take().unwrap(); let pins = arduino_hal::pins!(dp); let mut serial = arduino_hal::default_serial!(dp, pins, 57200); let mut pin3 = pins.d3.into_opendrain_high(); let mut delay = arduino_hal::Delay::new(); ufmt::uwriteln!(serial, "{}", "waiting for sensor...").unwrap(); arduino_hal::delay_ms(2000); loop { match dht11::Reading::read(&mut delay, &mut pin3) { Ok(dht11::Reading { temperature, relative_humidity, }) => ufmt::uwriteln!(serial, "{}°, {}% RH", temperature, relative_humidity).unwrap(), Err(_e) => ufmt::uwriteln!(serial, "Error {}", "Unable to read").unwrap(), } arduino_hal::delay_ms(2000); } }
  • What are the scenarios where "Rewrite it in Rust" didn't meet your expectations or couldn't be successfully implemented?
    16 projects | /r/rust | 9 Jun 2023
    I found the generics a lot less of a problem when I realized I could parametrize on things like embedded_hal::serial::Write instead of UsartOps https://github.com/Rahix/avr-hal/pull/264/commits/17ed15321cb8fcf8aedb1f8133be1f189eb06a6f
  • not entirely new to rust, but very new to rust+arduino,.... eli5 the differences between these projects?
    2 projects | /r/rust | 12 Jan 2023
    I've come across avr-rust, avr-hal and both seem to have arduino stuff, wondering which is the most beginner friendly? (I have a bit of experience with the regular arduino IDE but want to switch over to doing all the stuff in rust for a challenge)
  • Hey Rustaceans! Got a question? Ask here (1/2023)!
    11 projects | /r/rust | 3 Jan 2023
    fyi, a minor follow-up at https://github.com/Rahix/avr-hal/issues/388
  • Rust and arduino?
    2 projects | /r/rust | 12 Dec 2022
    I have contributed a little to this. avr-hal I have done a couple little hobby projects with it as well, but I can't say it's the best thing out there.
    2 projects | /r/rust | 12 Dec 2022
  • Learning Embedded rust
    7 projects | /r/rust | 18 Nov 2022
    All you need is in the documentation: https://rahix.github.io/avr-hal/arduino_hal/index.html even though reading the documentation without knowing what you're looking for can be quite difficult, so looking at some examples might be more helpful.
    7 projects | /r/rust | 18 Nov 2022
    Embedded rust for the arduino boards: https://github.com/Rahix/avr-hal
  • Five simple steps to use any Arduino C++ library in a Rust project 🦀
    11 projects | dev.to | 13 Nov 2022
    Rust language shares all advantages of efficient C++ code. With the rust community growing year after year, more and more people try using rust to program their Arduino boards. Consequently, the Arduino Rust ecosystem have significantly developed in the last couple of years. The Hardware Abstraction Layer for AVR microcontrollers avr-hal, Rudino library and ravedude CLI utility to make Rust development for AVR microcontrollers easier are just a few examples of the solid foundation developed so far.
  • From arduino to rust via avr-hal
    2 projects | /r/rust | 16 Oct 2022
    There's a blink example in the repo for the avr-hal crate.

What are some alternatives?

When comparing rtic and avr-hal you can also consider the following projects:

embassy - Modern embedded framework, using Rust and async.

avrd - AVR device definitions

rust - Rust for the xtensa architecture. Built in targets for the ESP32 and ESP8266

tock - A secure embedded operating system for microcontrollers

ruduino - Reusable components for the Arduino Uno.

llvm-project - The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.

atsamd - Target atsamd microcontrollers using Rust

avr-device - Register access crate for AVR microcontrollers

rustc_codegen_gcc - libgccjit AOT codegen for rustc

rust - Empowering everyone to build reliable and efficient software.

rustc_codegen_gcc - libgccjit AOT codegen for rustc

cortex-m - Low level access to Cortex-M processors