Skip to content

Commit

Permalink
Replace clear_bit with set_bit, bumped vers, yank 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Nov 3, 2018
1 parent dfdf554 commit d998152
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [v0.2.5] - 2018-11-03
## [v0.2.6] - 2018-11-03

## Fixed TSC flags not getting cleared by the `aquire` tsc method.

## [v0.2.5] - YANKED

## [v0.2.4] - 2018-10-32

### Fixed
Expand Down Expand Up @@ -58,8 +60,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).

- Initial release

[Unreleased]: https://github.com/mabezdev/stm32l432xx-hal/compare/v0.2.5...HEAD
[v0.2.4]: https://github.com/mabezdev/stm32l432xx-hal/compare/v0.2.4...v0.2.5
[Unreleased]: https://github.com/mabezdev/stm32l432xx-hal/compare/v0.2.6...HEAD
[v0.2.6]: https://github.com/mabezdev/stm32l432xx-hal/compare/v0.2.5...v0.2.6
[v0.2.5]: https://github.com/mabezdev/stm32l432xx-hal/compare/v0.2.4...v0.2.5
[v0.2.4]: https://github.com/mabezdev/stm32l432xx-hal/compare/v0.2.3...v0.2.4
[v0.2.3]: https://github.com/mabezdev/stm32l432xx-hal/compare/v0.2.2...v0.2.3
[v0.2.2]: https://github.com/mabezdev/stm32l432xx-hal/compare/v0.2.1...v0.2.2
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stm32l432xx-hal"
version = "0.2.5"
version = "0.2.6"
authors = ["Scott Mabin <[email protected]>"]
description = "Hardware abstraction layer for the stm32l432xx chips"
keywords = ["no-std", "stm32l432xx", "stm32l432kc", "embedded", "embedded-hal"]
Expand Down
4 changes: 2 additions & 2 deletions src/tsc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ impl<SPIN> Tsc<SPIN> {
let result = loop {
let isr = self.tsc.isr.read();
if isr.eoaf().bit_is_set() {
self.tsc.icr.write(|w| { w.eoaic().clear_bit() });
self.tsc.icr.write(|w| { w.eoaic().set_bit() });
break Ok(self.read_unchecked())
} else if isr.mcef().bit_is_set() {
self.tsc.icr.write(|w| { w.mceic().clear_bit() });
self.tsc.icr.write(|w| { w.mceic().set_bit() });
break Err(Error::MaxCountError)
}
};
Expand Down

0 comments on commit d998152

Please sign in to comment.