mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Analogin: support ADC channels with no mapped pins

On the Freedom K64F board, some ADC channels are not mapped to any pin Hence it is not possible to use them as the AnalogIn API expects a PinName argument I have modified the AnalogIn API to accept an ADCName argument

Another way would have been to create "fake" pins in the PinName enum (PinNames.h) and add them in PinMap_ADC (PeripheralPins.c) to map ADC channels, but I thought it was less straightforward...

mbed library sources. Supersedes mbed-src.

1 comment:

14 Mar 2016

I also fixed channel numbers above 15 that could not be used (changed channel mask from 0xF to 0x1F)