jim hamblen / I2S

Dependents:   i2s_microphone LPC1768_MicrophoneSensing Receiver

Fork of I2S by Giles Barton-Owen

Files at this revision

API Documentation at this revision

Comitter:
4180_1
Date:
Fri Jan 26 00:52:02 2018 +0000
Parent:
0:455d5826751b
Commit message:
I2S for LPC1768 - with patch for rx clock pin

Changed in this revision

I2S.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/I2S.cpp	Wed Sep 19 10:53:33 2012 +0000
+++ b/I2S.cpp	Fri Jan 26 00:52:02 2018 +0000
@@ -490,7 +490,12 @@
             }
 
             if (clk_d == true) {
-                if (_clk == p15)
+ 
+ //
+ //I2S library patch 1/25/18 for typo to get input clock to work!
+ //patch "==" was changed to "!=" in if cond below to get I2S rx clock on correct pin
+ //
+                if (_clk != p15)
                     LPC_PINCON->PINSEL0 |= (val1 << 8);
                 else
                     LPC_PINCON->PINSEL1 |= (val2 << 14);