Skip to content

Commit df379aa

Browse files
committed
Update CHANGELOG
1 parent 5c7f73a commit df379aa

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88
### Changed
9+
- **BREAKING**: Changed the architecture of `avr-device` such that code is now
10+
generated at build time ([#157]). This allows us to scale better and also makes the
11+
code-generation much simpler in general. No external dependencies need to be
12+
installed anymore when working on this crate.
13+
- **BREAKING**: Upgraded to svd2rust version 0.36.1 ([#157]). This leads to
14+
two big changes in the register APIs:
15+
1. Periperal names are now lowercase, following rust conventions.
16+
2. Registers are now accessed through functions instead of struct members.
17+
18+
In practice, this means you will have to do the following changes throughout
19+
your codebase:
20+
```diff
21+
-dp.PORTD.portd.write(|w| w.pd3().clear_bit());
22+
+dp.portd.portd().write(|w| w.pd3().clear_bit());
23+
24+
-dp.TC0.tccr0b.write(|w| w.cs0().prescale_1024());
25+
+dp.tc0.tccr0b().write(|w| w.cs0().prescale_1024());
26+
```
927
- Switched to the rust version of svdtools ([#174]).
1028
- Better register definitions for peripherals of the ATmega128RFA1 ([#173]).
1129

30+
[#157]: https://github.com/Rahix/avr-device/pull/157
1231
[#173]: https://github.com/Rahix/avr-device/pull/173
1332
[#174]: https://github.com/Rahix/avr-device/pull/174
1433

0 commit comments

Comments
 (0)