Skip to content

Commit 805381d

Browse files
committed
add chip attiny1606
1 parent 0b02ef1 commit 805381d

File tree

6 files changed

+4934
-0
lines changed

6 files changed

+4934
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ attiny84a = ["device-selected"]
7575
attiny85 = ["device-selected"]
7676
attiny861 = ["device-selected"]
7777
attiny88 = ["device-selected"]
78+
attiny1606 = ["device-selected"]
7879
attiny1614 = ["device-selected"]
7980
avr64du32 = ["device-selected"]
8081
avr64du28 = ["device-selected"]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Via the feature you can select which chip you want the register specifications f
3333
| `atmega164pa` | | | | `attiny841` |
3434
| | | | | `attiny84a` |
3535
| | | | | `attiny861` |
36+
| | | | | `attiny1606` |
3637
| | | | | `attiny1614` |
3738
| | | | | `attiny2313` |
3839
| | | | | `attiny2313a` |

patch/attiny1606.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_svd: ../svd/attiny1606.svd

src/devices.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ pub mod attiny167 {
171171
include!(concat!(env!("OUT_DIR"), "/pac/attiny167.rs"));
172172
}
173173

174+
/// [ATtiny1606](https://www.microchip.com/wwwproducts/en/ATtiny1606)
175+
#[cfg(feature = "attiny1606")]
176+
pub mod attiny1606 {
177+
include!(concat!(env!("OUT_DIR"), "/pac/attiny1606.rs"));
178+
}
179+
174180
/// [ATtiny1614](https://www.microchip.com/wwwproducts/en/ATtiny1614)
175181
#[cfg(feature = "attiny1614")]
176182
pub mod attiny1614 {

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#![cfg_attr(feature = "atmega88p", doc = "**atmega88p**,")]
2929
#![cfg_attr(feature = "attiny13a", doc = "**attiny13a**,")]
3030
#![cfg_attr(feature = "attiny167", doc = "**attiny167**,")]
31+
#![cfg_attr(feature = "attiny1606", doc = "**attiny1606**,")]
3132
#![cfg_attr(feature = "attiny1614", doc = "**attiny1614**,")]
3233
#![cfg_attr(feature = "attiny202", doc = "**attiny202**,")]
3334
#![cfg_attr(feature = "attiny212", doc = "**attiny212**,")]
@@ -261,6 +262,7 @@ compile_error!(
261262
* atmega88p
262263
* attiny13a
263264
* attiny167
265+
* attiny1606
264266
* attiny1614
265267
* attiny202
266268
* attiny212
@@ -345,6 +347,8 @@ pub use crate::devices::atmega88p;
345347
pub use crate::devices::atmega8u2;
346348
#[cfg(feature = "attiny13a")]
347349
pub use crate::devices::attiny13a;
350+
#[cfg(feature = "attiny1606")]
351+
pub use crate::devices::attiny1606;
348352
#[cfg(feature = "attiny1614")]
349353
pub use crate::devices::attiny1614;
350354
#[cfg(feature = "attiny167")]

0 commit comments

Comments
 (0)