#avr #mcu #io #constants #pins

avrd

Device-specific constants and information for all AVR microcontrollers

7 releases (1 stable)

1.0.0 Feb 13, 2021
0.3.1 Feb 13, 2021
0.3.0 Mar 3, 2020
0.2.0 Nov 17, 2017
0.1.1 Aug 22, 2017

#1021 in Embedded development

Download history 17/week @ 2022-12-07 16/week @ 2022-12-14 21/week @ 2022-12-21 14/week @ 2022-12-28 3/week @ 2023-01-04 9/week @ 2023-01-11 19/week @ 2023-01-18 23/week @ 2023-01-25 23/week @ 2023-02-01 30/week @ 2023-02-08 33/week @ 2023-02-15 7/week @ 2023-02-22 7/week @ 2023-03-01 15/week @ 2023-03-08 12/week @ 2023-03-15 21/week @ 2023-03-22

55 downloads per month

MIT license

17MB
217K SLoC

avrd

Crates.io Build Status license

AVR device definitons in Rust.

Documentation

This crate exposes information about different AVR microcontrollers so it can be used pragmatically.

You can use this crate directly as a depencency on the AVR bare metal, or on different architectures.

The constants defined in this library facilitate raw IO port operations on AVR chips.

For example

extern crate avrd;
use avrd::current::*; // Import constants for the target MCU

volatile_store(PORTB, 0x1f);

Usage on AVR

Just include the crate as a dependency and it will work.

Enabling all microcontrollers at once

You may want to compile with the all-mcus feature enabled, which enables modules for all microcontrollers to be compiled and included at once.

No runtime deps