I2S RX: Set RX SDA pin to correct SCUMUX mode.

It's left in GPIO mode ordinarily, because of CPLD programming earlier in boot-up.
This commit is contained in:
Jared Boone 2017-05-26 16:50:34 -07:00
parent 5cb71d787e
commit b3ee884f16
2 changed files with 10 additions and 0 deletions

View file

@ -27,6 +27,7 @@ using portapack::clock_manager;
#include "wm8731.hpp"
using wolfson::wm8731::WM8731;
#include "portapack_hal.hpp"
#include "i2s.hpp"
using namespace lpc43xx;
@ -160,6 +161,9 @@ void init() {
i2s0_config_rx,
i2s0_config_dma
);
// Set pin mode, since it's likely GPIO (as left after CPLD JTAG interactions).
portapack::pin_i2s0_rx_sda.mode(3);
}
void shutdown() {