We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0b0695 commit cdd70bbCopy full SHA for cdd70bb
CHANGELOG.md
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
8
## [Unreleased]
9
10
+### Fixed
11
+
12
+- Fix `asm::delay()` to ensure count register is always reloaded
13
14
## [v0.8.0] - 2022-04-20
15
16
### Added
src/asm.rs
@@ -81,7 +81,8 @@ pub unsafe fn delay(cycles: u32) {
81
"1:",
82
"addi {0}, {0}, -1",
83
"bne {0}, zero, 1b",
84
- in(reg) real_cyc
+ inout(reg) real_cyc => _,
85
+ options(nomem, nostack),
86
)
87
}
88
0 commit comments