The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

Issue: add nrf51 p26 & p27 to analog api

As of today nrf51 p26 & p27 can not be used as analog input as they are missing the analog api pin map definition. This might not be a problem for the DK as those pins are connected to the external XTAL anyways but on some prototyping boards like the xuntong ptr5188 these pins are the only way to use ADC.

So these two additional lines enable analog in on p26 & 27:

Lines to be added:

    {p26, ADC0_0, 1},
    {p27, ADC0_0, 2},

Current implementation:

static const PinMap PinMap_ADC[] = {
    {p1, ADC0_0, 4},
    {p2, ADC0_0, 8},
    {p3, ADC0_0, 16},
    {p4, ADC0_0, 32},
    {p5, ADC0_0, 64},
    {p6, ADC0_0, 128},
    {NC, NC, 0}
};

2 comments:

18 Sep 2015

Hi, please report here https://github.com/mbedmicro/mbed/issues

A note to myself: We should disable issue tracker on this repository.

24 Sep 2015

Martin Kojtal wrote:

Hi, please report here https://github.com/mbedmicro/mbed/issues

A note to myself: We should disable issue tracker on this repository.

Ok, done!