From e59e983e2945630d706cef45406b75d49692beda Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Sun, 6 Aug 2017 11:17:38 -0700 Subject: [PATCH] I2S: Rename configuration structs to reflect interface modes. --- firmware/application/audio.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/application/audio.cpp b/firmware/application/audio.cpp index 19022434e..af9e5392d 100644 --- a/firmware/application/audio.cpp +++ b/firmware/application/audio.cpp @@ -33,7 +33,7 @@ namespace audio { namespace { -constexpr i2s::ConfigTX i2s0_config_tx { +constexpr i2s::ConfigTX i2s0_config_tx_master_base_clk { .dao = i2s::DAO { .wordwidth = i2s::WordWidth::Bits16, .mono = 0, @@ -58,7 +58,7 @@ constexpr i2s::ConfigTX i2s0_config_tx { .sck_in_sel = 1, }; -constexpr i2s::ConfigRX i2s0_config_rx { +constexpr i2s::ConfigRX i2s0_config_rx_four_wire { .dai = i2s::DAI { .wordwidth = i2s::WordWidth::Bits16, .mono = 0, @@ -178,8 +178,8 @@ void init(audio::Codec* const codec) { audio_codec->init(); i2s::i2s0::configure( - i2s0_config_tx, - i2s0_config_rx, + i2s0_config_tx_master_base_clk, + i2s0_config_rx_four_wire, i2s0_config_dma );