From 2b256bf82b09be437b1053739c36a87d6b4662db Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Mon, 15 May 2017 20:50:26 -0500 Subject: derive Clone, Copy and Debug for more structs / enums --- src/peripheral/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/peripheral/mod.rs') diff --git a/src/peripheral/mod.rs b/src/peripheral/mod.rs index 70653af..67ed026 100644 --- a/src/peripheral/mod.rs +++ b/src/peripheral/mod.rs @@ -51,6 +51,7 @@ pub const TPIU: Peripheral = unsafe { Peripheral::new(0xE004_0000) }; // TODO stand-alone registers: ICTR, ACTLR and STIR /// A peripheral +#[derive(Debug)] pub struct Peripheral where T: 'static, @@ -425,6 +426,7 @@ pub struct Scb { } /// FPU access mode +#[derive(Clone, Copy, Debug)] pub enum FpuAccessMode { /// FPU is not accessible Disabled, @@ -489,6 +491,7 @@ pub struct Syst { } /// SysTick clock source +#[derive(Clone, Copy, Debug)] pub enum SystClkSource { /// Core-provided clock Core, -- cgit v1.2.3