Semaphore based wait and sync for the mp3 play
Dependents: RTOS-VS1053b-mp3_semaphore
Diff: VS1053t.h
- Revision:
- 0:d421471bef92
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/VS1053t.h Mon Mar 19 12:08:44 2012 +0000 @@ -0,0 +1,29 @@ +/* mbed VLSI VS1053t library + * + * Thread based VS1053 class inherited from VS1053b + * + */ + +#include "VS1053.h" + +class VS1053t : public VS1053 { +public : + VS1053t( + PinName mosi, + PinName miso, + PinName sck, + PinName cs, + PinName rst, + PinName dreq, + PinName dcs, + char* buffer, + int buffer_size, + bool thread = false + ); + unsigned int waitBuffer(unsigned int size, uint32_t time) ; + unsigned char bufferGetByte(void) ; +private : + int WaitingSize ; + bool thread ; + +} ;