Skip to content

Commit 4d0c864

Browse files
committed
Move adc_pinmap.h to LPC11XX_11CXX common
Merge back into analog_api.c. P1_3/ADC0_4 (SWDIO) now disabled for both targets
1 parent e196775 commit 4d0c864

File tree

3 files changed

+11
-41
lines changed

3 files changed

+11
-41
lines changed

libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/adc_pinmap.h

Lines changed: 0 additions & 20 deletions
This file was deleted.

libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/adc_pinmap.h

Lines changed: 0 additions & 20 deletions
This file was deleted.

libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/analogin_api.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,17 @@
1818
#include "pinmap.h"
1919
#include "error.h"
2020

21-
#include "adc_pinmap.h"
21+
static const PinMap PinMap_ADC[] = {
22+
{P0_11, ADC0_0, 2},
23+
{P1_0 , ADC0_1, 2},
24+
{P1_1 , ADC0_2, 2},
25+
{P1_2 , ADC0_3, 2},
26+
// {P1_3 , ADC0_4, 2}, -- should be mapped to SWDIO only
27+
{P1_4 , ADC0_5, 1},
28+
{P1_10, ADC0_6, 1},
29+
{P1_11, ADC0_7, 1},
30+
{NC , NC , 0}
31+
};
2232

2333
#define ANALOGIN_MEDIAN_FILTER 1
2434

0 commit comments

Comments
 (0)