use embassy_stm32::{self as hal, gpio::Output};
use hal::peripherals::*;
use embassy_time::Timer;
pub struct Codec {}
impl Codec {
pub async fn setup_ak4556(mut reset: Output<'_>) {
reset.set_high();
Timer::after_millis(1).await;
reset.set_low();
Timer::after_millis(1).await;
reset.set_high();
}
}
#[allow(non_snake_case)]
pub struct Pins {
pub MCLK_A: PE2, pub SCK_A: PE5, pub FS_A: PE4, pub SD_A: PE6, pub SD_B: PE3, pub RESET: PB11,
}