Skip to content

Commit 2fde472

Browse files
author
Nathan Seidle
committed
Updating variants for Edge v2.1 PCB
1 parent e3c1473 commit 2fde472

File tree

2 files changed

+49
-43
lines changed

2 files changed

+49
-43
lines changed

variants/SparkFun_Edge_V2/config/variant.cpp

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -28,53 +28,53 @@ const ap3_gpio_pad_t ap3_variant_pinmap[AP3_VARIANT_NUM_PINS] = {
2828
AP3_GPIO_PAD_UNUSED,
2929
AP3_GPIO_PAD_UNUSED,
3030
AP3_GPIO_PAD_UNUSED,
31-
4,
3231
AP3_GPIO_PAD_UNUSED,
33-
6,
34-
7,
32+
5, //Camera D5
33+
6, //Camera D4
34+
7, //Camera PCLK
35+
8, //Camera SCL
36+
9, //Camera SDA
3537
AP3_GPIO_PAD_UNUSED,
38+
11, //Camera D1
39+
12, //Mic CLK
40+
13, //Camera Trig
41+
14, //Camera D0
42+
15, //Camera VSync
43+
16, //GPIO 16
44+
17, //LED Green
45+
18, //LED Blue
46+
19, //LED Red
47+
20, //SWDCK
48+
21, //SWDIO
3649
AP3_GPIO_PAD_UNUSED,
50+
23, //Camera INT
3751
AP3_GPIO_PAD_UNUSED,
38-
11,
39-
12,
40-
13,
41-
14,
42-
15,
43-
16,
44-
17,
45-
18,
46-
19,
47-
20,
48-
21,
49-
22,
50-
23,
51-
24,
52-
25,
53-
26,
54-
27,
55-
28,
56-
29,
52+
25, //Camera D2
53+
26, //Camera MCLK
54+
27, //Camera HSync
55+
28, //Camera D7
56+
29, //Mic DATA
5757
AP3_GPIO_PAD_UNUSED,
58-
31,
59-
32,
60-
33,
61-
34,
62-
35,
58+
31, //GPIO 31
59+
32, //Camera 1.8V Enable
60+
33, //GPIO 33
61+
34, //Camera D3
62+
35, //Camera D6
6363
AP3_GPIO_PAD_UNUSED,
64-
37,
64+
37, //LED Yellow
6565
AP3_GPIO_PAD_UNUSED,
66-
39,
67-
40,
66+
39, //Qwiic SCL
67+
40, //Qwiic SDA
6868
AP3_GPIO_PAD_UNUSED,
69-
42,
70-
43,
71-
44,
72-
45,
69+
42, //Accel SCL
70+
43, //Accel SDA
71+
44, //GPIO 44
72+
45, //GPIO 45
7373
AP3_GPIO_PAD_UNUSED,
7474
AP3_GPIO_PAD_UNUSED,
75-
48,
76-
49,
75+
48, //Boot TX
76+
49, //Boot RX
7777
};
7878

7979
// Uart Definitions
80-
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)
80+
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)

variants/SparkFun_Edge_V2/config/variant.h

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,31 @@ SOFTWARE.
3030
extern const ap3_gpio_pad_t ap3_variant_pinmap[AP3_VARIANT_NUM_PINS];
3131

3232
// Uart declarations
33-
class Uart; // Forward declaration of Uart
33+
class Uart; // Forward declaration of Uart
3434
extern Uart Serial;
3535

3636
// Wire defines
3737
#define WIRE_INTERFACES_COUNT 3
3838

39-
#define WireQwiic Wire // Giving Wire an alias of "WireQwiic" in case people want to use it
40-
#define AP3_Wire_IOM 4 // Secify that Wire uses IOMaster instance 4
39+
#define WireQwiic Wire // Giving Wire an alias of "WireQwiic" in case people want to use it
40+
#define AP3_Wire_IOM 4 // Secify that Wire uses IOMaster instance 4
4141

4242
#define WireAccel Wire1
4343
#define AP3_Wire1_IOM 3
4444

4545
#define WireCamera Wire2
46-
#define AP3_Wire1_IOM 2
46+
#define AP3_Wire2_IOM 1
4747

4848
// SPI Defines
49-
#define SPI_INTERFACES_COUNT 0 //Edge V2 doesn't have any fully-exposed SPI ports
50-
49+
#define SPI_INTERFACES_COUNT 0 //Edge V2 doesn't have any fully-exposed SPI ports
5150

5251
#define LED_BUILTIN 19
52+
#define LED_GREEN 17
53+
#define LED_BLUE 18
54+
#define LED_RED 19
55+
#define LED_YELLOW 37
56+
57+
#define MIC_DATA 29
58+
#define MIC_CLOCK 12
5359

5460
#endif // _AP3_VARIANT_H_

0 commit comments

Comments
 (0)