Just a simple library for VLSI's mp3/midi codec chip
Dependents: IsuProject_LPC1768
Revision 1:00c19f771676, committed 2013-11-08
- Comitter:
- kayekss
- Date:
- Fri Nov 08 11:01:00 2013 +0000
- Parent:
- 0:708868399033
- Child:
- 2:47ba7e2259cd
- Commit message:
- Fixed errors in sendDataBlock/stop
Changed in this revision
VS1053.cpp | Show annotated file Show diff for this revision Revisions of this file |
VS1053.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/VS1053.cpp Fri Nov 08 10:41:54 2013 +0000 +++ b/VS1053.cpp Fri Nov 08 11:01:00 2013 +0000 @@ -1,4 +1,4 @@ -// ==================================================== Nov 04 2013, kayeks == +// ==================================================== Nov 08 2013, kayeks == // VS1053.cpp // =========================================================================== // Just a simple library for VLSI's mp3/midi codec chip @@ -54,12 +54,12 @@ if (!p || !length) return 0; while (length) { while (!dreq); - cs = 0; + bsync = 0; for (uint8_t i = 0; i < 32 && length--; i++) { spi.write(*p++); sizeSent++; } - cs = 1; + bsync = 1; } return sizeSent; } @@ -105,11 +105,11 @@ length = 2052; while (length) { while (!dreq); - cs = 0; + bsync = 0; for (uint8_t i = 0; i < 32 && length--; i++) { spi.write(endFillByte); } - cs = 1; + bsync = 1; } // Check if both HDAT0 and HDAT1 are cleared
--- a/VS1053.h Fri Nov 08 10:41:54 2013 +0000 +++ b/VS1053.h Fri Nov 08 11:01:00 2013 +0000 @@ -1,4 +1,4 @@ -// ==================================================== Nov 04 2013, kayeks == +// ==================================================== Nov 08 2013, kayeks == // VS1053.h // =========================================================================== // Just a simple library for VLSI's mp3/midi codec chip