My first attempt of Thread based mp3 player with mbed RTOS *player thread *volume control thread

Dependencies:   mbed VS1053b

main.cpp

Committer:
takashikojo
Date:
2012-03-19
Revision:
1:4d5a54104bbb
Parent:
0:82078eeba8ba

File content as of revision 1:4d5a54104bbb:

#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 ;
    }
}