mbed library sources. Supersedes mbed-src.

Fork of mbed-dev by mbed official

Revision:
79:9f34958201cc
Parent:
0:9b334a45a8ff
--- a/api/AnalogIn.h	Tue Mar 01 07:15:10 2016 +0000
+++ b/api/AnalogIn.h	Mon Mar 14 14:20:17 2016 +0000
@@ -50,10 +50,17 @@
     /** Create an AnalogIn, connected to the specified pin
      *
      * @param pin AnalogIn pin to connect to
-     * @param name (optional) A string to identify the object
      */
     AnalogIn(PinName pin) {
-        analogin_init(&_adc, pin);
+        analogin_init_pin(&_adc, pin);
+    }
+    
+    /** Create an AnalogIn, connected to the specified ADC channel
+     *
+     * @param name ADC channel to connect to
+     */
+    AnalogIn(ADCName name) {
+        analogin_init_name(&_adc, name);
     }
 
     /** Read the input voltage, represented as a float in the range [0.0, 1.0]