forked from M-Labs/kirdy
AD7172: Rm deprecated warning for Rev0_2 hw bug
This commit is contained in:
parent
a0b67cdb09
commit
095fe8ea69
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user