Skip to content

Commit

Permalink
Add support for AVR64DU32 and AVR64DU28
Browse files Browse the repository at this point in the history
  • Loading branch information
jwagen authored Apr 14, 2024
1 parent 42ece7b commit ce09df2
Show file tree
Hide file tree
Showing 9 changed files with 12,515 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ attiny85 = ["device-selected"]
attiny861 = ["device-selected"]
attiny88 = ["device-selected"]
attiny1614 = ["device-selected"]
avr64du32 = ["device-selected"]
avr64du28 = ["device-selected"]
rt = ["avr-device-macros"]

critical-section-impl = ["critical-section/restore-state-u8"]
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 attiny84a 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 avr64du32 avr64du28

RUSTUP_TOOLCHAIN ?= nightly

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Via the feature you can select which chip you want the register specifications f
| :-------------: | :----------: | :---------------: | :-----------: | :-----------: |
| `atmega8` | `atmega8u2` | `atmega4808` | `at90usb1286` | `attiny13a` |
| `atmega48p` | `atmega32u4` | `atmega4809` | | `attiny167` |
| `atmega64` | | | | `attiny202` |
| `atmega644` | | | | `attiny402` |
| `atmega64` | `avr64du32` | | | `attiny202` |
| `atmega644` | `avr64du28` | | | `attiny402` |
| `atmega88p` | | | | `attiny404` |
| `atmega168` | | | | `attiny44a` |
| `atmega324pa` | | | | `attiny84` |
Expand Down
1 change: 1 addition & 0 deletions patch/avr64du28.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_svd: ../svd/avr64du28.svd
1 change: 1 addition & 0 deletions patch/avr64du32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_svd: ../svd/avr64du32.svd
8 changes: 8 additions & 0 deletions src/devices/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,11 @@ pub mod attiny861;
/// [ATtiny88](https://www.microchip.com/wwwproducts/en/ATtiny88)
#[cfg(feature = "attiny88")]
pub mod attiny88;

/// [AVR64DU32](https://www.microchip.com/wwwproducts/en/AVR64DU32)
#[cfg(feature = "avr64du32")]
pub mod avr64du32;

/// [AVR64DU28](https://www.microchip.com/wwwproducts/en/AVR64DU28)
#[cfg(feature = "avr64du28")]
pub mod avr64du28;
10 changes: 10 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#![cfg_attr(feature = "attiny85", doc = "**attiny85**,")]
#![cfg_attr(feature = "attiny861", doc = "**attiny861**,")]
#![cfg_attr(feature = "attiny88", doc = "**attiny88**,")]
#![cfg_attr(feature = "avr64du32", doc = "**avr64du32**,")]
#![cfg_attr(feature = "avr64du28", doc = "**avr64du28**,")]
//! and a few things which apply to AVR microcontrollers generally.
//!
#![cfg_attr(
Expand Down Expand Up @@ -82,6 +84,8 @@
//! `attiny85`,
//! `attiny861`,
//! `attiny88`,
//! `avr64du32`,
//! `avr64du28`,
//!
//! # How to use this crate?
//!
Expand Down Expand Up @@ -240,6 +244,8 @@ compile_error!(
* attiny85
* attiny861
* attiny88
* avr64du32
* avr64du28
"
);

Expand Down Expand Up @@ -320,3 +326,7 @@ pub use crate::devices::attiny85;
pub use crate::devices::attiny861;
#[cfg(feature = "attiny88")]
pub use crate::devices::attiny88;
#[cfg(feature = "avr64du32")]
pub use crate::devices::avr64du32;
#[cfg(feature = "avr64du28")]
pub use crate::devices::avr64du28;
Loading

0 comments on commit ce09df2

Please sign in to comment.