Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ attiny861 = ["device-selected"]
attiny88 = ["device-selected"]
attiny1606 = ["device-selected"]
attiny1614 = ["device-selected"]
attiny1626 = ["device-selected"]
avr64du32 = ["device-selected"]
avr64du28 = ["device-selected"]
rt = ["avr-device-macros"]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Via the feature you can select which chip you want the register specifications f
| | | | | `attiny861` |
| | | | | `attiny1606` |
| | | | | `attiny1614` |
| | | | | `attiny1626` |
| | | | | `attiny2313` |
| | | | | `attiny2313a` |

Expand Down
3 changes: 3 additions & 0 deletions patch/attiny1626.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_include:
- common/attiny-xmega/common.yaml
- common/attiny-xmega/2-series.yaml
5 changes: 5 additions & 0 deletions patch/common/attiny-xmega/2-series.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# VPORTA.DIR is located at memory address 0x0. So far rust is not able to access
# memory address 0x0. It treats it as invalid pointer and immediately panics
# without even trying to access the address.
VPORTA:
_delete: DIR
6 changes: 6 additions & 0 deletions src/devices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ pub mod attiny1614 {
include!(concat!(env!("OUT_DIR"), "/pac/attiny1614.rs"));
}

/// [ATtiny1626](https://www.microchip.com/wwwproducts/en/ATtiny1626)
#[cfg(feature = "attiny1626")]
pub mod attiny1626 {
include!(concat!(env!("OUT_DIR"), "/pac/attiny1626.rs"));
}

/// [ATtiny202](https://www.microchip.com/wwwproducts/en/ATtiny202)
#[cfg(feature = "attiny202")]
pub mod attiny202 {
Expand Down
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#![cfg_attr(feature = "attiny167", doc = "**attiny167**,")]
#![cfg_attr(feature = "attiny1606", doc = "**attiny1606**,")]
#![cfg_attr(feature = "attiny1614", doc = "**attiny1614**,")]
#![cfg_attr(feature = "attiny1626", doc = "**attiny1626**,")]
#![cfg_attr(feature = "attiny202", doc = "**attiny202**,")]
#![cfg_attr(feature = "attiny212", doc = "**attiny212**,")]
#![cfg_attr(feature = "attiny214", doc = "**attiny214**,")]
Expand Down Expand Up @@ -89,6 +90,7 @@
//! `attiny13a`,
//! `attiny167`,
//! `attiny1614`,
//! `attiny1626`,
//! `attiny202`,
//! `attiny212`,
//! `attiny214`,
Expand Down Expand Up @@ -264,6 +266,7 @@ compile_error!(
* attiny167
* attiny1606
* attiny1614
* attiny1626
* attiny202
* attiny212
* attiny214
Expand Down Expand Up @@ -351,6 +354,8 @@ pub use crate::devices::attiny13a;
pub use crate::devices::attiny1606;
#[cfg(feature = "attiny1614")]
pub use crate::devices::attiny1614;
#[cfg(feature = "attiny1626")]
pub use crate::devices::attiny1626;
#[cfg(feature = "attiny167")]
pub use crate::devices::attiny167;
#[cfg(feature = "attiny202")]
Expand Down
Loading