Skip to content

Commit

Permalink
chore: change py32-metapac dependency source to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
decaday committed Nov 9, 2024
1 parent 58ad2b5 commit bebf5d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ readme = "README.md"
license = "MIT OR Apache-2.0"

[dependencies]
py32-metapac = { version = "0.0.1" }
py32-metapac = { git = "https://github.com/py32-rs/py32-metapac.git" }
# py32-metapac = { path = "../py32-data/build/py32-metapac"}

cortex-m = { version = "0.7.7", features = [
Expand Down Expand Up @@ -53,7 +53,7 @@ embassy-executor = { version = "0.6", features = [

[build-dependencies]
# py32-metapac = { path = "../py32-data/build/py32-metapac", default-features = false, features = [
py32-metapac = { version = "0.0.1", default-features = false, features = [
py32-metapac = { git = "https://github.com/py32-rs/py32-metapac.git", default-features = false , features = [
"metadata",
] }

Expand Down
14 changes: 7 additions & 7 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,11 +611,11 @@ fn main() {

// A refcount leak can result if the same field is shared by peripherals with different stop modes
// This condition should be checked in stm32-data
let stop_mode = match rcc.stop_mode {
StopMode::Standby => quote! { crate::rcc::StopMode::Standby },
StopMode::Stop2 => quote! { crate::rcc::StopMode::Stop2 },
StopMode::Stop1 => quote! { crate::rcc::StopMode::Stop1 },
};
// let stop_mode = match rcc.stop_mode {
// StopMode::Standby => quote! { crate::rcc::StopMode::Standby },
// StopMode::Stop2 => quote! { crate::rcc::StopMode::Stop2 },
// StopMode::Stop1 => quote! { crate::rcc::StopMode::Stop1 },
// };

g.extend(quote! {
impl crate::rcc::SealedRccPeripheral for peripherals::#pname {
Expand Down Expand Up @@ -815,8 +815,8 @@ fn main() {
(("spi", "I2S_MCK"), quote!(crate::spi::MckPin)),
(("spi", "I2S_CK"), quote!(crate::spi::CkPin)),
(("spi", "I2S_WS"), quote!(crate::spi::WsPin)),
(("i2c", "SDA"), quote!(crate::i2c::SdaPin)),
(("i2c", "SCL"), quote!(crate::i2c::SclPin)),
// (("i2c", "SDA"), quote!(crate::i2c::SdaPin)),
// (("i2c", "SCL"), quote!(crate::i2c::SclPin)),
// (("rcc", "MCO_1"), quote!(crate::rcc::McoPin)),
// (("rcc", "MCO_2"), quote!(crate::rcc::McoPin)),
// (("rcc", "MCO"), quote!(crate::rcc::McoPin)),
Expand Down

0 comments on commit bebf5d4

Please sign in to comment.