Skip to content

ADC code relies on deprecated feature macros #229

@bcattle

Description

@bcattle

Hello everyone!

In src/adc.rs analog input pins are enabled based on feature macros like the following:

#[cfg(all(
    feature = "stm32l072",
    any(
        feature = "lqfp64",
        feature = "lqfp100",
        feature = "tfbga64",
        feature = "ufbga64",
        feature = "ufbga100",
        feature = "wlcsp49",
    ),
))]
adc_pins! {
    Channel10: (gpioc::PC0<Analog>, 10u8),
    Channel11: (gpioc::PC1<Analog>, 11u8),
    Channel12: (gpioc::PC2<Analog>, 12u8),
}

However the "stm32l072" feature is not defined in Cargo.tomland appears to have been replaced:

# Legacy features (don't use those anymore)
# ...
stm32l072 = ["stm32l0x2"]
#...

# Later for example ... 
mcu-STM32L072V8Tx = ["stm32l0x2", "lqfp100", "io-STM32L071", "eeprom-3072", "flash-64", "ram-20"]
m
# ...

Should I update adc.rs to use the new macros? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions