Crates.io | avrd |
lib.rs | avrd |
version | 1.0.0 |
source | src |
created_at | 2017-08-22 07:12:32.254833 |
updated_at | 2021-02-13 10:02:58.504401 |
description | Device-specific constants and information for all AVR microcontrollers |
homepage | |
repository | https://github.com/avr-rust/avrd |
max_upload_size | |
id | 28523 |
size | 16,783,449 |
AVR device definitons in Rust.
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);
Just include the crate as a dependency and it will work.
You may want to compile with the all-mcus
feature enabled, which enables
modules for all microcontrollers to be compiled and included at once.