Skip to content

Commit 3329091

Browse files
committed
Rounding out ATtiny 0-series with 204/804/1604 support, copilot re-alphabetized stuff
1 parent 79d4a0b commit 3329091

File tree

10 files changed

+14348
-14
lines changed

10 files changed

+14348
-14
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ attiny13a = ["device-selected"]
5757
attiny167 = ["device-selected"]
5858
attiny202 = ["device-selected"]
5959
attiny212 = ["device-selected"]
60+
attiny204 = ["device-selected"]
6061
attiny214 = ["device-selected"]
6162
attiny2313 = ["device-selected"]
6263
attiny2313a = ["device-selected"]
@@ -67,6 +68,7 @@ attiny412 = ["device-selected"]
6768
attiny414 = ["device-selected"]
6869
attiny416 = ["device-selected"]
6970
attiny44a = ["device-selected"]
71+
attiny804 = ["device-selected"]
7072
attiny816 = ["device-selected"]
7173
attiny828 = ["device-selected"]
7274
attiny84 = ["device-selected"]
@@ -75,6 +77,7 @@ attiny84a = ["device-selected"]
7577
attiny85 = ["device-selected"]
7678
attiny861 = ["device-selected"]
7779
attiny88 = ["device-selected"]
80+
attiny1604 = ["device-selected"]
7881
attiny1606 = ["device-selected"]
7982
attiny1614 = ["device-selected"]
8083
attiny1626 = ["device-selected"]

README.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,25 @@ Via the feature you can select which chip you want the register specifications f
1717
| `atmega8` | `atmega8u2` | `atmega3208` | `at90usb1286` | `attiny13a` |
1818
| `atmega48p` | `atmega16u2` | `atmega3209` | | `attiny167` |
1919
| `atmega64` | `atmega32u2` | `atmega4808` | | `attiny202` |
20-
| `atmega644` | `atmega32u4` | `atmega4809` | | `attiny212` |
21-
| `atmega88p` | `avr64du32` | | | `attiny214` |
22-
| `atmega16` | `avr64du28` | | | `attiny402` |
23-
| `atmega168` | | | | `attiny404` |
24-
| `atmega324pa` | | | | `attiny412` |
25-
| `atmega328p` | | | | `attiny414` |
26-
| `atmega328pb` | | | | `attiny416` |
27-
| `atmega32a` | | | | `attiny44a` |
28-
| `atmega1280` | | | | `attiny84` |
29-
| `atmega1284p` | | | | `attiny85` |
30-
| `atmega128a` | | | | `attiny88` |
31-
| `atmega128rfa1` | | | | `attiny816` |
32-
| `atmega2560` | | | | `attiny828` |
33-
| `atmega164pa` | | | | `attiny841` |
20+
| `atmega644` | `atmega32u4` | `atmega4809` | | `attiny204` |
21+
| `atmega88p` | `avr64du32` | | | `attiny212` |
22+
| `atmega16` | `avr64du28` | | | `attiny214` |
23+
| `atmega168` | | | | `attiny402` |
24+
| `atmega324pa` | | | | `attiny404` |
25+
| `atmega328p` | | | | `attiny412` |
26+
| `atmega328pb` | | | | `attiny414` |
27+
| `atmega32a` | | | | `attiny416` |
28+
| `atmega1280` | | | | `attiny44a` |
29+
| `atmega1284p` | | | | `attiny84` |
30+
| `atmega128a` | | | | `attiny85` |
31+
| `atmega128rfa1` | | | | `attiny88` |
32+
| `atmega2560` | | | | `attiny804` |
33+
| `atmega164pa` | | | | `attiny816` |
34+
| | | | | `attiny828` |
35+
| | | | | `attiny841` |
3436
| | | | | `attiny84a` |
3537
| | | | | `attiny861` |
38+
| | | | | `attiny1604` |
3639
| | | | | `attiny1606` |
3740
| | | | | `attiny1614` |
3841
| | | | | `attiny1626` |

patch/attiny1604.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
_svd: ../svd/attiny1604.svd
2+
3+
_include:
4+
- common/attiny-xmega/common.yaml
5+
- common/attiny-xmega/0-series.yaml

patch/attiny204.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
_svd: ../svd/attiny204.svd
2+
3+
_include:
4+
- common/attiny-xmega/common.yaml
5+
- common/attiny-xmega/0-series.yaml

patch/attiny804.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
_svd: ../svd/attiny804.svd
2+
3+
_include:
4+
- common/attiny-xmega/common.yaml
5+
- common/attiny-xmega/0-series.yaml

src/devices.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,12 @@ pub mod attiny1606 {
177177
include!(concat!(env!("OUT_DIR"), "/pac/attiny1606.rs"));
178178
}
179179

180+
/// [ATtiny1604](https://www.microchip.com/wwwproducts/en/ATtiny1604)
181+
#[cfg(feature = "attiny1604")]
182+
pub mod attiny1604 {
183+
include!(concat!(env!("OUT_DIR"), "/pac/attiny1604.rs"));
184+
}
185+
180186
/// [ATtiny1614](https://www.microchip.com/wwwproducts/en/ATtiny1614)
181187
#[cfg(feature = "attiny1614")]
182188
pub mod attiny1614 {
@@ -195,6 +201,12 @@ pub mod attiny202 {
195201
include!(concat!(env!("OUT_DIR"), "/pac/attiny202.rs"));
196202
}
197203

204+
/// [ATtiny204](https://www.microchip.com/wwwproducts/en/ATtiny204)
205+
#[cfg(feature = "attiny204")]
206+
pub mod attiny204 {
207+
include!(concat!(env!("OUT_DIR"), "/pac/attiny204.rs"));
208+
}
209+
198210
/// [ATtiny212](https://www.microchip.com/wwwproducts/en/ATtiny212)
199211
#[cfg(feature = "attiny212")]
200212
pub mod attiny212 {
@@ -261,6 +273,12 @@ pub mod attiny44a {
261273
include!(concat!(env!("OUT_DIR"), "/pac/attiny44a.rs"));
262274
}
263275

276+
/// [ATtiny804](https://www.microchip.com/wwwproducts/en/ATtiny804)
277+
#[cfg(feature = "attiny804")]
278+
pub mod attiny804 {
279+
include!(concat!(env!("OUT_DIR"), "/pac/attiny804.rs"));
280+
}
281+
264282
/// [ATtiny816](https://www.microchip.com/wwwproducts/en/ATtiny816)
265283
#[cfg(feature = "attiny816")]
266284
pub mod attiny816 {

src/lib.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@
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 = "attiny1604", doc = "**attiny1604**,")]
3132
#![cfg_attr(feature = "attiny1606", doc = "**attiny1606**,")]
3233
#![cfg_attr(feature = "attiny1614", doc = "**attiny1614**,")]
3334
#![cfg_attr(feature = "attiny1626", doc = "**attiny1626**,")]
3435
#![cfg_attr(feature = "attiny202", doc = "**attiny202**,")]
36+
#![cfg_attr(feature = "attiny204", doc = "**attiny204**,")]
3537
#![cfg_attr(feature = "attiny212", doc = "**attiny212**,")]
3638
#![cfg_attr(feature = "attiny214", doc = "**attiny214**,")]
3739
#![cfg_attr(feature = "attiny2313", doc = "**attiny2313**,")]
@@ -43,6 +45,7 @@
4345
#![cfg_attr(feature = "attiny414", doc = "**attiny414**,")]
4446
#![cfg_attr(feature = "attiny416", doc = "**attiny416**,")]
4547
#![cfg_attr(feature = "attiny44a", doc = "**attiny44a**,")]
48+
#![cfg_attr(feature = "attiny804", doc = "**attiny804**,")]
4649
#![cfg_attr(feature = "attiny816", doc = "**attiny816**,")]
4750
#![cfg_attr(feature = "attiny828", doc = "**attiny828**,")]
4851
#![cfg_attr(feature = "attiny84", doc = "**attiny84**,")]
@@ -89,9 +92,11 @@
8992
//! `atmega88p`,
9093
//! `attiny13a`,
9194
//! `attiny167`,
95+
//! `attiny1604`,
9296
//! `attiny1614`,
9397
//! `attiny1626`,
9498
//! `attiny202`,
99+
//! `attiny204`,
95100
//! `attiny212`,
96101
//! `attiny214`,
97102
//! `attiny2313`,
@@ -103,6 +108,7 @@
103108
//! `attiny414`,
104109
//! `attiny416`,
105110
//! `attiny44a`,
111+
//! `attiny804`,
106112
//! `attiny816`,
107113
//! `attiny828`,
108114
//! `attiny84`,
@@ -264,20 +270,24 @@ compile_error!(
264270
* atmega88p
265271
* attiny13a
266272
* attiny167
273+
* attiny1604
267274
* attiny1606
268275
* attiny1614
269276
* attiny1626
270277
* attiny202
278+
* attiny204
271279
* attiny212
272280
* attiny214
273281
* attiny2313
274282
* attiny2313a
275283
* attiny26
276284
* attiny402
285+
* attiny404
277286
* attiny412
278287
* attiny414
279288
* attiny416
280289
* attiny44a
290+
* attiny804
281291
* attiny816
282292
* attiny828
283293
* attiny84
@@ -350,6 +360,8 @@ pub use crate::devices::atmega88p;
350360
pub use crate::devices::atmega8u2;
351361
#[cfg(feature = "attiny13a")]
352362
pub use crate::devices::attiny13a;
363+
#[cfg(feature = "attiny1604")]
364+
pub use crate::devices::attiny1604;
353365
#[cfg(feature = "attiny1606")]
354366
pub use crate::devices::attiny1606;
355367
#[cfg(feature = "attiny1614")]
@@ -360,6 +372,8 @@ pub use crate::devices::attiny1626;
360372
pub use crate::devices::attiny167;
361373
#[cfg(feature = "attiny202")]
362374
pub use crate::devices::attiny202;
375+
#[cfg(feature = "attiny204")]
376+
pub use crate::devices::attiny204;
363377
#[cfg(feature = "attiny212")]
364378
pub use crate::devices::attiny212;
365379
#[cfg(feature = "attiny214")]
@@ -382,6 +396,8 @@ pub use crate::devices::attiny414;
382396
pub use crate::devices::attiny416;
383397
#[cfg(feature = "attiny44a")]
384398
pub use crate::devices::attiny44a;
399+
#[cfg(feature = "attiny804")]
400+
pub use crate::devices::attiny804;
385401
#[cfg(feature = "attiny816")]
386402
pub use crate::devices::attiny816;
387403
#[cfg(feature = "attiny828")]

0 commit comments

Comments
 (0)