diff --git a/README.md b/README.md index 4f0ca5e..4810f1c 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,6 @@ To add a new chip: `cargo build --features ,rt`. 7. Also check the built documentation for inconsistencies, via `cargo doc --features ,rt --open` (it will pop up in your browser). -8. Update this README.md, adding the MCU to the table. ## Internals Since the vendor does not provide SVDs we can pass to [`svd2rust`][], we diff --git a/patch/attiny828.yaml b/patch/attiny828.yaml index 479155f..418b868 100644 --- a/patch/attiny828.yaml +++ b/patch/attiny828.yaml @@ -6,6 +6,375 @@ _include: - "timer/attiny828.yaml" +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 + +PORTC: + DDRC: + _add: + PC0: + description: "Pin C0" + bitRange: "[0:0]" + access: read-write + PC1: + description: "Pin C1" + bitRange: "[1:1]" + access: read-write + PC2: + description: "Pin C2" + bitRange: "[2:2]" + access: read-write + PC3: + description: "Pin C3" + bitRange: "[3:3]" + access: read-write + PC4: + description: "Pin C4" + bitRange: "[4:4]" + access: read-write + PC5: + description: "Pin C5" + bitRange: "[5:5]" + access: read-write + PC6: + description: "Pin C6" + bitRange: "[6:6]" + access: read-write + PC7: + description: "Pin C7" + bitRange: "[7:7]" + access: read-write + PINC: + _add: + PC0: + description: "Pin C0" + bitRange: "[0:0]" + access: read-write + PC1: + description: "Pin C1" + bitRange: "[1:1]" + access: read-write + PC2: + description: "Pin C2" + bitRange: "[2:2]" + access: read-write + PC3: + description: "Pin C3" + bitRange: "[3:3]" + access: read-write + PC4: + description: "Pin C4" + bitRange: "[4:4]" + access: read-write + PC5: + description: "Pin C5" + bitRange: "[5:5]" + access: read-write + PC6: + description: "Pin C6" + bitRange: "[6:6]" + access: read-write + PC7: + description: "Pin C7" + bitRange: "[7:7]" + access: read-write + PORTC: + _add: + PC0: + description: "Pin C0" + bitRange: "[0:0]" + access: read-write + PC1: + description: "Pin C1" + bitRange: "[1:1]" + access: read-write + PC2: + description: "Pin C2" + bitRange: "[2:2]" + access: read-write + PC3: + description: "Pin C3" + bitRange: "[3:3]" + access: read-write + PC4: + description: "Pin C4" + bitRange: "[4:4]" + access: read-write + PC5: + description: "Pin C5" + bitRange: "[5:5]" + access: read-write + PC6: + description: "Pin C6" + bitRange: "[6:6]" + access: read-write + PC7: + description: "Pin C7" + bitRange: "[7:7]" + access: read-write + +PORTD: + DDRD: + _add: + PD0: + description: "Pin D0" + bitRange: "[0:0]" + access: read-write + PD1: + description: "Pin D1" + bitRange: "[1:1]" + access: read-write + PD2: + description: "Pin D2" + bitRange: "[2:2]" + access: read-write + PD3: + description: "Pin D3" + bitRange: "[3:3]" + access: read-write + PIND: + _add: + PD0: + description: "Pin D0" + bitRange: "[0:0]" + access: read-write + PD1: + description: "Pin D1" + bitRange: "[1:1]" + access: read-write + PD2: + description: "Pin D2" + bitRange: "[2:2]" + access: read-write + PD3: + description: "Pin D3" + bitRange: "[3:3]" + access: read-write + PORTD: + _add: + PD0: + description: "Pin D0" + bitRange: "[0:0]" + access: read-write + PD1: + description: "Pin D1" + bitRange: "[1:1]" + access: read-write + PD2: + description: "Pin D2" + bitRange: "[2:2]" + access: read-write + PD3: + description: "Pin D3" + bitRange: "[3:3]" + access: read-write + + ADC: ADCSRA: ADPS: diff --git a/vendor/attiny828.atdf b/vendor/attiny828.atdf index 2b3af89..e3d6216 100644 --- a/vendor/attiny828.atdf +++ b/vendor/attiny828.atdf @@ -1,7 +1,12 @@ - + + + + + + @@ -862,12 +867,12 @@ - - - - - - + + + + + +