Dialog DA7212 evaluating project DEVELOP branch

Dependencies:   FXAS21002 TLV320 mbed sinelookup C12832 FXOS8700

Files at this revision

API Documentation at this revision

Comitter:
k4zuki
Date:
Fri Mar 25 16:09:13 2016 +0900
Parent:
7:6b4ca547cb88
Child:
9:fe61a56fa5a9
Commit message:
uncomment i2s.frequency()

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Mar 24 05:58:40 2016 +0000
+++ b/main.cpp	Fri Mar 25 16:09:13 2016 +0900
@@ -65,33 +65,29 @@
 int main()
 {
     I2S0_TCSR |= 1u<<31;
-/*
-    skipper = (aIn*49)+1;
-
-    codec.power(true);
-    codec.frequency(SAMPLERATE);
-    codec.wordsize(16);
-    codec.master(false);
-    codec.headphone_volume(0.5);
-    codec.start();
-
+    // skipper = (aIn*49)+1;
+    //
+    // codec.power(true);
+    // codec.frequency(SAMPLERATE);
+    // codec.wordsize(16);
+    // codec.master(false);
+    // codec.headphone_volume(0.5);
+    // codec.start();
+    //
     i2s.frequency(SAMPLERATE);
-    i2s.wordsize(16);
-    i2s.stereomono(I2S_STEREO);
-    i2s.masterslave(I2S_MASTER);
-    i2s.attach(&play);
-    i2s.start();
-*/
+    // i2s.wordsize(16);
+    // i2s.stereomono(I2S_STEREO);
+    // i2s.masterslave(I2S_MASTER);
+    // i2s.attach(&play);
+    // i2s.start();
     while(1)
     {;
-/*
-        skipper = (aIn*30)+1;
-
-        volume = 1;
-        phase_kill = (vol-0.5)*400;
-
-        //printf("Skipper:%f, %i, %i\n\r",skipper, to_write,i2s.fifo_level());
-*/
+        // skipper = (aIn*30)+1;
+        //
+        // volume = 1;
+        // phase_kill = (vol-0.5)*400;
+        //
+        // //printf("Skipper:%f, %i, %i\n\r",skipper, to_write,i2s.fifo_level());
         /*if(flag)
         {
         printf(".");