Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@ jobs:
command: test
args: --lib --target x86_64-unknown-linux-gnu --features rt,unproven,${{ matrix.mcu.id }}${{ matrix.mcu.additional-features }}

ci-r9:
ci-rx:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- stable
mcu:
- { id: stm32l4r5, additional-features: "" }
- { id: stm32l4r9, additional-features: "" }
- { id: stm32l4s9, additional-features: "" }

Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ edition = "2018"
[dependencies]
cortex-m = "0.7"
nb = "0.1.1"
stm32l4 = "0.14.0"
stm32l4 = "0.15.0"
embedded-dma = "0.1"
bxcan = ">=0.4, <0.7"
fugit = "0.3.5"
Expand Down Expand Up @@ -98,11 +98,11 @@ stm32l486 = [ "stm32l4/stm32l4x6" ]
stm32l496 = [ "stm32l4/stm32l4x6" ]
stm32l4a6 = [ "stm32l4/stm32l4x6" ]

# L4+ series PAC support??
# L4+
#stm32l4p5 = [ "stm32l4/stm32l4x5" ]
#stm32l4q5 = [ "stm32l4/stm32l4x5" ]
#stm32l4r5 = [ "stm32l4/stm32l4x5" ]
#stm32l4s5 = [ "stm32l4/stm32l4x5" ]
stm32l4r5 = [ "stm32l4/stm32l4r5" ]
stm32l4s5 = [ "stm32l4/stm32l4r5" ]

# L4x7
#stm32l4r7 = [ "stm32l4/stm32l4x7" ]
Expand Down
8 changes: 4 additions & 4 deletions src/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<pac::ADC_COMMON>::enable(ahb);
<pac::ADC_COMMON>::reset(ahb);

drop(adc_common);

Check warning on line 94 in src/adc.rs

View workflow job for this annotation

GitHub Actions / clippy

call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes

warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes --> src/adc.rs:94:9 | 94 | drop(adc_common); | ^^^^^^^^^^^^^^^^ | note: argument has type `stm32l4::stm32l4x2::ADC_COMMON` --> src/adc.rs:94:14 | 94 | drop(adc_common); | ^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#drop_non_drop = note: `#[warn(clippy::drop_non_drop)]` on by default

Self {
_0: PhantomData,
Expand Down Expand Up @@ -163,7 +163,7 @@
}
}

impl Into<u8> for Sequence {

Check warning on line 166 in src/adc.rs

View workflow job for this annotation

GitHub Actions / clippy

an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true

warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true --> src/adc.rs:166:1 | 166 | impl Into<u8> for Sequence { | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#from_over_into = note: `#[warn(clippy::from_over_into)]` on by default help: replace the `Into` implementation with `From<adc::Sequence>` | 166 ~ impl From<Sequence> for u8 { 167 ~ fn from(val: Sequence) -> Self { 168 ~ match val { |
fn into(self) -> u8 {
match self {
Sequence::One => 0,
Expand Down Expand Up @@ -399,14 +399,14 @@
Bits6 = 0b11,
}

impl Default for Resolution {
fn default() -> Self {
Self::Bits12
}
}

Check warning on line 406 in src/adc.rs

View workflow job for this annotation

GitHub Actions / clippy

this `impl` can be derived

warning: this `impl` can be derived --> src/adc.rs:402:1 | 402 | / impl Default for Resolution { 403 | | fn default() -> Self { 404 | | Self::Bits12 405 | | } 406 | | } | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#derivable_impls = note: `#[warn(clippy::derivable_impls)]` on by default help: replace the manual implementation with a derive attribute and mark the default variant | 388 + #[derive(Default)] 389 ~ pub enum Resolution { 390 | /// 12-bit resolution 391 ~ #[default] 392 ~ Bits12 = 0b00, |

impl Resolution {
fn to_max_count(&self) -> u32 {

Check warning on line 409 in src/adc.rs

View workflow job for this annotation

GitHub Actions / clippy

methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value

warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value --> src/adc.rs:409:21 | 409 | fn to_max_count(&self) -> u32 { | ^^^^^ | = help: consider choosing a less ambiguous name = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#wrong_self_convention = note: `#[warn(clippy::wrong_self_convention)]` on by default
match self {
Resolution::Bits12 => (1 << 12) - 1,
Resolution::Bits10 => (1 << 10) - 1,
Expand Down Expand Up @@ -447,11 +447,11 @@
Cycles640_5 = 0b111,
}

impl Default for SampleTime {
fn default() -> Self {
Self::Cycles2_5
}
}

Check warning on line 454 in src/adc.rs

View workflow job for this annotation

GitHub Actions / clippy

this `impl` can be derived

warning: this `impl` can be derived --> src/adc.rs:450:1 | 450 | / impl Default for SampleTime { 451 | | fn default() -> Self { 452 | | Self::Cycles2_5 453 | | } 454 | | } | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#derivable_impls help: replace the manual implementation with a derive attribute and mark the default variant | 424 + #[derive(Default)] 425 ~ pub enum SampleTime { 426 | /// 2.5 ADC clock cycles 427 ~ #[default] 428 ~ Cycles2_5 = 0b000, |

/// Implemented for all types that represent ADC channels
pub trait Channel<T>: EmbeddedHalChannel<T, ID = u8> {
Expand Down Expand Up @@ -556,7 +556,7 @@
/// Disable the internal voltage reference channel.
#[inline]
pub fn disable_vref(&mut self, vref: Vref) {
drop(vref);

Check warning on line 559 in src/adc.rs

View workflow job for this annotation

GitHub Actions / clippy

call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes

warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes --> src/adc.rs:559:13 | 559 | drop(vref); | ^^^^^^^^^^ ... 887 | adc!(ADC1 => (adc1, ADC_COMMON)); | -------------------------------- in this macro invocation | note: argument has type `adc::Vref` --> src/adc.rs:559:18 | 559 | drop(vref); | ^^^^ ... 887 | adc!(ADC1 => (adc1, ADC_COMMON)); | -------------------------------- in this macro invocation = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#drop_non_drop = note: this warning originates in the macro `adc` (in Nightly builds, run with -Z macro-backtrace for more info)

self.adc_common.ccr.modify(|_, w| w.vrefen().clear_bit());
}
Expand Down Expand Up @@ -592,7 +592,7 @@
/// Disable the battery voltage monitoring channel.
#[inline]
pub fn disable_vbat(&mut self, vbat: Vbat) {
drop(vbat);

Check warning on line 595 in src/adc.rs

View workflow job for this annotation

GitHub Actions / clippy

call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes

warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes --> src/adc.rs:595:13 | 595 | drop(vbat); | ^^^^^^^^^^ ... 887 | adc!(ADC1 => (adc1, ADC_COMMON)); | -------------------------------- in this macro invocation | note: argument has type `adc::Vbat` --> src/adc.rs:595:18 | 595 | drop(vbat); | ^^^^ ... 887 | adc!(ADC1 => (adc1, ADC_COMMON)); | -------------------------------- in this macro invocation = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#drop_non_drop = note: this warning originates in the macro `adc` (in Nightly builds, run with -Z macro-backtrace for more info)

self.adc_common.ccr.modify(|_, w| w.ch18sel().clear_bit());
}
Expand Down Expand Up @@ -634,7 +634,7 @@

/// Disable the internal temperature sensor channel.
pub fn disable_temperature(&mut self, temperature: Temperature) {
drop(temperature);

Check warning on line 637 in src/adc.rs

View workflow job for this annotation

GitHub Actions / clippy

call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes

warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes --> src/adc.rs:637:13 | 637 | drop(temperature); | ^^^^^^^^^^^^^^^^^ ... 887 | adc!(ADC1 => (adc1, ADC_COMMON)); | -------------------------------- in this macro invocation | note: argument has type `adc::Temperature` --> src/adc.rs:637:18 | 637 | drop(temperature); | ^^^^^^^^^^^ ... 887 | adc!(ADC1 => (adc1, ADC_COMMON)); | -------------------------------- in this macro invocation = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#drop_non_drop = note: this warning originates in the macro `adc` (in Nightly builds, run with -Z macro-backtrace for more info)

self.adc_common.ccr.modify(|_, w| w.ch17sel().clear_bit())
}
Expand Down Expand Up @@ -677,7 +677,7 @@
// Select system clock as ADC clock source
ccipr.ccipr().modify(|_, w| {
// This is sound, as `0b11` is a valid value for this field.
unsafe {

Check warning on line 680 in src/adc.rs

View workflow job for this annotation

GitHub Actions / clippy

unnecessary `unsafe` block

warning: unnecessary `unsafe` block --> src/adc.rs:680:25 | 680 | unsafe { | ^^^^^^ unnecessary `unsafe` block ... 926 | adc!(ADC2 => (adc2, ADC_COMMON)); | -------------------------------- in this macro invocation | = note: this warning originates in the macro `adc` (in Nightly builds, run with -Z macro-backtrace for more info)

Check warning on line 680 in src/adc.rs

View workflow job for this annotation

GitHub Actions / clippy

unnecessary `unsafe` block

warning: unnecessary `unsafe` block --> src/adc.rs:680:25 | 680 | unsafe { | ^^^^^^ unnecessary `unsafe` block ... 887 | adc!(ADC1 => (adc1, ADC_COMMON)); | -------------------------------- in this macro invocation | = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default = note: this warning originates in the macro `adc` (in Nightly builds, run with -Z macro-backtrace for more info)
// TODO: Switch to enum once https://github.com/stm32-rs/stm32-rs/pull/720 is released.
w.adcsel().bits(0b11);
}
Expand Down Expand Up @@ -916,8 +916,8 @@
feature = "stm32l443",
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand All @@ -930,8 +930,8 @@
feature = "stm32l443",
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down
8 changes: 4 additions & 4 deletions src/dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,8 @@
#[cfg(not(any(
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down Expand Up @@ -1004,7 +1004,7 @@
let overrun =
self.passed_mark(self.write_previous, write_current, self.read_index, capacity)
|| (transfer_complete_flag && !self.passed_mark(self.write_previous, write_current, 0, capacity))
|| (half_complete_flag && !self.passed_mark(self.write_previous, write_current, (capacity+1)/2, capacity));

Check warning on line 1007 in src/dma.rs

View workflow job for this annotation

GitHub Actions / clippy

manually reimplementing `div_ceil`

warning: manually reimplementing `div_ceil` --> src/dma.rs:1007:113 | 1007 | || (half_complete_flag && !self.passed_mark(self.write_previous, write_current, (capacity+1)/2, capacity)); | ^^^^^^^^^^^^^^ help: consider using `.div_ceil()`: `capacity.div_ceil(2)` ... 1151 | / dma! { 1152 | | DMA1: (dma1, { 1153 | | C1: ( 1154 | | ccr1, CCR1, ... | 1281 | | }), 1282 | | } | |_- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#manual_div_ceil = note: `#[warn(clippy::manual_div_ceil)]` on by default = note: this warning originates in the macro `dma` (in Nightly builds, run with -Z macro-backtrace for more info)
self.write_previous = write_current;
if overrun {
self.read_index = write_current;
Expand Down Expand Up @@ -1126,8 +1126,8 @@
#[cfg(any(
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down
32 changes: 16 additions & 16 deletions src/dmamux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#[cfg(any(
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down Expand Up @@ -132,8 +132,8 @@
#[cfg(any(
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down Expand Up @@ -240,8 +240,8 @@
#[cfg(any(
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand All @@ -256,8 +256,8 @@
#[cfg(any(
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down Expand Up @@ -372,8 +372,8 @@
#[cfg(not(any(
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down Expand Up @@ -419,8 +419,8 @@
#[cfg(not(any(
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down Expand Up @@ -467,7 +467,7 @@
(USART1_RX, 0b0010, [DmaInput::Usart1Rx]),
(I2C2_RX, 0b0011, [DmaInput::I2c2Rx]),
(TIM2_CH1, 0b0100, [DmaInput::Tim2Ch1]),
(QUADSPI, 0b0101, [DmaInput::QuadSpi]),

Check warning on line 470 in src/dmamux.rs

View workflow job for this annotation

GitHub Actions / clippy

name `QUADSPI` contains a capitalized acronym

warning: name `QUADSPI` contains a capitalized acronym --> src/dmamux.rs:470:10 | 470 | (QUADSPI, 0b0101, [DmaInput::QuadSpi]), | ^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Quadspi` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#upper_case_acronyms = note: `#[warn(clippy::upper_case_acronyms)]` on by default
(TIM4_CH3, 0b0110, [DmaInput::Tim4Ch3]),
(TIM15_CH1_TIM15_UP_TIM15_TRIG_TIM15_COM, 0b0111, [DmaInput::Tim15Ch1, DmaInput::Tim15Up, DmaInput::Tim15Trig, DmaInput::Tim15Com]),
},
Expand Down Expand Up @@ -529,13 +529,13 @@
(ADC3, 0b0000, [DmaInput::Adc3]),
(UART4_RX, 0b0010, [DmaInput::Uart4Rx]),
(TIM7_UP_DAC_CH2, 0b0011, [DmaInput::Tim7Up, DmaInput::Dac1Ch2]),
(DCMI, 0b0100, [DmaInput::Dcmi]),

Check warning on line 532 in src/dmamux.rs

View workflow job for this annotation

GitHub Actions / clippy

name `DCMI` contains a capitalized acronym

warning: name `DCMI` contains a capitalized acronym --> src/dmamux.rs:532:10 | 532 | (DCMI, 0b0100, [DmaInput::Dcmi]), | ^^^^ help: consider making the acronym lowercase, except the initial letter: `Dcmi` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#upper_case_acronyms
(TIM5_CH1, 0b0101, [DmaInput::Tim5Ch1]),
(AES_IN, 0b0110, [DmaInput::AesIn]),
(SDMMC1, 0b0111, [DmaInput::SdMmc1]),
},
DMA2_C6_SEL: {
(DCMI, 0b0000, [DmaInput::Dcmi]),

Check warning on line 538 in src/dmamux.rs

View workflow job for this annotation

GitHub Actions / clippy

name `DCMI` contains a capitalized acronym

warning: name `DCMI` contains a capitalized acronym --> src/dmamux.rs:538:10 | 538 | (DCMI, 0b0000, [DmaInput::Dcmi]), | ^^^^ help: consider making the acronym lowercase, except the initial letter: `Dcmi` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#upper_case_acronyms
(SAI1_A, 0b0001, [DmaInput::Sai1A]),
(USART1_TX, 0b0010, [DmaInput::Usart1Tx]),
(LPUART1_TX, 0b0100, [DmaInput::LpUart1Tx]),
Expand All @@ -545,7 +545,7 @@
DMA2_C7_SEL: {
(SAI1_B, 0b0001, [DmaInput::Sai1B]),
(USART1_RX, 0b0010, [DmaInput::Usart1Rx]),
(QUADSPI, 0b0011, [DmaInput::QuadSpi]),

Check warning on line 548 in src/dmamux.rs

View workflow job for this annotation

GitHub Actions / clippy

name `QUADSPI` contains a capitalized acronym

warning: name `QUADSPI` contains a capitalized acronym --> src/dmamux.rs:548:10 | 548 | (QUADSPI, 0b0011, [DmaInput::QuadSpi]), | ^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Quadspi` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#upper_case_acronyms
(LPUART1_RX, 0b0100, [DmaInput::LpUart1Rx]),
(I2C1_TX, 0b0101, [DmaInput::I2c1Tx]),
(HASH_IN, 0b0110, [DmaInput::HashIn]),
Expand All @@ -565,8 +565,8 @@
#[cfg(any(
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand All @@ -586,8 +586,8 @@
#[cfg(not(any(
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down
16 changes: 8 additions & 8 deletions src/gpio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -721,14 +721,14 @@
// feature = "stm32l471", // missing PAC support for Port G
feature = "stm32l475",
feature = "stm32l476",
feature = "stm32l485",

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4s9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4s9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r5)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r5)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l431)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l431)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l422, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l422, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l452, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l452, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l412, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l412, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l451)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l451)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l432, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l432, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l442, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l442, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l462, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l462, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l443, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l443, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l475)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l475)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l486, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l486, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l496, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l496, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l4a6, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l4a6, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l471)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l471)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l433, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l433, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l476, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l476, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 724 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / clippy

unexpected `cfg` condition value: `stm32l485`

warning: unexpected `cfg` condition value: `stm32l485` --> src/gpio.rs:724:5 | 724 | feature = "stm32l485", | ^^^^^^^^^^----------- | | | help: there is a expected value with a similar name: `"stm32l4s5"` | = note: expected values for `feature` are: `otg_fs`, `rt`, `stm32-usbd`, `stm32l412`, `stm32l422`, `stm32l431`, `stm32l432`, `stm32l433`, `stm32l442`, `stm32l443`, `stm32l451`, `stm32l452`, `stm32l462`, `stm32l471`, `stm32l475`, `stm32l476`, `stm32l486`, `stm32l496`, `stm32l4a6`, `stm32l4r5`, `stm32l4r9`, `stm32l4s5`, `stm32l4s9`, `synopsys-usb-otg`, and `unproven` = help: consider adding `stm32l485` as a feature in `Cargo.toml` = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration = note: `#[warn(unexpected_cfgs)]` on by default
feature = "stm32l486",
feature = "stm32l496",
feature = "stm32l4a6",
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down Expand Up @@ -756,14 +756,14 @@
// feature = "stm32l471", // missing PAC support for Port G
feature = "stm32l475",
feature = "stm32l476",
feature = "stm32l485",

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4s9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4s9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r5)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r5)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l431)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l431)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l422, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l422, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l452, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l452, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l412, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l412, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l451)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l451)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l432, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l432, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l442, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l442, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l462, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l462, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l443, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l443, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l475)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l475)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l486, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l486, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l496, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l496, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l4a6, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l4a6, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l471)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l471)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l433, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l433, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l476, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l476, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 759 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / clippy

unexpected `cfg` condition value: `stm32l485`

warning: unexpected `cfg` condition value: `stm32l485` --> src/gpio.rs:759:5 | 759 | feature = "stm32l485", | ^^^^^^^^^^----------- | | | help: there is a expected value with a similar name: `"stm32l4s5"` | = note: expected values for `feature` are: `otg_fs`, `rt`, `stm32-usbd`, `stm32l412`, `stm32l422`, `stm32l431`, `stm32l432`, `stm32l433`, `stm32l442`, `stm32l443`, `stm32l451`, `stm32l452`, `stm32l462`, `stm32l471`, `stm32l475`, `stm32l476`, `stm32l486`, `stm32l496`, `stm32l4a6`, `stm32l4r5`, `stm32l4r9`, `stm32l4s5`, `stm32l4s9`, `synopsys-usb-otg`, and `unproven` = help: consider adding `stm32l485` as a feature in `Cargo.toml` = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
feature = "stm32l486",
feature = "stm32l496",
feature = "stm32l4a6",
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down Expand Up @@ -794,14 +794,14 @@
// feature = "stm32l471", // missing PAC support for Port H
feature = "stm32l475",
feature = "stm32l476",
feature = "stm32l485",

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4s9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4s9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r5)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r5)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l431)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l431)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l422, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l422, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l452, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l452, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l412, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l412, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l451)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l451)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l432, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l432, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l442, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l442, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l462, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l462, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l443, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l443, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l475)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l475)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l486, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l486, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l496, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l496, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l4a6, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l4a6, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l471)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l471)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l433, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l433, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l476, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l476, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 797 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / clippy

unexpected `cfg` condition value: `stm32l485`

warning: unexpected `cfg` condition value: `stm32l485` --> src/gpio.rs:797:3 | 797 | feature = "stm32l485", | ^^^^^^^^^^----------- | | | help: there is a expected value with a similar name: `"stm32l4s5"` | = note: expected values for `feature` are: `otg_fs`, `rt`, `stm32-usbd`, `stm32l412`, `stm32l422`, `stm32l431`, `stm32l432`, `stm32l433`, `stm32l442`, `stm32l443`, `stm32l451`, `stm32l452`, `stm32l462`, `stm32l471`, `stm32l475`, `stm32l476`, `stm32l486`, `stm32l496`, `stm32l4a6`, `stm32l4r5`, `stm32l4r9`, `stm32l4s5`, `stm32l4s9`, `synopsys-usb-otg`, and `unproven` = help: consider adding `stm32l485` as a feature in `Cargo.toml` = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
feature = "stm32l486",
feature = "stm32l496",
feature = "stm32l4a6",
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down Expand Up @@ -839,14 +839,14 @@
// feature = "stm32l471", // missing PAC support for Port F
feature = "stm32l475",
feature = "stm32l476",
feature = "stm32l485",

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4s9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4s9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r5)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r5)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l431)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l431)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l422, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l422, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l452, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l452, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l412, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l412, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l451)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l451)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l432, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l432, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l442, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l442, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l462, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l462, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l443, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l443, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l475)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l475)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l486, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l486, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l496, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l496, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l4a6, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l4a6, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l471)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l471)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l433, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l433, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l476, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l476, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 842 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / clippy

unexpected `cfg` condition value: `stm32l485`

warning: unexpected `cfg` condition value: `stm32l485` --> src/gpio.rs:842:17 | 842 | feature = "stm32l485", | ^^^^^^^^^^----------- | | | help: there is a expected value with a similar name: `"stm32l4s5"` | = note: expected values for `feature` are: `otg_fs`, `rt`, `stm32-usbd`, `stm32l412`, `stm32l422`, `stm32l431`, `stm32l432`, `stm32l433`, `stm32l442`, `stm32l443`, `stm32l451`, `stm32l452`, `stm32l462`, `stm32l471`, `stm32l475`, `stm32l476`, `stm32l486`, `stm32l496`, `stm32l4a6`, `stm32l4r5`, `stm32l4r9`, `stm32l4s5`, `stm32l4s9`, `synopsys-usb-otg`, and `unproven` = help: consider adding `stm32l485` as a feature in `Cargo.toml` = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
feature = "stm32l486",
feature = "stm32l496",
feature = "stm32l4a6",
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand All @@ -857,14 +857,14 @@
// feature = "stm32l471", // missing PAC support for Port G
feature = "stm32l475",
feature = "stm32l476",
feature = "stm32l485",

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4s9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4s9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r5)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r5)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l431)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l431)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l422, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l422, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l452, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l452, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l412, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l412, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l451)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l451)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l432, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l432, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l442, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l442, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l462, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l462, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l443, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l443, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l475)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l475)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l486, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l486, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l496, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l496, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l4a6, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l4a6, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l471)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l471)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l433, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l433, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l476, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l476, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 860 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / clippy

unexpected `cfg` condition value: `stm32l485`

warning: unexpected `cfg` condition value: `stm32l485` --> src/gpio.rs:860:17 | 860 | feature = "stm32l485", | ^^^^^^^^^^----------- | | | help: there is a expected value with a similar name: `"stm32l4s5"` | = note: expected values for `feature` are: `otg_fs`, `rt`, `stm32-usbd`, `stm32l412`, `stm32l422`, `stm32l431`, `stm32l432`, `stm32l433`, `stm32l442`, `stm32l443`, `stm32l451`, `stm32l452`, `stm32l462`, `stm32l471`, `stm32l475`, `stm32l476`, `stm32l486`, `stm32l496`, `stm32l4a6`, `stm32l4r5`, `stm32l4r9`, `stm32l4s5`, `stm32l4s9`, `synopsys-usb-otg`, and `unproven` = help: consider adding `stm32l485` as a feature in `Cargo.toml` = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
feature = "stm32l486",
feature = "stm32l496",
feature = "stm32l4a6",
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand All @@ -875,14 +875,14 @@
// feature = "stm32l471", // missing PAC support for Port G
feature = "stm32l475",
feature = "stm32l476",
feature = "stm32l485",

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4s9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4s9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r9)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r5)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci-rx (stable, stm32l4r5)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l431)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l431)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l422, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l422, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l452, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l452, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l412, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l412, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l451)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l451)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l432, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l432, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l442, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l442, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l462, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l462, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l443, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l443, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l475)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l475)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l486, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l486, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l496, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l496, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l4a6, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l4a6, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l471)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l471)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l433, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l433, ,stm32-usbd)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l476, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / ci (stable, stm32l476, ,otg_fs)

unexpected `cfg` condition value: `stm32l485`

Check warning on line 878 in src/gpio.rs

View workflow job for this annotation

GitHub Actions / clippy

unexpected `cfg` condition value: `stm32l485`

warning: unexpected `cfg` condition value: `stm32l485` --> src/gpio.rs:878:15 | 878 | feature = "stm32l485", | ^^^^^^^^^^----------- | | | help: there is a expected value with a similar name: `"stm32l4s5"` | = note: expected values for `feature` are: `otg_fs`, `rt`, `stm32-usbd`, `stm32l412`, `stm32l422`, `stm32l431`, `stm32l432`, `stm32l433`, `stm32l442`, `stm32l443`, `stm32l451`, `stm32l452`, `stm32l462`, `stm32l471`, `stm32l475`, `stm32l476`, `stm32l486`, `stm32l496`, `stm32l4a6`, `stm32l4r5`, `stm32l4r9`, `stm32l4s5`, `stm32l4s9`, `synopsys-usb-otg`, and `unproven` = help: consider adding `stm32l485` as a feature in `Cargo.toml` = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
feature = "stm32l486",
feature = "stm32l496",
feature = "stm32l4a6",
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down
12 changes: 6 additions & 6 deletions src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
feature = "stm32l4a6",
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down Expand Up @@ -44,7 +44,7 @@
}

#[doc(hidden)]
pub(self) mod private {

Check warning on line 47 in src/i2c.rs

View workflow job for this annotation

GitHub Actions / clippy

unnecessary `pub(self)`

warning: unnecessary `pub(self)` --> src/i2c.rs:47:1 | 47 | pub(self) mod private { | ^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#needless_pub_self = note: `#[warn(clippy::needless_pub_self)]` on by default = help: remove it
pub trait Sealed {}
}

Expand Down Expand Up @@ -208,8 +208,8 @@
feature = "stm32l4a6",
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down Expand Up @@ -317,7 +317,7 @@
w.start()
.set_bit()
.sadd()
.bits(u16(addr << 1 | 0))

Check warning on line 320 in src/i2c.rs

View workflow job for this annotation

GitHub Actions / clippy

this operation has no effect

warning: this operation has no effect --> src/i2c.rs:320:27 | 320 | .bits(u16(addr << 1 | 0)) | ^^^^^^^^^^^^^ help: consider reducing it to: `(addr << 1)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#identity_op = note: `#[warn(clippy::identity_op)]` on by default
.add10()
.clear_bit()
.rd_wrn()
Expand Down Expand Up @@ -357,7 +357,7 @@

fn read(&mut self, addr: u8, buffer: &mut [u8]) -> Result<(), Error> {
// TODO support transfers of more than 255 bytes
assert!(buffer.len() < 256 && buffer.len() > 0);

Check warning on line 360 in src/i2c.rs

View workflow job for this annotation

GitHub Actions / clippy

length comparison to zero

warning: length comparison to zero --> src/i2c.rs:360:39 | 360 | assert!(buffer.len() < 256 && buffer.len() > 0); | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!buffer.is_empty()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#len_zero = note: `#[warn(clippy::len_zero)]` on by default

// Wait for any previous address sequence to end
// automatically. This could be up to 50% of a bus
Expand All @@ -369,7 +369,7 @@
// is BUSY or I2C is in slave mode.
self.i2c.cr2.write(|w| {
w.sadd()
.bits((addr << 1 | 0) as u16)

Check warning on line 372 in src/i2c.rs

View workflow job for this annotation

GitHub Actions / clippy

this operation has no effect

warning: this operation has no effect --> src/i2c.rs:372:23 | 372 | .bits((addr << 1 | 0) as u16) | ^^^^^^^^^^^^^^^ help: consider reducing it to: `(addr << 1)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#identity_op
.rd_wrn()
.read()
.nbytes()
Expand Down Expand Up @@ -402,8 +402,8 @@

fn write_read(&mut self, addr: u8, bytes: &[u8], buffer: &mut [u8]) -> Result<(), Error> {
// TODO support transfers of more than 255 bytes
assert!(bytes.len() < 256 && bytes.len() > 0);

Check warning on line 405 in src/i2c.rs

View workflow job for this annotation

GitHub Actions / clippy

length comparison to zero

warning: length comparison to zero --> src/i2c.rs:405:38 | 405 | assert!(bytes.len() < 256 && bytes.len() > 0); | ^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!bytes.is_empty()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#len_zero
assert!(buffer.len() < 256 && buffer.len() > 0);

Check warning on line 406 in src/i2c.rs

View workflow job for this annotation

GitHub Actions / clippy

length comparison to zero

warning: length comparison to zero --> src/i2c.rs:406:39 | 406 | assert!(buffer.len() < 256 && buffer.len() > 0); | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!buffer.is_empty()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#len_zero

// Wait for any previous address sequence to end
// automatically. This could be up to 50% of a bus
Expand All @@ -417,7 +417,7 @@
w.start()
.set_bit()
.sadd()
.bits(u16(addr << 1 | 0))

Check warning on line 420 in src/i2c.rs

View workflow job for this annotation

GitHub Actions / clippy

this operation has no effect

warning: this operation has no effect --> src/i2c.rs:420:27 | 420 | .bits(u16(addr << 1 | 0)) | ^^^^^^^^^^^^^ help: consider reducing it to: `(addr << 1)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#identity_op
.add10()
.clear_bit()
.rd_wrn()
Expand Down Expand Up @@ -469,7 +469,7 @@

#[cfg(any(feature = "stm32l431", feature = "stm32l451", feature = "stm32l471"))]
mod stm32l4x1_pins {
#[cfg(any(feature = "stm32l451"))]

Check warning on line 472 in src/i2c.rs

View workflow job for this annotation

GitHub Actions / clippy

unneeded sub `cfg` when there is only one condition

warning: unneeded sub `cfg` when there is only one condition --> src/i2c.rs:472:11 | 472 | #[cfg(any(feature = "stm32l451"))] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `feature = "stm32l451"` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#non_minimal_cfg
use super::I2C4;
use super::{I2C1, I2C2, I2C3};
use crate::gpio::*;
Expand Down Expand Up @@ -555,7 +555,7 @@
pins!(I2C3, 4, SCL: [PA7, PC0], SDA: [PB4, PC1]);
}

#[cfg(any(feature = "stm32l475"))]

Check warning on line 558 in src/i2c.rs

View workflow job for this annotation

GitHub Actions / clippy

unneeded sub `cfg` when there is only one condition

warning: unneeded sub `cfg` when there is only one condition --> src/i2c.rs:558:7 | 558 | #[cfg(any(feature = "stm32l475"))] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `feature = "stm32l475"` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#non_minimal_cfg
mod stm32l4x5_pins {
use super::{I2C1, I2C2, I2C3};
use crate::gpio::*;
Expand Down Expand Up @@ -615,8 +615,8 @@
#[cfg(any(
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
feature = "stm32l4r9",
Expand Down
18 changes: 14 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@
feature = "stm32l486",
feature = "stm32l496",
feature = "stm32l4a6",
// note L4+ PAC support is mostly missing so other than r9/s9 these features don't actually exist yet
// feature = "stm32l4p5",
// feature = "stm32l4q5",
// feature = "stm32l4r5",
// feature = "stm32l4s5",
feature = "stm32l4r5",
feature = "stm32l4s5",
// feature = "stm32l4r7",
// feature = "stm32l4s7",
// these have PAC support. Hal integration is very slim though
Expand All @@ -46,6 +45,7 @@
stm32l433, stm32l443
stm32l475,
stm32l476, stm32l486, stm32l496, stm32l4a6
stm32l4r5, stm32l4s5
stm32l4r9, stm32l4s9
"
);
Expand Down Expand Up @@ -99,7 +99,7 @@
#[cfg(any(feature = "stm32l433", feature = "stm32l443"))]
pub use stm32l4::stm32l4x3 as pac;

#[cfg(any(feature = "stm32l475"))]

Check warning on line 102 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy

unneeded sub `cfg` when there is only one condition

warning: unneeded sub `cfg` when there is only one condition --> src/lib.rs:102:7 | 102 | #[cfg(any(feature = "stm32l475"))] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `feature = "stm32l475"` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#non_minimal_cfg = note: `#[warn(clippy::non_minimal_cfg)]` on by default
pub use stm32l4::stm32l4x5 as pac;

#[cfg(any(
Expand All @@ -110,6 +110,9 @@
))]
pub use stm32l4::stm32l4x6 as pac;

#[cfg(any(feature = "stm32l4r5", feature = "stm32l4s5"))]
pub use stm32l4::stm32l4r5 as pac;

#[cfg(any(feature = "stm32l4r9", feature = "stm32l4s9",))]
pub use stm32l4::stm32l4r9 as pac;

Expand All @@ -121,7 +124,12 @@

pub mod traits;

#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
#[cfg(not(any(
feature = "stm32l4r9",
feature = "stm32l4s9",
feature = "stm32l4r5",
feature = "stm32l4s5",
)))]
pub mod adc;
#[cfg(not(any(feature = "stm32l4r9", feature = "stm32l4s9",)))]
#[cfg(not(any(feature = "stm32l412",)))]
Expand Down Expand Up @@ -151,6 +159,8 @@
#[cfg(not(any(
feature = "stm32l433",
feature = "stm32l443",
feature = "stm32l4r5",
feature = "stm32l4s5",
feature = "stm32l4r9",
feature = "stm32l4s9",
)))]
Expand Down
4 changes: 2 additions & 2 deletions src/pwm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ macro_rules! pwm_channels {

#[inline(always)]
fn get_duty(&self) -> Self::Duty {
unsafe { (*$TIMX::ptr()).$ccrX.read().$ccr().bits() }
unsafe { (*$TIMX::ptr()).$ccrX().read().$ccr().bits() }
}

#[inline(always)]
Expand All @@ -380,7 +380,7 @@ macro_rules! pwm_channels {

#[inline(always)]
fn set_duty(&mut self, duty: Self::Duty) {
unsafe { (*$TIMX::ptr()).$ccrX.write(|w| w.$ccr().bits(duty)) }
unsafe { (*$TIMX::ptr()).$ccrX().write(|w| w.$ccr().bits(duty)) }
}
}
)+
Expand Down
Loading
Loading