diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ecc730..631f15a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,11 +12,17 @@ jobs: - stable feature: - stm32g030 + - stm32g050 + - stm32g070 + - stm32g0b0 - stm32g031 - stm32g041 - - stm32g070 + - stm32g051 + - stm32g061 - stm32g071 - stm32g081 + - stm32g0b1 + - stm32g0c1 steps: - uses: actions/checkout@v2 @@ -28,4 +34,4 @@ jobs: override: true - name: Regular build - run: cargo check --features ${{ matrix.feature }} \ No newline at end of file + run: cargo check --features ${{ matrix.feature }} diff --git a/Cargo.toml b/Cargo.toml index ae12aad..cef8a20 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ cortex-m = "0.7.1" nb = "1.0.0" [dependencies.stm32g0] -version = "0.13.0" +version = "0.14.0" features = ["rt"] [dependencies.bare-metal] @@ -50,11 +50,17 @@ ws2812-spi = { version = "0.3.0", features = [] } [features] rt = ["stm32g0/rt"] stm32g030 = ["stm32g0/stm32g030", "stm32g0x0"] +stm32g050 = ["stm32g0/stm32g050", "stm32g0x0"] stm32g070 = ["stm32g0/stm32g070", "stm32g0x0"] +stm32g0b0 = ["stm32g0/stm32g0b0", "stm32g0x0"] stm32g031 = ["stm32g0/stm32g031", "stm32g0x1"] stm32g041 = ["stm32g0/stm32g041", "stm32g0x1"] +stm32g051 = ["stm32g0/stm32g051", "stm32g0x1"] +stm32g061 = ["stm32g0/stm32g061", "stm32g0x1"] stm32g071 = ["stm32g0/stm32g071", "stm32g0x1"] stm32g081 = ["stm32g0/stm32g081", "stm32g0x1"] +stm32g0b1 = ["stm32g0/stm32g0b1", "stm32g0x1"] +stm32g0c1 = ["stm32g0/stm32g0c1", "stm32g0x1"] stm32g0x0 = [] stm32g0x1 = [] diff --git a/src/lib.rs b/src/lib.rs index fcaf209..c8f96ce 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,15 +2,21 @@ #![allow(non_camel_case_types)] #[cfg(not(any( - feature = "stm32g070", - feature = "stm32g071", feature = "stm32g030", + feature = "stm32g050", + feature = "stm32g070", + feature = "stm32g0b0", feature = "stm32g031", feature = "stm32g041", - feature = "stm32g081" + feature = "stm32g051", + feature = "stm32g061", + feature = "stm32g071", + feature = "stm32g081", + feature = "stm32g0b1", + feature = "stm32g0c1", )))] compile_error!( - "This crate requires one of the following features enabled: stm32g030, stm32g070, stm32g031, stm32g041, stm32g071, stm32g081" + "This crate requires one of the following features enabled: stm32g030, stm32g050, stm32g070, stm32g0b0, stm32g031, stm32g041, stm32g051, stm32g061, stm32g071, stm32g081, stm32g0b1, stm32g0c1" ); extern crate bare_metal; @@ -26,20 +32,38 @@ pub use nb::block; #[cfg(feature = "stm32g030")] pub use stm32g0::stm32g030 as stm32; +#[cfg(feature = "stm32g050")] +pub use stm32g0::stm32g050 as stm32; + +#[cfg(feature = "stm32g070")] +pub use stm32g0::stm32g070 as stm32; + +#[cfg(feature = "stm32g0b0")] +pub use stm32g0::stm32g0b0 as stm32; + #[cfg(feature = "stm32g031")] pub use stm32g0::stm32g031 as stm32; #[cfg(feature = "stm32g041")] pub use stm32g0::stm32g041 as stm32; +#[cfg(feature = "stm32g051")] +pub use stm32g0::stm32g051 as stm32; + +#[cfg(feature = "stm32g061")] +pub use stm32g0::stm32g061 as stm32; + #[cfg(feature = "stm32g071")] pub use stm32g0::stm32g071 as stm32; #[cfg(feature = "stm32g081")] pub use stm32g0::stm32g081 as stm32; -#[cfg(feature = "stm32g070")] -pub use stm32g0::stm32g070 as stm32; +#[cfg(feature = "stm32g0b1")] +pub use stm32g0::stm32g0b1 as stm32; + +#[cfg(feature = "stm32g0c1")] +pub use stm32g0::stm32g0c1 as stm32; #[cfg(feature = "rt")] pub use crate::stm32::interrupt;