Skip to content

Commit c174483

Browse files
Merge pull request #1 from abacus-rs/dev
Major refactoring and separation of parsing/generating
2 parents 08ca1ba + 7a235b7 commit c174483

10 files changed

Lines changed: 2295 additions & 1481 deletions

File tree

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"files.insertFinalNewline": true,
3+
"editor.defaultFormatter": "rust-lang.rust-analyzer",
4+
"editor.formatOnSave": true,
5+
"rust-analyzer.server.extraEnv": {
6+
"RUSTUP_TOOLCHAIN": "nightly-2025-11-03"
7+
},
8+
"rust-analyzer.check.allTargets": false,
9+
}

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ edition = "2021"
1616

1717
[dependencies]
1818
code_gen = { path = "code_gen" }
19-
tock-registers = "0.10.0"
19+
tock-registers = "0.9.0"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Abacus, we first annotate the register `struct` as follows:
2020
peripheral_name = "Nrf5xTemp",
2121
register_base_addr = 0x4000C000,
2222
states = [
23-
Off => [Reading],
24-
Reading => [Off],
23+
(Off),
24+
(Reading),
2525
]
2626
)]
2727
struct TemperatureRegisters {
@@ -97,5 +97,5 @@ within a closure.
9797
}
9898
```
9999

100-
(see [this branch](https://github.com/abacus-mmio/tock/blob/abacus-mmio/chips/nrf5x/src/temperature.rs) for the full
100+
(see [this branch](https://github.com/abacus-rs/tock/blob/master/chips/nrf5x/src/temperature.rs) for the full
101101
example shown above)

code_gen/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ edition = "2021"
1414
[lib]
1515
proc-macro = true
1616

17-
[lints]
18-
#iworkspace = true
19-
2017
[dependencies]
2118
darling = "0.20.10"
2219
proc-macro2 = "1.0.89"

0 commit comments

Comments
 (0)