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

Add support for ATtiny261A, ATtiny461A, ATtiny861A #179

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
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,22 @@ attiny214 = ["device-selected"]
attiny2313 = ["device-selected"]
attiny2313a = ["device-selected"]
attiny26 = ["device-selected"]
attiny261a = ["device-selected"]
attiny402 = ["device-selected"]
attiny404 = ["device-selected"]
attiny412 = ["device-selected"]
attiny414 = ["device-selected"]
attiny416 = ["device-selected"]
attiny44a = ["device-selected"]
attiny461a = ["device-selected"]
attiny816 = ["device-selected"]
attiny828 = ["device-selected"]
attiny84 = ["device-selected"]
attiny841 = ["device-selected"]
attiny84a = ["device-selected"]
attiny85 = ["device-selected"]
attiny861 = ["device-selected"]
attiny861a = ["device-selected"]
attiny88 = ["device-selected"]
attiny1614 = ["device-selected"]
avr64du32 = ["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 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 attiny212 attiny214 attiny2313 attiny2313a attiny26 attiny261a attiny402 attiny404 attiny412 attiny414 attiny416 attiny44a attiny461a attiny84 attiny85 attiny88 attiny816 attiny828 attiny841 attiny84a attiny861 attiny861a attiny167 attiny1614 avr64du32 avr64du28

RUSTUP_TOOLCHAIN ?= nightly

Expand Down
34 changes: 19 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,27 @@ Via the feature you can select which chip you want the register specifications f
| `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` |
| `atmega16` | `avr64du28` | | | `attiny26` |
| `atmega168` | | | | `attiny261a` |
| `atmega324pa` | | | | `attiny402` |
| `atmega328p` | | | | `attiny404` |
| `atmega328pb` | | | | `attiny412` |
| `atmega32a` | | | | `attiny414` |
| `atmega1280` | | | | `attiny416` |
| `atmega1284p` | | | | `attiny44a` |
| `atmega128a` | | | | `attiny461a` |
| `atmega128rfa1` | | | | `attiny84` |
| `atmega2560` | | | | `attiny85` |
| `atmega164pa` | | | | `attiny88` |
| | | | | `attiny816` |
| | | | | `attiny828` |
| | | | | `attiny841` |
| | | | | `attiny84a` |
| | | | | `attiny861` |
| | | | | `attiny1614` |
| | | | | `attiny2313` |
| | | | | `attiny2313a` |
| | | | | `attiny861a` |
| | | | | `attiny1614` |
| | | | | `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
209 changes: 1 addition & 208 deletions patch/attiny26.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ _include:
- "common/ac.yaml"
- "common/wdt.yaml"
- "common/tiny/usi.yaml"
- "common/tiny/attinyx61a-ports.yaml"

# All FUSEs are read-only from the CPU.
FUSE:
Expand Down Expand Up @@ -76,211 +77,3 @@ ADC:
AREF: [1, "External Voltage Reference at AREF pin, Internal Voltage Reference turned off"]
INTERNAL: [2, "Internal 2.56V Voltage Reference without external bypass"]
INTERNAL_BYPASS: [3, "Internal 2.56V Voltage Reference with external bypass capacitor at AREF pin"]

PORTA:
DDRA:
_add:
PA0:
description: "Pin A0"
bitRange: "[0:0]"
access: read-write
PA1:
description: "Pin A1"
bitRange: "[1:1]"
access: read-write
PA2:
description: "Pin A2"
bitRange: "[2:2]"
access: read-write
PA3:
description: "Pin A3"
bitRange: "[3:3]"
access: read-write
PA4:
description: "Pin A4"
bitRange: "[4:4]"
access: read-write
PA5:
description: "Pin A5"
bitRange: "[5:5]"
access: read-write
PA6:
description: "Pin A6"
bitRange: "[6:6]"
access: read-write
PA7:
description: "Pin A7"
bitRange: "[7:7]"
access: read-write
PINA:
_add:
PA0:
description: "Pin A0"
bitRange: "[0:0]"
access: read-write
PA1:
description: "Pin A1"
bitRange: "[1:1]"
access: read-write
PA2:
description: "Pin A2"
bitRange: "[2:2]"
access: read-write
PA3:
description: "Pin A3"
bitRange: "[3:3]"
access: read-write
PA4:
description: "Pin A4"
bitRange: "[4:4]"
access: read-write
PA5:
description: "Pin A5"
bitRange: "[5:5]"
access: read-write
PA6:
description: "Pin A6"
bitRange: "[6:6]"
access: read-write
PA7:
description: "Pin A7"
bitRange: "[7:7]"
access: read-write
PORTA:
_add:
PA0:
description: "Pin A0"
bitRange: "[0:0]"
access: read-write
PA1:
description: "Pin A1"
bitRange: "[1:1]"
access: read-write
PA2:
description: "Pin A2"
bitRange: "[2:2]"
access: read-write
PA3:
description: "Pin A3"
bitRange: "[3:3]"
access: read-write
PA4:
description: "Pin A4"
bitRange: "[4:4]"
access: read-write
PA5:
description: "Pin A5"
bitRange: "[5:5]"
access: read-write
PA6:
description: "Pin A6"
bitRange: "[6:6]"
access: read-write
PA7:
description: "Pin A7"
bitRange: "[7:7]"
access: read-write

PORTB:
DDRB:
_add:
PB0:
description: "Pin B0"
bitRange: "[0:0]"
access: read-write
PB1:
description: "Pin B1"
bitRange: "[1:1]"
access: read-write
PB2:
description: "Pin B2"
bitRange: "[2:2]"
access: read-write
PB3:
description: "Pin B3"
bitRange: "[3:3]"
access: read-write
PB4:
description: "Pin B4"
bitRange: "[4:4]"
access: read-write
PB5:
description: "Pin B5"
bitRange: "[5:5]"
access: read-write
PB6:
description: "Pin B6"
bitRange: "[6:6]"
access: read-write
PB7:
description: "Pin B7"
bitRange: "[7:7]"
access: read-write
PINB:
_add:
PB0:
description: "Pin B0"
bitRange: "[0:0]"
access: read-write
PB1:
description: "Pin B1"
bitRange: "[1:1]"
access: read-write
PB2:
description: "Pin B2"
bitRange: "[2:2]"
access: read-write
PB3:
description: "Pin B3"
bitRange: "[3:3]"
access: read-write
PB4:
description: "Pin B4"
bitRange: "[4:4]"
access: read-write
PB5:
description: "Pin B5"
bitRange: "[5:5]"
access: read-write
PB6:
description: "Pin B6"
bitRange: "[6:6]"
access: read-write
PB7:
description: "Pin B7"
bitRange: "[7:7]"
access: read-write
PORTB:
_add:
PB0:
description: "Pin B0"
bitRange: "[0:0]"
access: read-write
PB1:
description: "Pin B1"
bitRange: "[1:1]"
access: read-write
PB2:
description: "Pin B2"
bitRange: "[2:2]"
access: read-write
PB3:
description: "Pin B3"
bitRange: "[3:3]"
access: read-write
PB4:
description: "Pin B4"
bitRange: "[4:4]"
access: read-write
PB5:
description: "Pin B5"
bitRange: "[5:5]"
access: read-write
PB6:
description: "Pin B6"
bitRange: "[6:6]"
access: read-write
PB7:
description: "Pin B7"
bitRange: "[7:7]"
access: read-write
16 changes: 16 additions & 0 deletions patch/attiny261a.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
_svd: ../svd/attiny261a.svd

_include:
- "common/ac.yaml"
- "common/tiny/attinyx61a-adc.yaml"
- "common/tiny/attinyx61a-ports.yaml"
- "common/tiny/usi.yaml"
- "common/wdt.yaml"
- "timer/attiny861.yaml"
- "common/tiny/attinyx61a-timers.yaml"

# All FUSEs are read-only from the CPU.
FUSE:
_modify:
"*":
access: read-only
16 changes: 16 additions & 0 deletions patch/attiny461a.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
_svd: ../svd/attiny461a.svd

_include:
- "common/ac.yaml"
- "common/tiny/attinyx61a-adc.yaml"
- "common/tiny/attinyx61a-ports.yaml"
- "common/tiny/usi.yaml"
- "common/wdt.yaml"
- "timer/attiny861.yaml"
- "common/tiny/attinyx61a-timers.yaml"

# All FUSEs are read-only from the CPU.
FUSE:
_modify:
"*":
access: read-only
16 changes: 16 additions & 0 deletions patch/attiny861a.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
_svd: ../svd/attiny861a.svd

_include:
- "common/ac.yaml"
- "common/tiny/attinyx61a-adc.yaml"
- "common/tiny/attinyx61a-ports.yaml"
- "common/tiny/usi.yaml"
- "common/wdt.yaml"
- "timer/attiny861.yaml"
- "common/tiny/attinyx61a-timers.yaml"

# All FUSEs are read-only from the CPU.
FUSE:
_modify:
"*":
access: read-only
Loading
Loading