Skip to content

Commit

Permalink
Merge #141
Browse files Browse the repository at this point in the history
141: Derive Debug, PartialEq and Eq for more types r=therealprof a=jonas-schievink

Closes #28

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
  • Loading branch information
bors[bot] and jonas-schievink committed Apr 24, 2019
2 parents a842718 + fdf0c88 commit 10d6e25
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 10d6e25

Please sign in to comment.