Skip to content

Commit 31a5ebf

Browse files
committed
Update variant.cpp
1 parent 1508f44 commit 31a5ebf

File tree

1 file changed

+53
-52
lines changed

1 file changed

+53
-52
lines changed

variants/SparkFun_Edge_V2/config/variant.cpp

Lines changed: 53 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -22,58 +22,59 @@ SOFTWARE.
2222

2323
#include "variant.h"
2424

25-
const ap3_gpio_pad_t ap3_variant_pinmap[AP3_VARIANT_NUM_PINS] = {
26-
0,
27-
1,
28-
AP3_GPIO_PAD_UNUSED,
29-
3,
30-
4,
31-
5,
32-
6,
33-
7,
34-
8,
35-
9,
36-
10,
37-
11,
38-
12,
39-
13,
40-
14,
41-
15,
42-
AP3_GPIO_PAD_UNUSED,
43-
17,
44-
AP3_GPIO_PAD_UNUSED,
45-
AP3_GPIO_PAD_UNUSED,
46-
20,
47-
21,
48-
22,
49-
23,
50-
24,
51-
25,
52-
26,
53-
27,
54-
28,
55-
29,
56-
AP3_GPIO_PAD_UNUSED,
57-
AP3_GPIO_PAD_UNUSED,
58-
AP3_GPIO_PAD_UNUSED,
59-
33,
60-
AP3_GPIO_PAD_UNUSED,
61-
AP3_GPIO_PAD_UNUSED,
62-
36,
63-
37,
64-
38,
65-
39,
66-
40,
67-
AP3_GPIO_PAD_UNUSED,
68-
42,
69-
43,
70-
44,
71-
AP3_GPIO_PAD_UNUSED,
72-
46,
73-
47,
74-
48,
75-
49,
76-
};
25+
const ap3_gpio_pad_t ap3_variant_pinmap[AP3_VARIANT_NUM_PINS]; // todo: determine pin availabity of Edge V2
26+
// const ap3_gpio_pad_t ap3_variant_pinmap[AP3_VARIANT_NUM_PINS] = {
27+
// 0,
28+
// 1,
29+
// AP3_GPIO_PAD_UNUSED,
30+
// 3,
31+
// 4,
32+
// 5,
33+
// 6,
34+
// 7,
35+
// 8,
36+
// 9,
37+
// 10,
38+
// 11,
39+
// 12,
40+
// 13,
41+
// 14,
42+
// 15,
43+
// AP3_GPIO_PAD_UNUSED,
44+
// 17,
45+
// AP3_GPIO_PAD_UNUSED,
46+
// AP3_GPIO_PAD_UNUSED,
47+
// 20,
48+
// 21,
49+
// 22,
50+
// 23,
51+
// 24,
52+
// 25,
53+
// 26,
54+
// 27,
55+
// 28,
56+
// 29,
57+
// AP3_GPIO_PAD_UNUSED,
58+
// AP3_GPIO_PAD_UNUSED,
59+
// AP3_GPIO_PAD_UNUSED,
60+
// 33,
61+
// AP3_GPIO_PAD_UNUSED,
62+
// AP3_GPIO_PAD_UNUSED,
63+
// 36,
64+
// 37,
65+
// 38,
66+
// 39,
67+
// 40,
68+
// AP3_GPIO_PAD_UNUSED,
69+
// 42,
70+
// 43,
71+
// 44,
72+
// AP3_GPIO_PAD_UNUSED,
73+
// 46,
74+
// 47,
75+
// 48,
76+
// 49,
77+
// };
7778

7879
// Uart Definitions
7980
Uart Serial(0, 49, 48);// declares a Uart object called Serial using instance 0 of Apollo3 UART peripherals with RX on pin 49 and TX on pin 48 (note, you specify *pins* not Apollo3 pads. This uses the variant's pin map to determine the Apollo3 pad)

0 commit comments

Comments
 (0)