John Karatka / mbed

Fork of mbed-dev by mbed official

Revision:
168:9672193075cf
Parent:
167:e84263d55307
--- a/targets/TARGET_ARM_SSG/TARGET_CM3DS_MPS2/objects.h	Wed Jun 21 17:46:44 2017 +0100
+++ b/targets/TARGET_ARM_SSG/TARGET_CM3DS_MPS2/objects.h	Thu Jul 06 15:42:05 2017 +0100
@@ -45,6 +45,7 @@
 
 struct i2c_s {
     MPS2_I2C_TypeDef *i2c;
+    uint32_t freq_us;       /* Stores I2C frequency in microseconds */
 };
 
 struct tsc_s {
@@ -65,11 +66,7 @@
 };
 
 struct analogin_s {
-    ADCName adc;
-    MPS2_SSP_TypeDef *adc_spi;
-    PinName  pin;
-    uint32_t pin_number;
-    __IO uint32_t address;
+    uint16_t ctrl_register;  /* Control bits with the channel identifier */
 };
 
 #include "gpio_object.h"