Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 1:9dd9537d8ab6, committed 2018-10-23
- 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 |
--- 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()) {
--- 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
*