Skip to content

Commit 67372b3

Browse files
committed
atmel-samd: Fix A1 and A2 analog inputs.
Fixes adafruit#3.
1 parent afedba5 commit 67372b3

File tree

2 files changed

+5
-6
lines changed
  • atmel-samd/boards

2 files changed

+5
-6
lines changed

atmel-samd/boards/arduino_zero/pins.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
PIN(PA02, true, ADC_POSITIVE_INPUT_PIN0, NO_TIMER, NO_TIMER, NO_SERCOM,
55
NO_SERCOM);
6-
PIN(PB08, true, ADC_POSITIVE_INPUT_PIN8,
6+
PIN(PB08, true, ADC_POSITIVE_INPUT_PIN2,
77
TIMER(TC4, 0, 0, 0, PIN_PB08E_TC4_WO0, MUX_PB08E_TC4_WO0),
88
NO_TIMER,
99
SERCOM(SERCOM4, 0, PINMUX_PB08D_SERCOM4_PAD0),
1010
NO_SERCOM);
11-
PIN(PB09, true, ADC_POSITIVE_INPUT_PIN9,
11+
PIN(PB09, true, ADC_POSITIVE_INPUT_PIN3,
1212
TIMER(TC4, 0, 1, 1, PIN_PB09E_TC4_WO1, MUX_PB09E_TC4_WO1),
1313
NO_TIMER,
1414
SERCOM(SERCOM4, 1, PINMUX_PB09D_SERCOM4_PAD1),

atmel-samd/boards/feather_m0_bluefruit_le/pins.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
#include "pins.h"
22
#include "asf/sam0/drivers/system/system.h"
3-
// S0/S2 S2/S4 S1/S3 S3/S5
4-
// i2c pins PA08, PA09, PA12, PA13, PA16, PA17, PA22, PA23
3+
54
PIN(PA02, true, ADC_POSITIVE_INPUT_PIN0, NO_TIMER, NO_TIMER, NO_SERCOM, \
65
NO_SERCOM);
7-
PIN(PB08, true, ADC_POSITIVE_INPUT_PIN8,
6+
PIN(PB08, true, ADC_POSITIVE_INPUT_PIN2,
87
TIMER(TC4, 0, 0, 0, PIN_PB08E_TC4_WO0, MUX_PB08E_TC4_WO0),
98
NO_TIMER,
109
SERCOM(SERCOM4, 0, PINMUX_PB08D_SERCOM4_PAD0),
1110
NO_SERCOM);
12-
PIN(PB09, true, ADC_POSITIVE_INPUT_PIN9,
11+
PIN(PB09, true, ADC_POSITIVE_INPUT_PIN3,
1312
TIMER(TC4, 0, 1, 1, PIN_PB09E_TC4_WO1, MUX_PB09E_TC4_WO1),
1413
NO_TIMER,
1514
SERCOM(SERCOM4, 1, PINMUX_PB09D_SERCOM4_PAD1),

0 commit comments

Comments
 (0)