/*
* #1
*/
-#define I2C_CLOCK_PARAM 19 // 8MHz/(4*(1+I2C_CLOCK_PARAM)) -> 100KHz
+#define I2C_CLOCK_PARAM 4 // 8MHz/(4*(1+I2C_CLOCK_PARAM)) -> 400KHz
//#define I2C_CLOCK_PARAM 15 // 8MHz/(4*(1+I2C_CLOCK_PARAM)) -> 100KHz
#define I2C_DEFAULT_MODE I2C_MASTER
#define I2C_SLEW_DEFAULT I2C_SLEW_OFF
extern void i2c1_init(void);
extern void i2c2_init(void);
+
#ifdef __cplusplus
}
#endif
cnrlevel = akc6955_get_cnr();
batlevel_6955 = akc6955_get_battery();
#ifdef __SDCC
- // startadc(7);
+ startadc(7);
#else
- // startadc(ADC_CH7 | ADC_INT_OFF ,ADC_7ANA);
+ startadc(ADC_CH7 | ADC_INT_OFF ,ADC_7ANA);
#endif
idle_time_ms(1);
polladc2(adc);