Skip to content

Commit 8a384b4

Browse files
committed
fixup: move result into riscv-pac
1 parent b2f0c34 commit 8a384b4

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

riscv-pac/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Add `result` module for `Error` and `Result` types
13+
1014
## [v0.1.1] - 2024-02-15
1115

1216
- Fix crates.io badge links

riscv-pac/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![no_std]
22

3+
pub mod result;
4+
35
/// Trait for enums of target-specific external interrupt numbers.
46
///
57
/// This trait should be implemented by a peripheral access crate (PAC)
File renamed without changes.

riscv/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ critical-section-single-hart = ["critical-section/restore-state-bool"]
2626
[dependencies]
2727
critical-section = "1.1.2"
2828
embedded-hal = "1.0.0"
29+
riscv-pac = { path = "../riscv-pac", version = "0.1.1", default-features = false }

riscv/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub(crate) mod bits;
4040
pub mod delay;
4141
pub mod interrupt;
4242
pub mod register;
43-
pub mod result;
43+
pub use riscv_pac::result;
4444

4545
#[macro_use]
4646
mod macros;

0 commit comments

Comments
 (0)