Commit 49058c99 authored by Sandeep Mistry's avatar Sandeep Mistry

Map nRF51 pin 26 and 27 to AIN0 and AIN1

parent 8f03e844
......@@ -126,6 +126,14 @@ uint32_t analogRead( uint32_t ulPin )
ulPin = g_ADigitalPinMap[ulPin];
switch ( ulPin ) {
case 26:
pin = ADC_CONFIG_PSEL_AnalogInput0;
break;
case 27:
pin = ADC_CONFIG_PSEL_AnalogInput1;
break;
case 1:
pin = ADC_CONFIG_PSEL_AnalogInput2;
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment