diff --git a/Cargo.toml b/Cargo.toml index 8e06f77..9bca558 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ members = [ [package] name = "drone-stm32-map" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" exclude = ["/svd_files"] @@ -74,50 +74,50 @@ version = "0.11.1" path = "../drone-cortex-m" [dependencies.drone-stm32-map-pieces] -version = "=0.11.1" +version = "=0.11.2" path = "src/pieces" [dependencies.drone-stm32-map-periph-adc] -version = "=0.11.1" +version = "=0.11.2" path = "src/periph/adc" optional = true [dependencies.drone-stm32-map-periph-dma] -version = "=0.11.1" +version = "=0.11.2" path = "src/periph/dma" optional = true [dependencies.drone-stm32-map-periph-exti] -version = "=0.11.1" +version = "=0.11.2" path = "src/periph/exti" optional = true [dependencies.drone-stm32-map-periph-gpio] -version = "=0.11.1" +version = "=0.11.2" path = "src/periph/gpio" optional = true [dependencies.drone-stm32-map-periph-i2c] -version = "=0.11.1" +version = "=0.11.2" path = "src/periph/i2c" optional = true [dependencies.drone-stm32-map-periph-rtc] -version = "=0.11.1" +version = "=0.11.2" path = "src/periph/rtc" optional = true [dependencies.drone-stm32-map-periph-spi] -version = "=0.11.1" +version = "=0.11.2" path = "src/periph/spi" optional = true [dependencies.drone-stm32-map-periph-tim] -version = "=0.11.1" +version = "=0.11.2" path = "src/periph/tim" optional = true [dependencies.drone-stm32-map-periph-uart] -version = "=0.11.1" +version = "=0.11.2" path = "src/periph/uart" optional = true diff --git a/README.md b/README.md index 677a946..4366b2c 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Place the following to the Cargo.toml: ```toml [dependencies] -drone-stm32-map = { version = "0.11.0", features = [...] } +drone-stm32-map = { version = "0.11.2", features = [...] } ``` ## License diff --git a/rust-toolchain b/rust-toolchain index 22e9048..2f37258 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2019-11-06 +nightly-2019-12-13 diff --git a/src/lib.rs b/src/lib.rs index 7b6bf89..a5271c2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -63,7 +63,7 @@ //! //! ```toml //! [dependencies] -//! drone-stm32-map = { version = "0.11.1", features = [...] } +//! drone-stm32-map = { version = "0.11.2", features = [...] } //! ``` #![deny(elided_lifetimes_in_paths)] diff --git a/src/periph/adc/Cargo.toml b/src/periph/adc/Cargo.toml index d2d3601..94e9444 100644 --- a/src/periph/adc/Cargo.toml +++ b/src/periph/adc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-periph-adc" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [dependencies.drone-stm32-map-pieces] -version = "=0.11.1" +version = "=0.11.2" path = "../../pieces" diff --git a/src/periph/dma/Cargo.toml b/src/periph/dma/Cargo.toml index f71c10e..bae2ff4 100644 --- a/src/periph/dma/Cargo.toml +++ b/src/periph/dma/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-periph-dma" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [dependencies.drone-stm32-map-pieces] -version = "=0.11.1" +version = "=0.11.2" path = "../../pieces" diff --git a/src/periph/exti/Cargo.toml b/src/periph/exti/Cargo.toml index c0ecd89..5c96a73 100644 --- a/src/periph/exti/Cargo.toml +++ b/src/periph/exti/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-periph-exti" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [dependencies.drone-stm32-map-pieces] -version = "=0.11.1" +version = "=0.11.2" path = "../../pieces" diff --git a/src/periph/gpio/Cargo.toml b/src/periph/gpio/Cargo.toml index 11d02cc..12296e7 100644 --- a/src/periph/gpio/Cargo.toml +++ b/src/periph/gpio/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-periph-gpio" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [dependencies.drone-stm32-map-pieces] -version = "=0.11.1" +version = "=0.11.2" path = "../../pieces" diff --git a/src/periph/i2c/Cargo.toml b/src/periph/i2c/Cargo.toml index 50b50d2..178197d 100644 --- a/src/periph/i2c/Cargo.toml +++ b/src/periph/i2c/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-periph-i2c" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [dependencies.drone-stm32-map-pieces] -version = "=0.11.1" +version = "=0.11.2" path = "../../pieces" diff --git a/src/periph/rtc/Cargo.toml b/src/periph/rtc/Cargo.toml index 713932d..2325ec4 100644 --- a/src/periph/rtc/Cargo.toml +++ b/src/periph/rtc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-periph-rtc" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [dependencies.drone-stm32-map-pieces] -version = "=0.11.1" +version = "=0.11.2" path = "../../pieces" diff --git a/src/periph/spi/Cargo.toml b/src/periph/spi/Cargo.toml index f671218..ed3fa79 100644 --- a/src/periph/spi/Cargo.toml +++ b/src/periph/spi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-periph-spi" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [dependencies.drone-stm32-map-pieces] -version = "=0.11.1" +version = "=0.11.2" path = "../../pieces" diff --git a/src/periph/tim/Cargo.toml b/src/periph/tim/Cargo.toml index af95233..ad2456f 100644 --- a/src/periph/tim/Cargo.toml +++ b/src/periph/tim/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-periph-tim" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [dependencies.drone-stm32-map-pieces] -version = "=0.11.1" +version = "=0.11.2" path = "../../pieces" diff --git a/src/periph/uart/Cargo.toml b/src/periph/uart/Cargo.toml index 069cdbc..decc4fb 100644 --- a/src/periph/uart/Cargo.toml +++ b/src/periph/uart/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-periph-uart" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [dependencies.drone-stm32-map-pieces] -version = "=0.11.1" +version = "=0.11.2" path = "../../pieces" diff --git a/src/pieces/1/Cargo.toml b/src/pieces/1/Cargo.toml index de59a41..97c70df 100644 --- a/src/pieces/1/Cargo.toml +++ b/src/pieces/1/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-pieces-1" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [build-dependencies.drone-stm32-map-svd] -version = "=0.11.1" +version = "=0.11.2" path = "../../../svd" diff --git a/src/pieces/10/Cargo.toml b/src/pieces/10/Cargo.toml index 3711517..a9d2e04 100644 --- a/src/pieces/10/Cargo.toml +++ b/src/pieces/10/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-pieces-10" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [build-dependencies.drone-stm32-map-svd] -version = "=0.11.1" +version = "=0.11.2" path = "../../../svd" diff --git a/src/pieces/11/Cargo.toml b/src/pieces/11/Cargo.toml index 071bdaf..8b02ea8 100644 --- a/src/pieces/11/Cargo.toml +++ b/src/pieces/11/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-pieces-11" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [build-dependencies.drone-stm32-map-svd] -version = "=0.11.1" +version = "=0.11.2" path = "../../../svd" diff --git a/src/pieces/12/Cargo.toml b/src/pieces/12/Cargo.toml index 5377c25..4d3cd60 100644 --- a/src/pieces/12/Cargo.toml +++ b/src/pieces/12/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-pieces-12" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [build-dependencies.drone-stm32-map-svd] -version = "=0.11.1" +version = "=0.11.2" path = "../../../svd" diff --git a/src/pieces/2/Cargo.toml b/src/pieces/2/Cargo.toml index e8df88d..217ba08 100644 --- a/src/pieces/2/Cargo.toml +++ b/src/pieces/2/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-pieces-2" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [build-dependencies.drone-stm32-map-svd] -version = "=0.11.1" +version = "=0.11.2" path = "../../../svd" diff --git a/src/pieces/3/Cargo.toml b/src/pieces/3/Cargo.toml index a9ac576..55fb897 100644 --- a/src/pieces/3/Cargo.toml +++ b/src/pieces/3/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-pieces-3" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [build-dependencies.drone-stm32-map-svd] -version = "=0.11.1" +version = "=0.11.2" path = "../../../svd" diff --git a/src/pieces/4/Cargo.toml b/src/pieces/4/Cargo.toml index ff25997..95378dc 100644 --- a/src/pieces/4/Cargo.toml +++ b/src/pieces/4/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-pieces-4" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [build-dependencies.drone-stm32-map-svd] -version = "=0.11.1" +version = "=0.11.2" path = "../../../svd" diff --git a/src/pieces/5/Cargo.toml b/src/pieces/5/Cargo.toml index e66a75b..2bc42bb 100644 --- a/src/pieces/5/Cargo.toml +++ b/src/pieces/5/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-pieces-5" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [build-dependencies.drone-stm32-map-svd] -version = "=0.11.1" +version = "=0.11.2" path = "../../../svd" diff --git a/src/pieces/6/Cargo.toml b/src/pieces/6/Cargo.toml index 3fb57eb..0e38f7b 100644 --- a/src/pieces/6/Cargo.toml +++ b/src/pieces/6/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-pieces-6" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [build-dependencies.drone-stm32-map-svd] -version = "=0.11.1" +version = "=0.11.2" path = "../../../svd" diff --git a/src/pieces/7/Cargo.toml b/src/pieces/7/Cargo.toml index 26847e6..82947b3 100644 --- a/src/pieces/7/Cargo.toml +++ b/src/pieces/7/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-pieces-7" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [build-dependencies.drone-stm32-map-svd] -version = "=0.11.1" +version = "=0.11.2" path = "../../../svd" diff --git a/src/pieces/8/Cargo.toml b/src/pieces/8/Cargo.toml index d6ce40a..561ac46 100644 --- a/src/pieces/8/Cargo.toml +++ b/src/pieces/8/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-pieces-8" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [build-dependencies.drone-stm32-map-svd] -version = "=0.11.1" +version = "=0.11.2" path = "../../../svd" diff --git a/src/pieces/9/Cargo.toml b/src/pieces/9/Cargo.toml index 5ec19f6..cbe4bdd 100644 --- a/src/pieces/9/Cargo.toml +++ b/src/pieces/9/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-pieces-9" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,5 +23,5 @@ version = "0.11.1" path = "../../../../drone-cortex-m" [build-dependencies.drone-stm32-map-svd] -version = "=0.11.1" +version = "=0.11.2" path = "../../../svd" diff --git a/src/pieces/Cargo.toml b/src/pieces/Cargo.toml index 6777f64..3e0fe96 100644 --- a/src/pieces/Cargo.toml +++ b/src/pieces/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-pieces" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" @@ -23,53 +23,53 @@ version = "0.11.1" path = "../../../drone-cortex-m" [dependencies.drone-stm32-map-pieces-1] -version = "=0.11.1" +version = "=0.11.2" path = "1" [dependencies.drone-stm32-map-pieces-2] -version = "=0.11.1" +version = "=0.11.2" path = "2" [dependencies.drone-stm32-map-pieces-3] -version = "=0.11.1" +version = "=0.11.2" path = "3" [dependencies.drone-stm32-map-pieces-4] -version = "=0.11.1" +version = "=0.11.2" path = "4" [dependencies.drone-stm32-map-pieces-5] -version = "=0.11.1" +version = "=0.11.2" path = "5" [dependencies.drone-stm32-map-pieces-6] -version = "=0.11.1" +version = "=0.11.2" path = "6" [dependencies.drone-stm32-map-pieces-7] -version = "=0.11.1" +version = "=0.11.2" path = "7" [dependencies.drone-stm32-map-pieces-8] -version = "=0.11.1" +version = "=0.11.2" path = "8" [dependencies.drone-stm32-map-pieces-9] -version = "=0.11.1" +version = "=0.11.2" path = "9" [dependencies.drone-stm32-map-pieces-10] -version = "=0.11.1" +version = "=0.11.2" path = "10" [dependencies.drone-stm32-map-pieces-11] -version = "=0.11.1" +version = "=0.11.2" path = "11" [dependencies.drone-stm32-map-pieces-12] -version = "=0.11.1" +version = "=0.11.2" path = "12" [build-dependencies.drone-stm32-map-svd] -version = "=0.11.1" +version = "=0.11.2" path = "../../svd" diff --git a/svd/Cargo.toml b/svd/Cargo.toml index 11f44d3..13c8089 100644 --- a/svd/Cargo.toml +++ b/svd/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone-stm32-map-svd" -version = "0.11.1" +version = "0.11.2" authors = ["Valentine Valyaeff "] edition = "2018" repository = "https://github.com/drone-os/drone-stm32-map" diff --git a/svd/src/uart.rs b/svd/src/uart.rs index e6a7f03..34eba62 100644 --- a/svd/src/uart.rs +++ b/svd/src/uart.rs @@ -40,19 +40,6 @@ pub fn fix_usart3(dev: &mut Device) -> Result<()> { field.bit_offset = Some(18); field.bit_width = Some(1); }); - dev.periph("USART3").reg("BRR").remove_field("BRR"); - dev.periph("USART3").reg("BRR").new_field(|field| { - field.name = "DIV_Mantissa".to_string(); - field.description = "DIV_Mantissa".to_string(); - field.bit_offset = Some(4); - field.bit_width = Some(12); - }); - dev.periph("USART3").reg("BRR").new_field(|field| { - field.name = "DIV_Fraction".to_string(); - field.description = "DIV_Fraction".to_string(); - field.bit_offset = Some(0); - field.bit_width = Some(4); - }); Ok(()) }