Skip to content

Commit 3d3c1f9

Browse files
committed
I2SDMA: Do not modify g_APinDescription
The g_APinDesctiption is now 'const', so cannot be modified.
1 parent d6b2eca commit 3d3c1f9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

libraries/CurieI2S/src/CurieI2SDMA.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ void Curie_I2SDMA::muxTX(bool enable)
110110
SET_PIN_MODE(g_APinDescription[I2S_TXD].ulSocPin, mux_mode);
111111
SET_PIN_MODE(g_APinDescription[I2S_TWS].ulSocPin, mux_mode);
112112
SET_PIN_MODE(g_APinDescription[I2S_TSCK].ulSocPin, mux_mode);
113-
g_APinDescription[I2S_TXD].ulPinMode = mux_mode;
114-
g_APinDescription[I2S_TWS].ulPinMode = mux_mode;
115-
g_APinDescription[I2S_TSCK].ulPinMode = mux_mode;
116113
}
117114

118115
void Curie_I2SDMA::muxRX(bool enable)
@@ -127,9 +124,6 @@ void Curie_I2SDMA::muxRX(bool enable)
127124
SET_PIN_MODE(49, mux_mode); //I2S_RXD
128125
SET_PIN_MODE(51, mux_mode); //I2S_RWS
129126
SET_PIN_MODE(50, mux_mode); //I2S_RSCK
130-
g_APinDescription[I2S_RXD].ulPinMode = mux_mode;
131-
g_APinDescription[I2S_RWS].ulPinMode = mux_mode;
132-
g_APinDescription[I2S_RSCK].ulPinMode = mux_mode;
133127
}
134128

135129
int Curie_I2SDMA::beginTX(uint16_t sample_rate,uint8_t resolution,uint8_t master,uint8_t mode)

0 commit comments

Comments
 (0)