diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6def2ec..c57c8d4 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 - uses: actions-rs/toolchain@v1 diff --git a/Cargo.toml b/Cargo.toml index 42d8e62..513f3ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,11 +53,17 @@ default = ["i2c-blocking"] device-selected = [] rt = ["stm32g0/rt"] stm32g030 = ["stm32g0/stm32g030", "stm32g0x0", "device-selected"] +stm32g050 = ["stm32g0/stm32g050", "stm32g0x0", "device-selected"] stm32g070 = ["stm32g0/stm32g070", "stm32g0x0", "device-selected"] +stm32g0b0 = ["stm32g0/stm32g0b0", "stm32g0x0", "device-selected"] stm32g031 = ["stm32g0/stm32g031", "stm32g0x1", "device-selected"] stm32g041 = ["stm32g0/stm32g041", "stm32g0x1", "device-selected"] +stm32g051 = ["stm32g0/stm32g051", "stm32g0x1", "device-selected"] +stm32g061 = ["stm32g0/stm32g061", "stm32g0x1", "device-selected"] stm32g071 = ["stm32g0/stm32g071", "stm32g0x1", "device-selected"] stm32g081 = ["stm32g0/stm32g081", "stm32g0x1", "device-selected"] +stm32g0b1 = ["stm32g0/stm32g0b1", "stm32g0x1", "device-selected"] +stm32g0c1 = ["stm32g0/stm32g0c1", "stm32g0x1", "device-selected"] stm32g0x0 = [] stm32g0x1 = [] diff --git a/src/lib.rs b/src/lib.rs index 9e6f157..b458255 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,7 +3,7 @@ #[cfg(not(feature = "device-selected"))] 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; @@ -22,20 +22,38 @@ pub use stm32 as pac; #[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;