Skip to content

Commit 8d3c246

Browse files
committed
Use 'avr-config' for CPU frequency logic rather than reimplement it
This crate is also used by the 'delay' crate.
1 parent 37884cc commit 8d3c246

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ default = ["avr-std-stub"]
2828
all-mcus = []
2929

3030
[dependencies]
31+
avr-config = "1.0"
3132
avr-std-stub = { version = "1.0", optional = true }
3233
const_env--value = "0.1"
3334
target-cpu-macro = "0.1"

src/config.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub mod interrupt;
2424
pub mod modules;
2525

2626
/// Configuration for the currently-targeted microcontroller.
27-
pub mod config;
27+
pub use avr_config as config;
2828

2929
mod register;
3030
mod pin;

0 commit comments

Comments
 (0)