/***************************************************************************
Music.h
Team Firefox
ME 218A
This software
module
1) Controls the MP3 player to play music
NOTE: only 2
buttons are used: PLAY and NEXT. PLAY is also PAUSE
Inputs:
(none)
Outpus:
M4 - play
M5 - next
NOTE: current
implementation blocks for max 300 [ms]
NOTE: Press PLAY
and PLAY --> PAUSE. After pressing NEXT, music will play automatically
NOTE: Only 1 track
on the MP3 player
****************************************************************************/
/*----------------------------
Include Files ------------------------------*/
#ifndef Music_h
#define Music_h
#include <string.h>
#include
<timers12.h>
#include <stdio.h>
#include
<ME218_C32.h>
#include
"ADS12.h"
/*----------------------------
Public Function Prototypes------------------------------*/
void initMusic(void); //To be called once at flicker startup
void playMusic(void); //Will play music if its off; do nothing
if music is already playing
void stopMusic(void); //Will stop music if its playing; do
nothing if music is off
void restartMusic(void); //Will restart music
#endif