mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-13 03:34:35 +00:00
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:
parent
5cb71d787e
commit
b3ee884f16
@ -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() {
|
||||
|
@ -56,6 +56,12 @@ constexpr GPIO gpio_cpld_tdo = gpio[GPIO1_8]; // P1_5
|
||||
constexpr GPIO gpio_cpld_tck = gpio[GPIO3_0]; // P6_1
|
||||
constexpr GPIO gpio_cpld_tdi = gpio[GPIO3_1]; // P6_2
|
||||
|
||||
constexpr auto pin_i2s0_mclk = pins[CLK2];
|
||||
constexpr auto pin_i2s0_sck = pins[P3_0];
|
||||
constexpr auto pin_i2s0_ws = pins[P3_1];
|
||||
constexpr auto pin_i2s0_tx_sda = pins[P3_2];
|
||||
constexpr auto pin_i2s0_rx_sda = pins[P6_2];
|
||||
|
||||
} /* namespace portapack */
|
||||
|
||||
#endif/*__PORTAPACK_HAL_H__*/
|
||||
|
Loading…
Reference in New Issue
Block a user