use crate::hal;
use hal::gpio;
type DeemphasisPin = gpio::gpiob::PB11<gpio::Output<gpio::PushPull>>;
pub type Pins = (DeemphasisPin,);
pub struct Codec {
deemphasis: DeemphasisPin,
}
impl Codec {
pub fn init(pins: Pins) -> Self {
Self {
deemphasis: pins.0.into_push_pull_output(),
}
}
pub fn start(&mut self) {
self.deemphasis.set_low();
}
}