프로젝트
GitHub에서 보기
avr-rust/blink
소개
A blinking LED program written in Rust for the AVR
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalblink
A small Hello World Rust application for the AVR.
The program itself toggles a LED on PORTB periodically.
Designed for the ATmega328p.
Prerequisites
- A recent version of the nightly Rust compiler. Anything including or
greater than
rustc 1.63.0-nightly (fee3a459d 2022-06-05)can be used. - A recent version of Cargo. At least 1.52.0 or greater.
- The rust-src rustup component -
$ rustup component add rust-src - AVR-GCC on the system for linking
- AVR-Libc on the system for support libraries
Usage
Now to build, run:
# Ensure time delays are consistent with a 16MHz microcontroller.
export AVR_CPU_FREQUENCY_HZ=16000000
# Compile the crate to an ELF executable.
cargo build --release
There should now be an ELF file at target/avr-atmega328p/release/blink.elf. It
can be flashed directly to an AVR microcontroller or ran inside a simulator.
Resources
- The AVR-Rust book
관련 프로젝트 살펴보기
불러오는 중…