AD7172: Rm deprecated warning for Rev0_2 hw bug

This commit is contained in:
linuswck 2024-01-24 11:36:36 +08:00
parent a0b67cdb09
commit 095fe8ea69
1 changed files with 0 additions and 5 deletions

View File

@ -34,11 +34,6 @@ type AdcNss = PA15<Output<PushPull>>;
pub type AdcPhy = Adc<AdcSpi, AdcNss>;
impl<SPI: Transfer<u8, Error = E>, NSS: OutputPin, E: fmt::Debug> Adc<SPI, NSS> {
#[deprecated(note=
"To be removed when rev0_3 has arrived.
Rev0_2 has wrong SPI hardware connection bug.
AD7172-2 is not accessible.
")]
pub fn new(spi: SPI, mut nss: NSS) -> Result<Self, SPI::Error> {
let _ = nss.set_high();
let mut adc = Adc {