Skip to content

Commit

Permalink
fixup: move result into riscv-pac
Browse files Browse the repository at this point in the history
  • Loading branch information
rmsyn committed Jul 4, 2024
1 parent b2f0c34 commit 8a384b4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions riscv-pac/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Added

- Add `result` module for `Error` and `Result` types

## [v0.1.1] - 2024-02-15

- Fix crates.io badge links
Expand Down
2 changes: 2 additions & 0 deletions riscv-pac/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#![no_std]

pub mod result;

/// Trait for enums of target-specific external interrupt numbers.
///
/// This trait should be implemented by a peripheral access crate (PAC)
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions riscv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ critical-section-single-hart = ["critical-section/restore-state-bool"]
[dependencies]
critical-section = "1.1.2"
embedded-hal = "1.0.0"
riscv-pac = { path = "../riscv-pac", version = "0.1.1", default-features = false }
2 changes: 1 addition & 1 deletion riscv/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub(crate) mod bits;
pub mod delay;
pub mod interrupt;
pub mod register;
pub mod result;
pub use riscv_pac::result;

#[macro_use]
mod macros;
Expand Down

0 comments on commit 8a384b4

Please sign in to comment.