Advanced Operating Systems - Final Project A @ Tokyo Tech ////////////// Author: Chu Van Thiem and Sidik Soleman ////////////// A WAVE file player on the MBED Application Board with an interface to a software on PC via a TCP connection. ////////////// Main functions: 1. Browse files of an attached USB flash 2. The list of the files of the attached USB are displayed on the LCD 3. Use an joystick to select a WAVE file and give an instruction to play that file 4. Adjust the volume using a potentiometer 5. Output audio to the analog audio out jack ////////////// Software (https://github.com/thiemcv/VS/tree/master/Terminal): 1. Connect with the MBED application board via Ethernet connection 2. Read the list of files stored on the USB flash 3. Write files to the USB flash

Dependencies:   C12832_lcd EthernetInterface USBHost mbed-rtos mbed wave_player

Committer:
aos
Date:
Thu Feb 13 17:58:20 2014 +0000
Revision:
5:12a48b7c41bf
Parent:
2:5bc47e544b8d
Update

Who changed what in which revision?

UserRevisionLine numberNew contents of line
aos 2:5bc47e544b8d 1 /* FILE: usb.h by Chu Van Thiem
aos 2:5bc47e544b8d 2 */
aos 1:3b567aa3b09e 3 #ifndef __USB_H__
aos 1:3b567aa3b09e 4 #define __USB_H__
aos 1:3b567aa3b09e 5
aos 1:3b567aa3b09e 6 #include "USBHostMSD.h"
aos 1:3b567aa3b09e 7 #include "string"
aos 1:3b567aa3b09e 8 #include "vector"
aos 1:3b567aa3b09e 9
aos 1:3b567aa3b09e 10 class usb : public USBHostMSD/*, public FATDirHandle*/ {
aos 1:3b567aa3b09e 11 public:
aos 1:3b567aa3b09e 12 // Constructor
aos 1:3b567aa3b09e 13 usb(const char * rootdir);
aos 1:3b567aa3b09e 14
aos 1:3b567aa3b09e 15 // List all files of the directory
aos 1:3b567aa3b09e 16 void listdir(const char *dir);
aos 1:3b567aa3b09e 17
aos 1:3b567aa3b09e 18 public:
aos 1:3b567aa3b09e 19 vector<string> filenames;
aos 1:3b567aa3b09e 20 };
aos 1:3b567aa3b09e 21
aos 1:3b567aa3b09e 22 #endif