File tree Expand file tree Collapse file tree
STM32F1/libraries/Serasidis_VS1003B_STM/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 email: avrsite@yahoo.gr
1111 29 May 2015 - Added a fix for booting the VS1053B boards into
1212 mp3 decoding instead of booting into MID (modeSwitch function).
13+ 01 July 2015 - Added a Flac decoder patch.
1314 */
1415
1516// #include <my_SPI.h>
1617#include < VS1003_STM.h>
1718
19+ #if defined(USEFLAC)
20+ #include " flac.h"
21+ #endif
22+
1823#define vs1003_chunk_size 32
1924/* ***************************************************************************/
2025
@@ -237,6 +242,9 @@ void VS1003::begin(void)
237242 write_register (SCI_MODE, (1 <<SM_SDINEW) | (1 <<SM_RESET));
238243 delay (1 );
239244 await_data_request ();
245+ #if defined(USEFLAC)
246+ loadUserCode (flac_patch,FLAC_PATCHLEN);
247+ #endif
240248 // write_register(SCI_CLOCKF,0xB800); // Experimenting with higher clock settings
241249 write_register (SCI_CLOCKF,0x6000 );
242250 delay (1 );
Original file line number Diff line number Diff line change 1010 email: avrsite@yahoo.gr
1111
1212 29 May 2015 - Added a fix for booting the VS1053B boards into mp3 decoding instead of booting into MIDI.
13+ 01 July 2015 - Added a Flac decoder patch.
1314 */
1415
1516// This is an additional test line
2021// C headers
2122// Framework headers
2223
24+ // #define USEFLAC
25+
2326#include < Arduino.h>
2427#include < SPI.h>
2528/* *
You can’t perform that action at this time.
0 commit comments