Skip to content

Commit 3deda0c

Browse files
authored
Add basic support for ATtiny84A
1 parent 2298f0b commit 3deda0c

File tree

7 files changed

+834
-5
lines changed

7 files changed

+834
-5
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ attiny816 = ["device-selected"]
5656
attiny828 = ["device-selected"]
5757
attiny84 = ["device-selected"]
5858
attiny841 = ["device-selected"]
59+
attiny84a = ["device-selected"]
5960
attiny85 = ["device-selected"]
6061
attiny861 = ["device-selected"]
6162
attiny88 = ["device-selected"]

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +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
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 attiny84a attiny861 attiny167 attiny1614
44

55
RUSTUP_TOOLCHAIN ?= nightly
66

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ Via the feature you can select which chip you want the register specifications f
2626
| `atmega32a` | | | | `attiny816` |
2727
| `atmega1280` | | | | `attiny828` |
2828
| `atmega1284p` | | | | `attiny841` |
29-
| `atmega128a` | | | | `attiny861` |
30-
| `atmega128rfa1` | | | | `attiny1614` |
31-
| `atmega2560` | | | | `attiny2313` |
32-
| `atmega164pa` | | | | `attiny2313a` |
29+
| `atmega128a` | | | | `attiny84a` |
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/attiny84a.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
_svd: ../svd/attiny84a.svd
2+
3+
_include:
4+
- "common/eeprom.yaml"

src/devices/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ pub mod attiny84;
135135
#[cfg(feature = "attiny841")]
136136
pub mod attiny841;
137137

138+
/// [ATtiny84a](https://www.microchip.com/en-us/product/ATtiny84a)
139+
#[cfg(feature = "attiny84a")]
140+
pub mod attiny84a;
141+
138142
/// [ATtiny85](https://www.microchip.com/wwwproducts/en/ATtiny85)
139143
#[cfg(feature = "attiny85")]
140144
pub mod attiny85;

src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#![cfg_attr(feature = "attiny828", doc = "**attiny828**,")]
3434
#![cfg_attr(feature = "attiny84", doc = "**attiny84**,")]
3535
#![cfg_attr(feature = "attiny841", doc = "**attiny841**,")]
36+
#![cfg_attr(feature = "attiny84a", doc = "**attiny84a**,")]
3637
#![cfg_attr(feature = "attiny85", doc = "**attiny85**,")]
3738
#![cfg_attr(feature = "attiny861", doc = "**attiny861**,")]
3839
#![cfg_attr(feature = "attiny88", doc = "**attiny88**,")]
@@ -77,6 +78,7 @@
7778
//! `attiny828`,
7879
//! `attiny84`,
7980
//! `attiny841`,
81+
//! `attiny84a`,
8082
//! `attiny85`,
8183
//! `attiny861`,
8284
//! `attiny88`,
@@ -234,6 +236,7 @@ compile_error!(
234236
* attiny828
235237
* attiny84
236238
* attiny841
239+
* attiny84a
237240
* attiny85
238241
* attiny861
239242
* attiny88
@@ -309,6 +312,8 @@ pub use crate::devices::attiny828;
309312
pub use crate::devices::attiny84;
310313
#[cfg(feature = "attiny841")]
311314
pub use crate::devices::attiny841;
315+
#[cfg(feature = "attiny84a")]
316+
pub use crate::devices::attiny84a;
312317
#[cfg(feature = "attiny85")]
313318
pub use crate::devices::attiny85;
314319
#[cfg(feature = "attiny861")]

0 commit comments

Comments
 (0)