Skip to content

Commit 8349df8

Browse files
committed
add chip attiny1606
1 parent 7b4cb83 commit 8349df8

File tree

7 files changed

+4933
-1
lines changed

7 files changed

+4933
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ attiny84a = ["device-selected"]
7171
attiny85 = ["device-selected"]
7272
attiny861 = ["device-selected"]
7373
attiny88 = ["device-selected"]
74+
attiny1606 = ["device-selected"]
7475
attiny1614 = ["device-selected"]
7576
avr64du32 = ["device-selected"]
7677
avr64du28 = ["device-selected"]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
all: deps chips
22

3-
CHIPS := at90usb1286 atmega1280 atmega1284p atmega128a atmega128rfa1 atmega16 atmega164pa atmega168 atmega16u2 atmega2560 atmega8 atmega8u2 atmega324pa atmega328p atmega328pb atmega32a atmega32u2 atmega32u4 atmega3208 atmega3209 atmega4808 atmega4809 atmega48p atmega64 atmega644 atmega88p attiny13a attiny202 attiny212 attiny214 attiny2313 attiny2313a attiny26 attiny402 attiny404 attiny412 attiny414 attiny416 attiny44a attiny84 attiny85 attiny88 attiny816 attiny828 attiny841 attiny84a attiny861 attiny167 attiny1614 avr64du32 avr64du28
3+
CHIPS := at90usb1286 atmega1280 atmega1284p atmega128a atmega128rfa1 atmega16 atmega164pa atmega168 atmega16u2 atmega2560 atmega8 atmega8u2 atmega324pa atmega328p atmega328pb atmega32a atmega32u2 atmega32u4 atmega3208 atmega3209 atmega4808 atmega4809 atmega48p atmega64 atmega644 atmega88p attiny13a attiny202 attiny212 attiny214 attiny2313 attiny2313a attiny26 attiny402 attiny404 attiny412 attiny414 attiny416 attiny44a attiny84 attiny85 attiny88 attiny816 attiny828 attiny841 attiny84a attiny861 attiny167 attiny1606 attiny1614 avr64du32 avr64du28
44

55
RUSTUP_TOOLCHAIN ?= nightly
66

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/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ pub mod attiny13a;
115115
#[cfg(feature = "attiny167")]
116116
pub mod attiny167;
117117

118+
/// [ATtiny1606](https://www.microchip.com/wwwproducts/en/ATtiny1606)
119+
#[cfg(feature = "attiny1606")]
120+
pub mod attiny1606;
121+
118122
/// [ATtiny1614](https://www.microchip.com/wwwproducts/en/ATtiny1614)
119123
#[cfg(feature = "attiny1614")]
120124
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**,")]
@@ -260,6 +261,7 @@ compile_error!(
260261
* atmega88p
261262
* attiny13a
262263
* attiny167
264+
* attiny1606
263265
* attiny1614
264266
* attiny202
265267
* attiny212
@@ -342,6 +344,8 @@ pub use crate::devices::atmega88p;
342344
pub use crate::devices::atmega8u2;
343345
#[cfg(feature = "attiny13a")]
344346
pub use crate::devices::attiny13a;
347+
#[cfg(feature = "attiny1606")]
348+
pub use crate::devices::attiny1606;
345349
#[cfg(feature = "attiny1614")]
346350
pub use crate::devices::attiny1614;
347351
#[cfg(feature = "attiny167")]

0 commit comments

Comments
 (0)