From d9981523bd51b6732a7fa0190da7625394d1f0d8 Mon Sep 17 00:00:00 2001 From: Scott Mabin Date: Sat, 3 Nov 2018 00:47:53 +0000 Subject: [PATCH] Replace clear_bit with set_bit, bumped vers, yank 2.5 --- CHANGELOG.md | 9 ++++++--- Cargo.toml | 2 +- src/tsc.rs | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17f9fc7a..fc74b8bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/Cargo.toml b/Cargo.toml index f60359b3..db3cec3b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "stm32l432xx-hal" -version = "0.2.5" +version = "0.2.6" authors = ["Scott Mabin "] description = "Hardware abstraction layer for the stm32l432xx chips" keywords = ["no-std", "stm32l432xx", "stm32l432kc", "embedded", "embedded-hal"] diff --git a/src/tsc.rs b/src/tsc.rs index 1096fabb..cafe5872 100644 --- a/src/tsc.rs +++ b/src/tsc.rs @@ -201,10 +201,10 @@ impl Tsc { 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) } };