We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92c15ed commit 360fb33Copy full SHA for 360fb33
src/peripheral/dwt.rs
@@ -153,13 +153,25 @@ impl DWT {
153
self.ctrl.read().cyccntena()
154
}
155
156
- /// Whether to enable exception tracing
+ /// Enables exception tracing
157
#[cfg(not(armv6m))]
158
#[inline]
159
- pub fn enable_exception_tracing(&mut self, bit: bool) {
+ pub fn enable_exception_tracing(&mut self) {
160
unsafe {
161
self.ctrl.modify(|mut r| {
162
- r.set_exctrcena(bit);
+ r.set_exctrcena(true);
163
+ r
164
+ });
165
+ }
166
167
+
168
+ /// Disables exception tracing
169
+ #[cfg(not(armv6m))]
170
+ #[inline]
171
+ pub fn disable_exception_tracing(&mut self) {
172
+ unsafe {
173
+ self.ctrl.modify(|mut r| {
174
+ r.set_exctrcena(false);
175
r
176
});
177
0 commit comments