made it do pwmout and dacout

Dependents:   4180_FDP_ADC

Fork of wave_player by Steve Ravet

Revision:
2:da5d90e12f27
Parent:
1:acc3e18e77ad
--- a/wave_player.h	Tue Jan 18 03:57:27 2011 +0000
+++ b/wave_player.h	Fri Dec 05 02:31:00 2014 +0000
@@ -37,7 +37,7 @@
  *
  * @param _dac pointer to an AnalogOut object to which the samples are sent.
  */
-wave_player(AnalogOut *_dac);
+wave_player(AnalogOut *_dac, PwmOut *_pwm);
 
 /** the player function.
  *
@@ -62,6 +62,7 @@
 void dac_out(void);
 int verbosity;
 AnalogOut *wave_DAC;
+PwmOut *wave_PWM;
 Ticker tick;
 unsigned short DAC_fifo[256];
 short DAC_wptr;
@@ -69,4 +70,3 @@
 short DAC_on;
 };
 
-