Skip to content

Commit 79dba70

Browse files
Merge pull request #39 from rust-embedded/update-mmu-structures
update MMU code
2 parents c500400 + eb950b8 commit 79dba70

File tree

3 files changed

+262
-43
lines changed

3 files changed

+262
-43
lines changed

cortex-ar/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1313
- API for inner cache maintenance as part of the new `cache` module. This includes functions to
1414
completely clean, invalidate or clean & invalidate the L1 data cache or perform data cache
1515
maintenance by MVA (specific address).
16+
- Added new `L1Section::set_section_attrs` and `L1Section::section_attrs` method. Also added
17+
low-level `L1Section::new_with_addr_upper_bits_and_attrs` constructor.
18+
19+
### Changed
20+
21+
- MMU code: Use more `arbitrary-int` types for MMU configuration bits.
22+
- Renamed `L1Section::new` to `L1Section::new_with_addr_and_attrs`.
1623

1724
## [v0.2.0]
1825

cortex-ar/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ arbitrary-int = "1.3.0"
2929
bitbybit = "1.3.3"
3030
num_enum = { version = "0.7", default-features = false }
3131
critical-section = {version = "1.2.0", features = ["restore-state-u8"], optional = true}
32+
thiserror = { version = "2", default-features = false }
3233
defmt = {version = "0.3", optional = true}
3334

3435
[build-dependencies]
@@ -42,7 +43,7 @@ critical-section-single-core = ["critical-section"]
4243
# a CAS spinlock.
4344
critical-section-multi-core = ["critical-section"]
4445
# Adds defmt::Format implementation for the register types
45-
defmt = ["dep:defmt"]
46+
defmt = ["dep:defmt", "arbitrary-int/defmt"]
4647

4748
[package.metadata.docs.rs]
4849
targets = ["armv7r-none-eabihf", "armv7r-none-eabi", "armv7a-none-eabihf"]

0 commit comments

Comments
 (0)