aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xci.sh1
-rw-r--r--embassy-lora/Cargo.toml3
-rw-r--r--embassy-stm32/src/adc/mod.rs16
-rw-r--r--embassy-stm32/src/adc/sample_time.rs2
-rw-r--r--embassy-stm32/src/rcc/mod.rs2
5 files changed, 14 insertions, 10 deletions
diff --git a/ci.sh b/ci.sh
index f82cc6273..e83b3b847 100755
--- a/ci.sh
+++ b/ci.sh
@@ -81,6 +81,7 @@ cargo batch \
81 --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv6m-none-eabi --features nightly,stm32l041f6,defmt,exti,time-driver-any,unstable-traits \ 81 --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv6m-none-eabi --features nightly,stm32l041f6,defmt,exti,time-driver-any,unstable-traits \
82 --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7m-none-eabi --features nightly,stm32l151cb-a,defmt,exti,time-driver-any,unstable-traits \ 82 --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7m-none-eabi --features nightly,stm32l151cb-a,defmt,exti,time-driver-any,unstable-traits \
83 --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7m-none-eabi --features nightly,stm32f398ve,defmt,exti,time-driver-any,unstable-traits \ 83 --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7m-none-eabi --features nightly,stm32f398ve,defmt,exti,time-driver-any,unstable-traits \
84 --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7m-none-eabi --features nightly,stm32f378cc,defmt,exti,time-driver-any,unstable-traits \
84 --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv6m-none-eabi --features nightly,stm32g0c1ve,defmt,exti,time-driver-any,unstable-traits \ 85 --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv6m-none-eabi --features nightly,stm32g0c1ve,defmt,exti,time-driver-any,unstable-traits \
85 --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7m-none-eabi --features nightly,stm32f217zg,defmt,exti,time-driver-any,unstable-traits \ 86 --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7m-none-eabi --features nightly,stm32f217zg,defmt,exti,time-driver-any,unstable-traits \
86 --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv8m.main-none-eabihf --features nightly,stm32l552ze,defmt,exti,time-driver-any,unstable-traits \ 87 --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv8m.main-none-eabihf --features nightly,stm32l552ze,defmt,exti,time-driver-any,unstable-traits \
diff --git a/embassy-lora/Cargo.toml b/embassy-lora/Cargo.toml
index 90c544d8d..feea06582 100644
--- a/embassy-lora/Cargo.toml
+++ b/embassy-lora/Cargo.toml
@@ -29,3 +29,6 @@ embedded-hal = { version = "0.2", features = ["unproven"] }
29futures = { version = "0.3.17", default-features = false, features = [ "async-await" ] } 29futures = { version = "0.3.17", default-features = false, features = [ "async-await" ] }
30lora-phy = { version = "1" } 30lora-phy = { version = "1" }
31lorawan-device = { version = "0.10.0", default-features = false, features = ["async"], optional = true } 31lorawan-device = { version = "0.10.0", default-features = false, features = ["async"], optional = true }
32
33[patch.crates-io]
34lora-phy = { git = "https://github.com/embassy-rs/lora-phy", rev = "1323eccc1c470d4259f95f4f315d1be830d572a3"} \ No newline at end of file
diff --git a/embassy-stm32/src/adc/mod.rs b/embassy-stm32/src/adc/mod.rs
index 94a8538bf..e57889aa6 100644
--- a/embassy-stm32/src/adc/mod.rs
+++ b/embassy-stm32/src/adc/mod.rs
@@ -1,6 +1,6 @@
1#![macro_use] 1#![macro_use]
2 2
3#[cfg(not(adc_f3))] 3#[cfg(not(any(adc_f3, adc_f3_v2)))]
4#[cfg_attr(adc_f1, path = "f1.rs")] 4#[cfg_attr(adc_f1, path = "f1.rs")]
5#[cfg_attr(adc_v1, path = "v1.rs")] 5#[cfg_attr(adc_v1, path = "v1.rs")]
6#[cfg_attr(adc_v2, path = "v2.rs")] 6#[cfg_attr(adc_v2, path = "v2.rs")]
@@ -8,16 +8,16 @@
8#[cfg_attr(adc_v4, path = "v4.rs")] 8#[cfg_attr(adc_v4, path = "v4.rs")]
9mod _version; 9mod _version;
10 10
11#[cfg(not(any(adc_f1, adc_f3)))] 11#[cfg(not(any(adc_f1, adc_f3, adc_f3_v2)))]
12mod resolution; 12mod resolution;
13mod sample_time; 13mod sample_time;
14 14
15#[cfg(not(adc_f3))] 15#[cfg(not(any(adc_f3, adc_f3_v2)))]
16#[allow(unused)] 16#[allow(unused)]
17pub use _version::*; 17pub use _version::*;
18#[cfg(not(any(adc_f1, adc_f3)))] 18#[cfg(not(any(adc_f1, adc_f3, adc_f3_v2)))]
19pub use resolution::Resolution; 19pub use resolution::Resolution;
20#[cfg(not(adc_f3))] 20#[cfg(not(any(adc_f3, adc_f3_v2)))]
21pub use sample_time::SampleTime; 21pub use sample_time::SampleTime;
22 22
23use crate::peripherals; 23use crate::peripherals;
@@ -25,14 +25,14 @@ use crate::peripherals;
25pub struct Adc<'d, T: Instance> { 25pub struct Adc<'d, T: Instance> {
26 #[allow(unused)] 26 #[allow(unused)]
27 adc: crate::PeripheralRef<'d, T>, 27 adc: crate::PeripheralRef<'d, T>,
28 #[cfg(not(adc_f3))] 28 #[cfg(not(any(adc_f3, adc_f3_v2)))]
29 sample_time: SampleTime, 29 sample_time: SampleTime,
30} 30}
31 31
32pub(crate) mod sealed { 32pub(crate) mod sealed {
33 pub trait Instance { 33 pub trait Instance {
34 fn regs() -> crate::pac::adc::Adc; 34 fn regs() -> crate::pac::adc::Adc;
35 #[cfg(not(any(adc_f1, adc_v1, adc_f3)))] 35 #[cfg(not(any(adc_f1, adc_v1, adc_f3, adc_f3_v2)))]
36 fn common_regs() -> crate::pac::adccommon::AdcCommon; 36 fn common_regs() -> crate::pac::adccommon::AdcCommon;
37 } 37 }
38 38
@@ -60,7 +60,7 @@ foreach_peripheral!(
60 fn regs() -> crate::pac::adc::Adc { 60 fn regs() -> crate::pac::adc::Adc {
61 crate::pac::$inst 61 crate::pac::$inst
62 } 62 }
63 #[cfg(not(any(adc_f1, adc_v1, adc_f3)))] 63 #[cfg(not(any(adc_f1, adc_v1, adc_f3, adc_f3_v2)))]
64 fn common_regs() -> crate::pac::adccommon::AdcCommon { 64 fn common_regs() -> crate::pac::adccommon::AdcCommon {
65 foreach_peripheral!{ 65 foreach_peripheral!{
66 (adccommon, $common_inst:ident) => { 66 (adccommon, $common_inst:ident) => {
diff --git a/embassy-stm32/src/adc/sample_time.rs b/embassy-stm32/src/adc/sample_time.rs
index df0525560..5480e7a77 100644
--- a/embassy-stm32/src/adc/sample_time.rs
+++ b/embassy-stm32/src/adc/sample_time.rs
@@ -1,4 +1,4 @@
1#[cfg(not(adc_f3))] 1#[cfg(not(any(adc_f3, adc_f3_v2)))]
2macro_rules! impl_sample_time { 2macro_rules! impl_sample_time {
3 ($default_doc:expr, $default:ident, ($(($doc:expr, $variant:ident, $pac_variant:ident)),*)) => { 3 ($default_doc:expr, $default:ident, ($(($doc:expr, $variant:ident, $pac_variant:ident)),*)) => {
4 #[doc = concat!("ADC sample time\n\nThe default setting is ", $default_doc, " ADC clock cycles.")] 4 #[doc = concat!("ADC sample time\n\nThe default setting is ", $default_doc, " ADC clock cycles.")]
diff --git a/embassy-stm32/src/rcc/mod.rs b/embassy-stm32/src/rcc/mod.rs
index 62c19bda6..e5dd0019e 100644
--- a/embassy-stm32/src/rcc/mod.rs
+++ b/embassy-stm32/src/rcc/mod.rs
@@ -9,7 +9,7 @@ use crate::time::Hertz;
9#[cfg_attr(rcc_f0, path = "f0.rs")] 9#[cfg_attr(rcc_f0, path = "f0.rs")]
10#[cfg_attr(any(rcc_f1, rcc_f100, rcc_f1cl), path = "f1.rs")] 10#[cfg_attr(any(rcc_f1, rcc_f100, rcc_f1cl), path = "f1.rs")]
11#[cfg_attr(rcc_f2, path = "f2.rs")] 11#[cfg_attr(rcc_f2, path = "f2.rs")]
12#[cfg_attr(rcc_f3, path = "f3.rs")] 12#[cfg_attr(any(rcc_f3, rcc_f3_v2), path = "f3.rs")]
13#[cfg_attr(any(rcc_f4, rcc_f410), path = "f4.rs")] 13#[cfg_attr(any(rcc_f4, rcc_f410), path = "f4.rs")]
14#[cfg_attr(rcc_f7, path = "f7.rs")] 14#[cfg_attr(rcc_f7, path = "f7.rs")]
15#[cfg_attr(rcc_c0, path = "c0.rs")] 15#[cfg_attr(rcc_c0, path = "c0.rs")]