aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/machine_atsamd51.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2022-09-19 19:46:38 +0200
committerRon Evans <[email protected]>2022-09-25 12:38:12 +0200
commit107b1c29062a5d16a638e56b1e48a28ae28b960e (patch)
treedfc473cd2293bb60630e73885a873fa7637ec782 /src/machine/machine_atsamd51.go
parent2409bbef698f433bd47618c837ea63fce9c79224 (diff)
downloadtinygo-107b1c29062a5d16a638e56b1e48a28ae28b960e.tar.gz
tinygo-107b1c29062a5d16a638e56b1e48a28ae28b960e.zip
machine: do not expose RESET_MAGIC_VALUE
This is a constant for internal use only, but was (unintentionally?) exported. In addition, it doesn't follow the Go naming convention. This change simply renames the constant so that it is unexported.
Diffstat (limited to 'src/machine/machine_atsamd51.go')
-rw-r--r--src/machine/machine_atsamd51.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machine_atsamd51.go b/src/machine/machine_atsamd51.go
index 9e0750a2e..0c296553b 100644
--- a/src/machine/machine_atsamd51.go
+++ b/src/machine/machine_atsamd51.go
@@ -1975,7 +1975,7 @@ func EnterBootloader() {
// Perform magic reset into bootloader, as mentioned in
// https://github.com/arduino/ArduinoCore-samd/issues/197
- *(*uint32)(unsafe.Pointer(uintptr(0x20000000 + HSRAM_SIZE - 4))) = RESET_MAGIC_VALUE
+ *(*uint32)(unsafe.Pointer(uintptr(0x20000000 + HSRAM_SIZE - 4))) = resetMagicValue
arm.SystemReset()
}