Skip to content

Commit eba39bd

Browse files
committed
Basic ATtiny817 support
1 parent 2298f0b commit eba39bd

File tree

7 files changed

+5749
-8
lines changed

7 files changed

+5749
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ attiny402 = ["device-selected"]
5353
attiny404 = ["device-selected"]
5454
attiny44a = ["device-selected"]
5555
attiny816 = ["device-selected"]
56+
attiny817 = ["device-selected"]
5657
attiny828 = ["device-selected"]
5758
attiny84 = ["device-selected"]
5859
attiny841 = ["device-selected"]

Makefile

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

3-
CHIPS := at90usb1286 atmega1280 atmega1284p atmega128a atmega128rfa1 atmega164pa atmega168 atmega2560 atmega8 atmega8u2 atmega324pa atmega328p atmega328pb atmega32a atmega32u4 atmega4808 atmega4809 atmega48p atmega64 atmega644 atmega88p attiny13a attiny202 attiny2313 attiny2313a attiny402 attiny404 attiny44a attiny84 attiny85 attiny88 attiny816 attiny828 attiny841 attiny861 attiny167 attiny1614
4-
3+
CHIPS := at90usb1286 atmega1280 atmega1284p atmega128a atmega128rfa1 atmega164pa atmega168 atmega2560 atmega8 atmega8u2 atmega324pa atmega328p atmega328pb atmega32a atmega32u4 atmega4808 atmega4809 atmega48p atmega64 atmega644 atmega88p attiny13a attiny202 attiny2313 attiny2313a attiny402 attiny404 attiny44a attiny84 attiny85 attiny88 attiny816 attiny817 attiny828 attiny841 attiny861 attiny167 attiny1614
54
RUSTUP_TOOLCHAIN ?= nightly
65

76
PATCHES := $(foreach chip, $(CHIPS), $(wildcard patch/$(chip).yaml))

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ Via the feature you can select which chip you want the register specifications f
2424
| `atmega328p` | | | | `attiny85` |
2525
| `atmega328pb` | | | | `attiny88` |
2626
| `atmega32a` | | | | `attiny816` |
27-
| `atmega1280` | | | | `attiny828` |
28-
| `atmega1284p` | | | | `attiny841` |
29-
| `atmega128a` | | | | `attiny861` |
30-
| `atmega128rfa1` | | | | `attiny1614` |
31-
| `atmega2560` | | | | `attiny2313` |
32-
| `atmega164pa` | | | | `attiny2313a` |
27+
| `atmega1280` | | | | `attiny817` |
28+
| `atmega1284p` | | | | `attiny828` |
29+
| `atmega128a` | | | | `attiny841` |
30+
| `atmega128rfa1` | | | | `attiny861` |
31+
| `atmega2560` | | | | `attiny1614` |
32+
| `atmega164pa` | | | | `attiny2313` |
33+
| | | | | `attiny2313a` |
3334

3435
## Build Instructions
3536
The version on `crates.io` is pre-built. The following is only necessary when trying to build this crate from source.

patch/attiny817.yaml

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

src/devices/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ pub mod attiny44a;
123123
#[cfg(feature = "attiny816")]
124124
pub mod attiny816;
125125

126+
/// [ATtiny817](https://www.microchip.com/wwwproducts/en/ATtiny817)
127+
#[cfg(feature = "attiny817")]
128+
pub mod attiny817;
129+
126130
/// [ATtiny828](https://www.microchip.com/wwwproducts/en/ATtiny828)
127131
#[cfg(feature = "attiny828")]
128132
pub mod attiny828;

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#![cfg_attr(feature = "attiny404", doc = "**attiny404**,")]
3131
#![cfg_attr(feature = "attiny44a", doc = "**attiny44a**,")]
3232
#![cfg_attr(feature = "attiny816", doc = "**attiny816**,")]
33+
#![cfg_attr(feature = "attiny817", doc = "**attiny817**,")]
3334
#![cfg_attr(feature = "attiny828", doc = "**attiny828**,")]
3435
#![cfg_attr(feature = "attiny84", doc = "**attiny84**,")]
3536
#![cfg_attr(feature = "attiny841", doc = "**attiny841**,")]
@@ -74,6 +75,7 @@
7475
//! `attiny404`,
7576
//! `attiny44a`,
7677
//! `attiny816`,
78+
//! `attiny817`,
7779
//! `attiny828`,
7880
//! `attiny84`,
7981
//! `attiny841`,
@@ -231,6 +233,7 @@ compile_error!(
231233
* attiny402
232234
* attiny44a
233235
* attiny816
236+
* attiny817
234237
* attiny828
235238
* attiny84
236239
* attiny841
@@ -303,6 +306,8 @@ pub use crate::devices::attiny404;
303306
pub use crate::devices::attiny44a;
304307
#[cfg(feature = "attiny816")]
305308
pub use crate::devices::attiny816;
309+
#[cfg(feature = "attiny817")]
310+
pub use crate::devices::attiny817;
306311
#[cfg(feature = "attiny828")]
307312
pub use crate::devices::attiny828;
308313
#[cfg(feature = "attiny84")]

0 commit comments

Comments
 (0)