Kojo
/
RTOS-VS1053b-mp3_v01
My first attempt of Thread based mp3 player with mbed RTOS *player thread *volume control thread
Diff: main.cpp
- Revision:
- 0:82078eeba8ba
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 19 11:32:57 2012 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +#include "rtos.h" + +extern void main_mp3(void const *) ; +DigitalOut led1(LED1); + +int main() { + + Thread t(main_mp3 , NULL, osPriorityNormal, (DEFAULT_STACK_SIZE * 2.25)); + + while (true) { + led1 = 1 ; + Thread::wait(1000); + led1 = 0 ; + } +} \ No newline at end of file