Skip to content

Edge2 #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 33 additions & 33 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,39 +221,39 @@ edge.menu.loader.sparkfun_svl.build.ldscript={build.variant.path}/linker_scripts

###############################################################

edgeV2.name=SparkFun Edge V2
edgeV2.build.variant=SparkFun_Edge_V2
edgeV2.build.board=SFE_EDGE_V2
edgeV2.upload.maximum_size=960000
edgeV2.upload.sbl_baud=115200
edgeV2.build.arch=APOLLO3
edgeV2.build.mcu=cortex-m4
edgeV2.build.f_cpu=48000000L
edgeV2.build.core=arduino
edgeV2.build.includes=-I{build.variant.path}/config
edgeV2.build.extra_flags=-DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3
edgeV2.build.ldscript={build.variant.path}/linker_scripts/gcc/flash_with_bootloader.ld
edgeV2.build.defs=
edgeV2.build.libs=
edgeV2.menu.svl_baud.921600=921600
edgeV2.menu.svl_baud.460800=460800
edgeV2.menu.svl_baud.230400=230400
edgeV2.menu.svl_baud.115200=115200
edgeV2.menu.svl_baud.57600=57600
edgeV2.menu.loader.sparkfun_svl=SparkFun Variable Loader (Recommended)
edgeV2.menu.loader.ambiq_sbl=Ambiq Secure Bootloader (Advanced)

edgeV2.menu.svl_baud.57600.upload.svl_baud=57600
edgeV2.menu.svl_baud.115200.upload.svl_baud=115200
edgeV2.menu.svl_baud.230400.upload.svl_baud=230400
edgeV2.menu.svl_baud.460800.upload.svl_baud=460800
edgeV2.menu.svl_baud.921600.upload.svl_baud=921600

edgeV2.menu.loader.ambiq_sbl.upload.tool=ambiq_bin2board
edgeV2.menu.loader.ambiq_sbl.build.ldscript={build.variant.path}/linker_scripts/gcc/ambiq_sbl_app.ld

edgeV2.menu.loader.sparkfun_svl.upload.tool=artemis_svl
edgeV2.menu.loader.sparkfun_svl.build.ldscript={build.variant.path}/linker_scripts/gcc/artemis_sbl_svl_app.ld
edge2.name=SparkFun Edge2
edge2.build.variant=SparkFun_Edge2
edge2.build.board=SFE_EDGE2
edge2.upload.maximum_size=960000
edge2.upload.sbl_baud=115200
edge2.build.arch=APOLLO3
edge2.build.mcu=cortex-m4
edge2.build.f_cpu=48000000L
edge2.build.core=arduino
edge2.build.includes=-I{build.variant.path}/config
edge2.build.extra_flags=-DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3
edge2.build.ldscript={build.variant.path}/linker_scripts/gcc/flash_with_bootloader.ld
edge2.build.defs=
edge2.build.libs=
edge2.menu.svl_baud.921600=921600
edge2.menu.svl_baud.460800=460800
edge2.menu.svl_baud.230400=230400
edge2.menu.svl_baud.115200=115200
edge2.menu.svl_baud.57600=57600
edge2.menu.loader.sparkfun_svl=SparkFun Variable Loader (Recommended)
edge2.menu.loader.ambiq_sbl=Ambiq Secure Bootloader (Advanced)

edge2.menu.svl_baud.57600.upload.svl_baud=57600
edge2.menu.svl_baud.115200.upload.svl_baud=115200
edge2.menu.svl_baud.230400.upload.svl_baud=230400
edge2.menu.svl_baud.460800.upload.svl_baud=460800
edge2.menu.svl_baud.921600.upload.svl_baud=921600

edge2.menu.loader.ambiq_sbl.upload.tool=ambiq_bin2board
edge2.menu.loader.ambiq_sbl.build.ldscript={build.variant.path}/linker_scripts/gcc/ambiq_sbl_app.ld

edge2.menu.loader.sparkfun_svl.upload.tool=artemis_svl
edge2.menu.loader.sparkfun_svl.build.ldscript={build.variant.path}/linker_scripts/gcc/artemis_sbl_svl_app.ld

###############################################################

Original file line number Diff line number Diff line change
Expand Up @@ -28,53 +28,53 @@ const ap3_gpio_pad_t ap3_variant_pinmap[AP3_VARIANT_NUM_PINS] = {
AP3_GPIO_PAD_UNUSED,
AP3_GPIO_PAD_UNUSED,
AP3_GPIO_PAD_UNUSED,
4,
AP3_GPIO_PAD_UNUSED,
6,
7,
5, //Camera D5
6, //Camera D4
7, //Camera PCLK
8, //Camera SCL
9, //Camera SDA
AP3_GPIO_PAD_UNUSED,
11, //Camera D1
12, //Mic CLK
13, //Camera Trig
14, //Camera D0
15, //Camera VSync
16, //GPIO 16
17, //LED Green
18, //LED Blue
19, //LED Red
20, //SWDCK
21, //SWDIO
AP3_GPIO_PAD_UNUSED,
23, //Camera INT
AP3_GPIO_PAD_UNUSED,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
25, //Camera D2
26, //Camera MCLK
27, //Camera HSync
28, //Camera D7
29, //Mic DATA
AP3_GPIO_PAD_UNUSED,
31,
32,
33,
34,
35,
31, //GPIO 31
32, //Camera 1.8V Enable
33, //GPIO 33
34, //Camera D3
35, //Camera D6
AP3_GPIO_PAD_UNUSED,
37,
37, //LED Yellow
AP3_GPIO_PAD_UNUSED,
39,
40,
39, //Qwiic SCL
40, //Qwiic SDA
AP3_GPIO_PAD_UNUSED,
42,
43,
44,
45,
42, //Accel SCL
43, //Accel SDA
44, //GPIO 44
45, //GPIO 45
AP3_GPIO_PAD_UNUSED,
AP3_GPIO_PAD_UNUSED,
48,
49,
48, //Boot TX
49, //Boot RX
};

// Uart Definitions
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)
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)
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,31 @@ SOFTWARE.
extern const ap3_gpio_pad_t ap3_variant_pinmap[AP3_VARIANT_NUM_PINS];

// Uart declarations
class Uart; // Forward declaration of Uart
class Uart; // Forward declaration of Uart
extern Uart Serial;

// Wire defines
#define WIRE_INTERFACES_COUNT 3

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

#define WireAccel Wire1
#define AP3_Wire1_IOM 3

#define WireCamera Wire2
#define AP3_Wire1_IOM 2
#define AP3_Wire2_IOM 1

// SPI Defines
#define SPI_INTERFACES_COUNT 0 //Edge V2 doesn't have any fully-exposed SPI ports

#define SPI_INTERFACES_COUNT 0 //Edge V2 doesn't have any fully-exposed SPI ports

#define LED_BUILTIN 19
#define LED_GREEN 17
#define LED_BLUE 18
#define LED_RED 19
#define LED_YELLOW 37

#define MIC_DATA 29
#define MIC_CLOCK 12

#endif // _AP3_VARIANT_H_