Skip to content

Commit 8dbdab6

Browse files
committed
Add the 'avr-std-stub' crate to provide panic handler and exception handler personality fn
1 parent 150e294 commit 8dbdab6

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

Cargo.lock

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ edition = "2018"
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10+
avr-std-stub = "1.0"

src/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#![no_std]
2+
#![no_main]
3+
4+
extern crate avr_std_stub;
5+
6+
#[no_mangle]
17
fn main() {
2-
println!("Hello, world!");
38
}

0 commit comments

Comments
 (0)