my dependency on I2S

Dependents:   NotchingDemo

Files at this revision

API Documentation at this revision

Comitter:
roryhand
Date:
Tue Oct 23 19:02:18 2018 +0000
Parent:
0:455d5826751b
Commit message:
changed this to take in a different data type in the write function;

Changed in this revision

I2S.cpp Show annotated file Show diff for this revision Revisions of this file
I2S.h Show annotated file Show diff for this revision Revisions of this file
diff -r 455d5826751b -r 9dd9537d8ab6 I2S.cpp
--- a/I2S.cpp	Wed Sep 19 10:53:33 2012 +0000
+++ b/I2S.cpp	Tue Oct 23 19:02:18 2018 +0000
@@ -189,7 +189,7 @@
 
 }
 
-void I2S::write(int buf[], int len)
+void I2S::write(short buf[], short len)
 {
     if (_rxtx == I2S_TRANSMIT && wordwidth > 0) {
         if (len > max_fifo_points()) {
diff -r 455d5826751b -r 9dd9537d8ab6 I2S.h
--- a/I2S.h	Wed Sep 19 10:53:33 2012 +0000
+++ b/I2S.h	Tue Oct 23 19:02:18 2018 +0000
@@ -117,7 +117,7 @@
      * @param buf[] The buffer of values to write: are bit stuffed automatically
      * @param len    The number of chars to write
      */
-    void write(int buf[], int len);
+    void write(short buf[], short len);
 
     /** Read the FIFOs contents
      *