Skip to content

Commit 3a1af14

Browse files
committed
Replaced p{0..30} with P0_{0..30} in the NRF51822 api's
Change-Id: I0e080a30717ee0bcfa2db3f134acb08be851d767
1 parent f1bcde8 commit 3a1af14

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

targets/TARGET_NORDIC/TARGET_MCU_NRF51822/analogin_api.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
#define ADC_RANGE ADC_10BIT_RANGE
2424

2525
static const PinMap PinMap_ADC[] = {
26-
{p1, ADC0_0, 4},
27-
{p2, ADC0_0, 8},
28-
{p3, ADC0_0, 16},
29-
{p4, ADC0_0, 32},
30-
{p5, ADC0_0, 64},
31-
{p6, ADC0_0, 128},
26+
{P0_1, ADC0_0, 4},
27+
{P0_2, ADC0_0, 8},
28+
{P0_3, ADC0_0, 16},
29+
{P0_4, ADC0_0, 32},
30+
{P0_5, ADC0_0, 64},
31+
{P0_6, ADC0_0, 128},
3232
#ifndef TARGET_NRF51_DONGLE
33-
{p26, ADC0_0, 1},
34-
{p27, ADC0_0, 2},
33+
{P0_26, ADC0_0, 1},
34+
{P0_27, ADC0_0, 2},
3535
#endif
3636
{NC, NC, 0}
3737
};

targets/TARGET_NORDIC/TARGET_MCU_NRF51822/pwmout_api.c

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -23,35 +23,35 @@
2323
#define TIMER_PRECISION 4 //4us ticks
2424
#define TIMER_PRESCALER 6 //4us ticks = 16Mhz/(2**6)
2525
static const PinMap PinMap_PWM[] = {
26-
{p0, PWM_1, 1},
27-
{p1, PWM_1, 1},
28-
{p2, PWM_1, 1},
29-
{p3, PWM_1, 1},
30-
{p4, PWM_1, 1},
31-
{p5, PWM_1, 1},
32-
{p6, PWM_1, 1},
33-
{p7, PWM_1, 1},
34-
{p8, PWM_1, 1},
35-
{p9, PWM_1, 1},
36-
{p10, PWM_1, 1},
37-
{p11, PWM_1, 1},
38-
{p12, PWM_1, 1},
39-
{p13, PWM_1, 1},
40-
{p14, PWM_1, 1},
41-
{p15, PWM_1, 1},
42-
{p16, PWM_1, 1},
43-
{p17, PWM_1, 1},
44-
{p18, PWM_1, 1},
45-
{p19, PWM_1, 1},
46-
{p20, PWM_1, 1},
47-
{p21, PWM_1, 1},
48-
{p22, PWM_1, 1},
49-
{p23, PWM_1, 1},
50-
{p24, PWM_1, 1},
51-
{p25, PWM_1, 1},
52-
{p28, PWM_1, 1},
53-
{p29, PWM_1, 1},
54-
{p30, PWM_1, 1},
26+
{P0_0, PWM_1, 1},
27+
{P0_1, PWM_1, 1},
28+
{P0_2, PWM_1, 1},
29+
{P0_3, PWM_1, 1},
30+
{P0_4, PWM_1, 1},
31+
{P0_5, PWM_1, 1},
32+
{P0_6, PWM_1, 1},
33+
{P0_7, PWM_1, 1},
34+
{P0_8, PWM_1, 1},
35+
{P0_9, PWM_1, 1},
36+
{P0_10, PWM_1, 1},
37+
{P0_11, PWM_1, 1},
38+
{P0_12, PWM_1, 1},
39+
{P0_13, PWM_1, 1},
40+
{P0_14, PWM_1, 1},
41+
{P0_15, PWM_1, 1},
42+
{P0_16, PWM_1, 1},
43+
{P0_17, PWM_1, 1},
44+
{P0_18, PWM_1, 1},
45+
{P0_19, PWM_1, 1},
46+
{P0_20, PWM_1, 1},
47+
{P0_21, PWM_1, 1},
48+
{P0_22, PWM_1, 1},
49+
{P0_23, PWM_1, 1},
50+
{P0_24, PWM_1, 1},
51+
{P0_25, PWM_1, 1},
52+
{P0_28, PWM_1, 1},
53+
{P0_29, PWM_1, 1},
54+
{P0_30, PWM_1, 1},
5555
{NC, NC, 0}
5656
};
5757

0 commit comments

Comments
 (0)