Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed timer stop_in_debug to modify dbg.cr instead of overwriting it #130

Merged
merged 1 commit into from
Nov 3, 2019

Conversation

cs2dsb
Copy link
Contributor

@cs2dsb cs2dsb commented Nov 2, 2019

Quick fix to prevent configuring pwm_input clobbering the dbg.cr register.

The issue I was having was ITM was breaking after the call to stop_in_debug in timer.rs because part of the ITM config lives in dbg.cr and the call to write was resetting everything to 0.

I had a quick scan for other similar issues in timer.rs but didn't see any.

@TheZoq2 TheZoq2 merged commit 420243a into stm32-rs:master Nov 3, 2019
@TheZoq2
Copy link
Member

TheZoq2 commented Nov 3, 2019

Good catch, thanks for the PR!

@cs2dsb cs2dsb deleted the fix_dbg_cr_overwriting branch November 8, 2019 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants