FM-test

Dependencies:   MODSERIAL mbed-rtos mbed

Fork of Master by Ohnishi_Gundan

Revision:
1:e1cfb5850088
Parent:
0:4f07ba929908
Child:
2:c610e1a7fbcd
--- a/fm.cpp	Thu Sep 11 10:15:34 2014 +0000
+++ b/fm.cpp	Thu Sep 11 14:42:49 2014 +0000
@@ -2,8 +2,14 @@
 #include "fm.h"
 
 
+I2C i2c(p9,p10);    // SDA,SCI
+
 void i2cSetup(unsigned int _f)
 {
+    char freqH = 0, freqL = 0;//, c, i;
+    unsigned int frequencyB, freq, freqB;
+    const int addr = 0x11 << 1;
+    
     freq = _f;         //freq/10.MHz   760~910
     if(freq > 870){
         freqB = freq - 870;