Skip to content

Commit 246f0f0

Browse files
siku2Rahix
authored andcommitted
feat: add AVR128DB48 support
1 parent 0516740 commit 246f0f0

4 files changed

Lines changed: 9188 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ attiny3217 = ["device-selected"]
9494
avr64du32 = ["device-selected"]
9595
avr64du28 = ["device-selected"]
9696
avr128db28 = ["device-selected"]
97+
avr128db48 = ["device-selected"]
9798
rt = ["avr-device-macros"]
9899

99100
critical-section = ["critical-section/restore-state-u8"]

src/devices.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,3 +404,9 @@ pub mod avr64du28 {
404404
pub mod avr128db28 {
405405
include!(concat!(env!("OUT_DIR"), "/pac/avr128db28.rs"));
406406
}
407+
408+
/// [AVR128DB48](https://www.microchip.com/wwwproducts/en/AVR128DB48)
409+
#[cfg(feature = "avr128db48")]
410+
pub mod avr128db48 {
411+
include!(concat!(env!("OUT_DIR"), "/pac/avr128db48.rs"));
412+
}

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
#![cfg_attr(feature = "avr64du32", doc = "**avr64du32**,")]
6767
#![cfg_attr(feature = "avr64du28", doc = "**avr64du28**,")]
6868
#![cfg_attr(feature = "avr128db28", doc = "**avr128db28**,")]
69+
#![cfg_attr(feature = "avr128db48", doc = "**avr128db48**,")]
6970
//! and a few things which apply to AVR microcontrollers generally.
7071
//!
7172
#![cfg_attr(
@@ -140,6 +141,7 @@
140141
//! `avr64du32`,
141142
//! `avr64du28`,
142143
//! `avr128db28`,
144+
//! `avr128db48`,
143145
//!
144146
//! # How to use this crate?
145147
//!
@@ -327,6 +329,7 @@ compile_error!(
327329
* avr64du32
328330
* avr64du28
329331
* avr128db28
332+
* avr128db48
330333
"
331334
);
332335

@@ -469,3 +472,5 @@ pub use crate::devices::avr64du28;
469472
pub use crate::devices::avr64du32;
470473
#[cfg(feature = "avr128db28")]
471474
pub use crate::devices::avr128db28;
475+
#[cfg(feature = "avr128db48")]
476+
pub use crate::devices::avr128db48;

0 commit comments

Comments
 (0)