diff --git a/CHANGELOG.md b/CHANGELOG.md index 11ee832..7409e37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,18 @@ forget to update the links at the bottom of the changelog as well.--> ### Breaking Changes +### Non-Breaking Changes + +### Fixes + +### Documentation + +## [v0.10.0] - 2022-08-15 + +### Additions + +### Breaking Changes + - Upgrade `stm32l0` to latest version, and other dependency updates ([#215]): `dependencies` @@ -210,6 +222,7 @@ _Not yet tracked in this changelog._ [unreleased]: https://github.com/stm32-rs/stm32l0xx-hal/compare/v0.9.0...HEAD +[v0.10.0]: https://github.com/stm32-rs/stm32l0xx-hal/compare/v0.9.0...v0.10.0 [v0.9.0]: https://github.com/stm32-rs/stm32l0xx-hal/compare/v0.8.0...v0.9.0 [v0.8.0]: https://github.com/stm32-rs/stm32l0xx-hal/compare/v0.7.0...v0.8.0 [v0.7.0]: https://github.com/stm32-rs/stm32l0xx-hal/compare/v0.6.2...v0.7.0 diff --git a/Cargo.toml b/Cargo.toml index 5de4ec6..d7fa0fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ authors = [ "Arko ", "Hanno Braun ", "Danilo Bargen ", + "James Waples ", ] categories = ["embedded", "hardware-support", "no-std"] description = "Peripheral access API for STM32L0 series microcontrollers" @@ -14,7 +15,7 @@ license = "0BSD" name = "stm32l0xx-hal" readme = "README.md" repository = "https://github.com/stm32-rs/stm32l0xx-hal" -version = "0.9.0" +version = "0.10.0" [package.metadata.docs.rs] features = ["mcu-STM32L071KBTx", "rt", "stm32-usbd", "rtc"] diff --git a/README.md b/README.md index 4cfdf04..d1c277c 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ For example, when using the STM32L071KBTx MCU: ```toml [dependencies] -stm32l0xx-hal = { version = "0.9.0", features = ["mcu-STM32L071KBTx", "rt"] } +stm32l0xx-hal = { version = "0.10.0", features = ["mcu-STM32L071KBTx", "rt"] } ``` @@ -55,7 +55,7 @@ feature. For example, when using the STM32L071KBTx MCU, you just set the ```toml # Cargo.toml [dependencies] -stm32l0xx-hal = { version = "0.9.0", features = ["mcu-STM32L071KBTx", "rt"] } +stm32l0xx-hal = { version = "0.10.0", features = ["mcu-STM32L071KBTx", "rt"] } ``` If you take a look at the [`Cargo.toml` @@ -129,7 +129,7 @@ And finally add the `disable-linker-script` feature to your `stm32l0xx-hal` depe ```toml # Cargo.toml [dependencies] -stm32l0xx-hal = { version = "0.9.0", features = ["mcu-STM32L071K8Ux", "disable-linker-script"] } +stm32l0xx-hal = { version = "0.10.0", features = ["mcu-STM32L071K8Ux", "disable-linker-script"] } ``` # Other Cargo Features diff --git a/src/adc.rs b/src/adc.rs index 4df73af..98366bf 100755 --- a/src/adc.rs +++ b/src/adc.rs @@ -28,7 +28,7 @@ impl AdcExt for ADC { } /// ADC Result Alignment -#[derive(PartialEq)] +#[derive(Eq, PartialEq)] pub enum Align { /// Right aligned results (least significant bits) /// @@ -44,7 +44,7 @@ pub enum Align { } /// ADC Sampling Precision -#[derive(Copy, Clone, PartialEq)] +#[derive(Copy, Clone, Eq, PartialEq)] pub enum Precision { /// 12 bit precision B_12 = 0b00, @@ -57,7 +57,7 @@ pub enum Precision { } /// ADC Sampling time -#[derive(Copy, Clone, PartialEq)] +#[derive(Copy, Clone, Eq, PartialEq)] pub enum SampleTime { /// 1.5 ADC clock cycles T_1_5 = 0b000, diff --git a/src/rtc.rs b/src/rtc.rs index 3a986b5..3a39672 100644 --- a/src/rtc.rs +++ b/src/rtc.rs @@ -40,7 +40,7 @@ use crate::{ pub use rtcc::{Datelike, NaiveDate, NaiveDateTime, NaiveTime, Timelike}; /// Errors that can occur when dealing with the RTC. -#[derive(Debug, PartialEq)] +#[derive(Debug, Eq, PartialEq)] pub enum Error { /// Invalid input data was used (e.g. a year outside the 2000-2099 range). InvalidInputData,