Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rounding out ATtiny 14-pin 0-series with 204/804/1604 support #182

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,32 @@ atmega1284p = ["device-selected"]
atmega128a = ["device-selected"]
atmega128rfa1 = ["device-selected"]
atmega16 = ["device-selected"]
atmega16u2 = ["device-selected"]
atmega164pa = ["device-selected"]
atmega168 = ["device-selected"]
atmega16u2 = ["device-selected"]
atmega2560 = ["device-selected"]
atmega8 = ["device-selected"]
atmega8u2 = ["device-selected"]
atmega3208 = ["device-selected"]
atmega3209 = ["device-selected"]
atmega324pa = ["device-selected"]
atmega328p = ["device-selected"]
atmega328pb = ["device-selected"]
atmega3208 = ["device-selected"]
atmega3209 = ["device-selected"]
atmega4808 = ["device-selected"]
atmega4809 = ["device-selected"]
atmega48p = ["device-selected"]
atmega32a = ["device-selected"]
atmega32u2 = ["device-selected"]
atmega32u4 = ["device-selected"]
atmega4808 = ["device-selected"]
atmega4809 = ["device-selected"]
atmega48p = ["device-selected"]
atmega64 = ["device-selected"]
atmega644 = ["device-selected"]
atmega8 = ["device-selected"]
atmega8u2 = ["device-selected"]
atmega88p = ["device-selected"]
attiny13a = ["device-selected"]
attiny1604 = ["device-selected"]
attiny1614 = ["device-selected"]
attiny167 = ["device-selected"]
attiny202 = ["device-selected"]
attiny204 = ["device-selected"]
attiny212 = ["device-selected"]
attiny214 = ["device-selected"]
attiny2313 = ["device-selected"]
Expand All @@ -63,6 +66,7 @@ attiny412 = ["device-selected"]
attiny414 = ["device-selected"]
attiny416 = ["device-selected"]
attiny44a = ["device-selected"]
attiny804 = ["device-selected"]
attiny816 = ["device-selected"]
attiny828 = ["device-selected"]
attiny84 = ["device-selected"]
Expand All @@ -71,9 +75,8 @@ attiny84a = ["device-selected"]
attiny85 = ["device-selected"]
attiny861 = ["device-selected"]
attiny88 = ["device-selected"]
attiny1614 = ["device-selected"]
avr64du32 = ["device-selected"]
avr64du28 = ["device-selected"]
avr64du32 = ["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 atmega16 atmega164pa atmega168 atmega16u2 atmega2560 atmega8 atmega8u2 atmega324pa atmega328p atmega328pb atmega32a atmega32u2 atmega32u4 atmega3208 atmega3209 atmega4808 atmega4809 atmega48p atmega64 atmega644 atmega88p attiny13a attiny202 attiny212 attiny214 attiny2313 attiny2313a attiny26 attiny402 attiny404 attiny412 attiny414 attiny416 attiny44a attiny84 attiny85 attiny88 attiny816 attiny828 attiny841 attiny84a attiny861 attiny167 attiny1614 avr64du32 avr64du28
CHIPS := at90usb1286 atmega1280 atmega1284p atmega128a atmega128rfa1 atmega16 atmega164pa atmega168 atmega16u2 atmega2560 atmega8 atmega8u2 atmega324pa atmega328p atmega328pb atmega32a atmega32u2 atmega32u4 atmega3208 atmega3209 atmega4808 atmega4809 atmega48p atmega64 atmega644 atmega88p attiny13a attiny202 attiny204 attiny212 attiny214 attiny2313 attiny2313a attiny26 attiny402 attiny404 attiny412 attiny414 attiny416 attiny44a attiny84 attiny85 attiny88 attiny804 attiny816 attiny828 attiny841 attiny84a attiny861 attiny167 attiny1604 attiny1614 avr64du32 avr64du28

RUSTUP_TOOLCHAIN ?= nightly

Expand Down
31 changes: 17 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,25 @@ Via the feature you can select which chip you want the register specifications f
| `atmega8` | `atmega8u2` | `atmega3208` | `at90usb1286` | `attiny13a` |
| `atmega48p` | `atmega16u2` | `atmega3209` | | `attiny167` |
| `atmega64` | `atmega32u2` | `atmega4808` | | `attiny202` |
| `atmega644` | `atmega32u4` | `atmega4809` | | `attiny212` |
| `atmega88p` | `avr64du32` | | | `attiny214` |
| `atmega16` | `avr64du28` | | | `attiny402` |
| `atmega168` | | | | `attiny404` |
| `atmega324pa` | | | | `attiny412` |
| `atmega328p` | | | | `attiny414` |
| `atmega328pb` | | | | `attiny416` |
| `atmega32a` | | | | `attiny44a` |
| `atmega1280` | | | | `attiny84` |
| `atmega1284p` | | | | `attiny85` |
| `atmega128a` | | | | `attiny88` |
| `atmega128rfa1` | | | | `attiny816` |
| `atmega2560` | | | | `attiny828` |
| `atmega164pa` | | | | `attiny841` |
| `atmega644` | `atmega32u4` | `atmega4809` | | `attiny204` |
| `atmega88p` | `avr64du32` | | | `attiny212` |
| `atmega16` | `avr64du28` | | | `attiny214` |
| `atmega168` | | | | `attiny402` |
| `atmega324pa` | | | | `attiny404` |
| `atmega328p` | | | | `attiny412` |
| `atmega328pb` | | | | `attiny414` |
| `atmega32a` | | | | `attiny416` |
| `atmega1280` | | | | `attiny44a` |
| `atmega1284p` | | | | `attiny84` |
| `atmega128a` | | | | `attiny85` |
| `atmega128rfa1` | | | | `attiny88` |
| `atmega2560` | | | | `attiny804` |
| `atmega164pa` | | | | `attiny816` |
| | | | | `attiny828` |
| | | | | `attiny841` |
| | | | | `attiny84a` |
| | | | | `attiny861` |
| | | | | `attiny1604` |
| | | | | `attiny1614` |
| | | | | `attiny2313` |
| | | | | `attiny2313a` |
Expand Down
5 changes: 5 additions & 0 deletions patch/attiny1604.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
_svd: ../svd/attiny1604.svd

_include:
- common/attiny-xmega/common.yaml
- common/attiny-xmega/0-series.yaml
5 changes: 5 additions & 0 deletions patch/attiny204.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
_svd: ../svd/attiny204.svd

_include:
- common/attiny-xmega/common.yaml
- common/attiny-xmega/0-series.yaml
5 changes: 5 additions & 0 deletions patch/attiny804.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
_svd: ../svd/attiny804.svd

_include:
- common/attiny-xmega/common.yaml
- common/attiny-xmega/0-series.yaml
65 changes: 38 additions & 27 deletions src/devices/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#[allow(private_no_mangle_statics)]
#[no_mangle]
pub(crate) static mut DEVICE_PERIPHERALS: bool = false;

/// [AT90USB1286](https://www.microchip.com/wwwproducts/en/AT90USB1286)
#[cfg(feature = "at90usb1286")]
pub mod at90usb1286;
Expand Down Expand Up @@ -59,14 +58,6 @@ pub mod atmega328pb;
#[cfg(feature = "atmega32a")]
pub mod atmega32a;

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

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

/// [ATmega3208](https://www.microchip.com/wwwproducts/en/ATmega3208)
#[cfg(feature = "atmega3208")]
pub mod atmega3208;
Expand All @@ -75,6 +66,14 @@ pub mod atmega3208;
#[cfg(feature = "atmega3209")]
pub mod atmega3209;

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

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

/// [ATmega4808](https://www.microchip.com/wwwproducts/en/ATmega4808)
#[cfg(feature = "atmega4808")]
pub mod atmega4808;
Expand All @@ -87,14 +86,6 @@ pub mod atmega4809;
#[cfg(feature = "atmega48p")]
pub mod atmega48p;

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

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

/// [ATmega64](https://www.microchip.com/wwwproducts/en/ATmega64)
#[cfg(feature = "atmega64")]
pub mod atmega64;
Expand All @@ -103,6 +94,14 @@ pub mod atmega64;
#[cfg(feature = "atmega644")]
pub mod atmega644;

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

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

/// [ATmega88P](https://www.microchip.com/wwwproducts/en/ATmega88P)
#[cfg(feature = "atmega88p")]
pub mod atmega88p;
Expand All @@ -111,9 +110,9 @@ pub mod atmega88p;
#[cfg(feature = "attiny13a")]
pub mod attiny13a;

/// [ATtiny167](https://www.microchip.com/wwwproducts/en/ATtiny167)
#[cfg(feature = "attiny167")]
pub mod attiny167;
/// [ATtiny1604](https://www.microchip.com/wwwproducts/en/ATtiny1604)
#[cfg(feature = "attiny1604")]
pub mod attiny1604;

/// [ATtiny1614](https://www.microchip.com/wwwproducts/en/ATtiny1614)
#[cfg(feature = "attiny1614")]
Expand All @@ -123,6 +122,10 @@ pub mod attiny1614;
#[cfg(feature = "attiny202")]
pub mod attiny202;

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

/// [ATtiny212](https://www.microchip.com/wwwproducts/en/ATtiny212)
#[cfg(feature = "attiny212")]
pub mod attiny212;
Expand All @@ -143,11 +146,11 @@ pub mod attiny2313a;
#[cfg(feature = "attiny26")]
pub mod attiny26;

/// [ATtiny402](https://www.microchip.com/en-us/product/ATTINY402)
/// [ATtiny402](https://www.microchip.com/en-us/product/ATTiny402)
#[cfg(feature = "attiny402")]
pub mod attiny402;

/// [ATtiny404](https://www.microchip.com/en-us/product/ATTINY404)
/// [ATtiny404](https://www.microchip.com/en-us/product/ATTiny404)
#[cfg(feature = "attiny404")]
pub mod attiny404;

Expand All @@ -163,10 +166,14 @@ pub mod attiny414;
#[cfg(feature = "attiny416")]
pub mod attiny416;

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

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

/// [ATtiny816](https://www.microchip.com/wwwproducts/en/ATtiny816)
#[cfg(feature = "attiny816")]
pub mod attiny816;
Expand All @@ -183,7 +190,7 @@ pub mod attiny84;
#[cfg(feature = "attiny841")]
pub mod attiny841;

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

Expand All @@ -199,10 +206,14 @@ pub mod attiny861;
#[cfg(feature = "attiny88")]
pub mod attiny88;

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

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

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