Skip to content

Commit 87e7497

Browse files
committed
Add support wioterminal
1 parent 2de5d32 commit 87e7497

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/machine/board_wioterminal.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build sam,atsamd51,feather_m4
1+
// +build sam,atsamd51,wioterminal
22

33
package machine
44

@@ -38,7 +38,7 @@ const (
3838
)
3939

4040
const (
41-
LED = D13
41+
LED = PA15
4242
)
4343

4444
// UART0 aka USBCDC pins

src/machine/machine_atsamd51p19.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build sam,atsamd51,atsamd51j19
1+
// +build sam,atsamd51,atsamd51p19
22

33
// Peripheral abstraction layer for the atsamd51.
44
//

src/runtime/runtime_atsamd51p19.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build sam,atsamd51,atsamd51j19
1+
// +build sam,atsamd51,atsamd51p19
22

33
package runtime
44

targets/atsamd51p19a.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"inherits": ["cortex-m"],
33
"llvm-target": "armv7em-none-eabi",
4-
"build-tags": ["atsamd51j19", "atsamd51", "sam"],
4+
"build-tags": ["atsamd51p19", "atsamd51", "sam"],
55
"cflags": [
66
"--target=armv7em-none-eabi",
77
"-Qunused-arguments"
88
],
99
"linkerscript": "targets/atsamd51.ld",
1010
"extra-files": [
11-
"src/device/sam/atsamd51j19a.s"
11+
"src/device/sam/atsamd51p19a.s"
1212
]
1313
}

targets/wioterminal.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"inherits": ["atsamd51j19a"],
3-
"build-tags": ["sam", "atsamd51j19a", "feather_m4"],
2+
"inherits": ["atsamd51p19a"],
3+
"build-tags": ["sam", "atsamd51p19a", "wioterminal"],
44
"flash-1200-bps-reset": "true",
55
"flash-method": "msd",
6-
"msd-volume-name": "FEATHERBOOT",
6+
"msd-volume-name": "Arduino",
77
"msd-firmware-name": "firmware.uf2"
88
}

0 commit comments

Comments
 (0)