Skip to content

Commit

Permalink
Add basic support for ATtiny84A
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Darr <[email protected]>
  • Loading branch information
MichaelDarr committed Nov 29, 2023
1 parent 2298f0b commit 325e8ef
Show file tree
Hide file tree
Showing 7 changed files with 831 additions and 5 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ attiny816 = ["device-selected"]
attiny828 = ["device-selected"]
attiny84 = ["device-selected"]
attiny841 = ["device-selected"]
attiny84a = ["device-selected"]
attiny85 = ["device-selected"]
attiny861 = ["device-selected"]
attiny88 = ["device-selected"]
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
all: deps chips

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
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

RUSTUP_TOOLCHAIN ?= nightly

Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ Via the feature you can select which chip you want the register specifications f
| `atmega32a` | | | | `attiny816` |
| `atmega1280` | | | | `attiny828` |
| `atmega1284p` | | | | `attiny841` |
| `atmega128a` | | | | `attiny861` |
| `atmega128rfa1` | | | | `attiny1614` |
| `atmega2560` | | | | `attiny2313` |
| `atmega164pa` | | | | `attiny2313a` |
| `atmega128a` | | | | `attiny84a` |
| `atmega128rfa1` | | | | `attiny861` |
| `atmega2560` | | | | `attiny1614` |
| `atmega164pa` | | | | `attiny2313` |
| | | | | `attiny2313a` |

## Build Instructions
The version on `crates.io` is pre-built. The following is only necessary when trying to build this crate from source.
Expand Down
1 change: 1 addition & 0 deletions patch/attiny84a.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_svd: ../svd/attiny84a.svd
4 changes: 4 additions & 0 deletions src/devices/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ pub mod attiny84;
#[cfg(feature = "attiny841")]
pub mod attiny841;

/// [ATtiny84a](https://www.microchip.com/en-us/product/ATtiny84a)
#[cfg(feature = "attiny84a")]
pub mod attiny84a;

/// [ATtiny85](https://www.microchip.com/wwwproducts/en/ATtiny85)
#[cfg(feature = "attiny85")]
pub mod attiny85;
Expand Down
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#![cfg_attr(feature = "attiny828", doc = "**attiny828**,")]
#![cfg_attr(feature = "attiny84", doc = "**attiny84**,")]
#![cfg_attr(feature = "attiny841", doc = "**attiny841**,")]
#![cfg_attr(feature = "attiny84a", doc = "**attiny84a**,")]
#![cfg_attr(feature = "attiny85", doc = "**attiny85**,")]
#![cfg_attr(feature = "attiny861", doc = "**attiny861**,")]
#![cfg_attr(feature = "attiny88", doc = "**attiny88**,")]
Expand Down Expand Up @@ -77,6 +78,7 @@
//! `attiny828`,
//! `attiny84`,
//! `attiny841`,
//! `attiny84a`,
//! `attiny85`,
//! `attiny861`,
//! `attiny88`,
Expand Down Expand Up @@ -234,6 +236,7 @@ compile_error!(
* attiny828
* attiny84
* attiny841
* attiny84a
* attiny85
* attiny861
* attiny88
Expand Down Expand Up @@ -309,6 +312,8 @@ pub use crate::devices::attiny828;
pub use crate::devices::attiny84;
#[cfg(feature = "attiny841")]
pub use crate::devices::attiny841;
#[cfg(feature = "attiny84a")]
pub use crate::devices::attiny84a;
#[cfg(feature = "attiny85")]
pub use crate::devices::attiny85;
#[cfg(feature = "attiny861")]
Expand Down
Loading

0 comments on commit 325e8ef

Please sign in to comment.