Skip to content

Commit 047aa12

Browse files
committed
Update for newest rust toolchain and svdtools
1 parent b9a6786 commit 047aa12

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

patch/attiny817.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ SLPCTRL:
3232
STANDBY: [1, "Standby Mode"]
3333
PDOWN: [2, "Power-down Mode"]
3434

35+
TCB0:
36+
_add:
37+
# FIXME: no idea how to add a write constraint with range [0x0, 0xFF] to
38+
# added registers to prevent bits() from being marked as unsafe
39+
CCMPL:
40+
description: Lower Compare or Capture in 8-bit PWM mode
41+
addressOffset: 0x0C
42+
access: read-write
43+
size: 8
44+
CCMPH:
45+
description: Upper Compare or Capture in 8-bit PWM mode
46+
addressOffset: 0x0D
47+
access: read-write
48+
size: 8
49+
3550
TCD0:
3651
EVCTRL?:
3752
CFG:
@@ -100,8 +115,19 @@ CPUINT:
100115

101116
EVSYS:
102117
# make ASYNCCHx, SYNCCHx, ASYNCUSERx and SYNCUSERx a rust slice
118+
_modify:
119+
"ASYNCUSER*":
120+
description: "Users of asynchronous channels"
121+
"SYNCUSER*":
122+
description: "Users of synchronous channels"
103123
_array:
104124
"ASYNCCH*": {}
105125
"SYNCCH*": {}
106126
"ASYNCUSER*": {}
107127
"SYNCUSER*": {}
128+
129+
"SIGROW":
130+
# make a bunch of registers rust slices for easier access
131+
_array:
132+
"DEVICEID?": {}
133+
"SERNUM?": {}

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
//! This crate contains register definitions for
2-
#![feature(asm_const)]
3-
42
#![cfg_attr(feature = "at90usb1286", doc = "**at90usb1286**,")]
53
#![cfg_attr(feature = "atmega1280", doc = "**atmega1280**,")]
64
#![cfg_attr(feature = "atmega1284p", doc = "**atmega1284p**,")]

0 commit comments

Comments
 (0)