Skip to content

Commit

Permalink
Derive Debug, PartialEq and Eq for more types
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Apr 24, 2019
1 parent a842718 commit fdf0c88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/peripheral/cpuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ pub struct RegisterBlock {

/// Type of cache to select on CSSELR writes.
#[cfg(not(armv6m))]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum CsselrCacheType {
/// Select DCache or unified cache
DataOrUnified = 0,
Expand Down
2 changes: 1 addition & 1 deletion src/peripheral/scb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub struct RegisterBlock {

/// FPU access mode
#[cfg(has_fpu)]
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum FpuAccessMode {
/// FPU is not accessible
Disabled,
Expand Down
2 changes: 1 addition & 1 deletion src/peripheral/syst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub struct RegisterBlock {
}

/// SysTick clock source
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum SystClkSource {
/// Core-provided clock
Core,
Expand Down

0 comments on commit fdf0c88

Please sign in to comment.