From ddc7f255b57d0e6aeb9f3b1b7466b2e5c0c5fff0 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 27 Sep 2016 18:35:29 -0500 Subject: initial commit --- src/peripheral/dcb.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/peripheral/dcb.rs (limited to 'src/peripheral/dcb.rs') diff --git a/src/peripheral/dcb.rs b/src/peripheral/dcb.rs new file mode 100644 index 0000000..93a056b --- /dev/null +++ b/src/peripheral/dcb.rs @@ -0,0 +1,16 @@ +//! Debug Control Block + +use volatile_register::{RW, WO}; + +/// Registers +#[repr(C)] +pub struct Registers { + /// Debug Halting Control and Status + pub dhcsr: RW, + /// Debug Core Register Selector + pub dcrsr: WO, + /// Debug Core Register Data + pub dcrdr: RW, + /// Debug Exception and Monitor Control + pub demcr: RW, +} -- cgit v1.2.3