aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorsago35 <[email protected]>2022-02-25 19:11:49 +0900
committerRon Evans <[email protected]>2022-02-28 10:19:26 +0100
commitd65e3deccf3ab35fe377806cf775bc6b1017328e (patch)
tree260265a4d96fa1141d7031e7fe4fa638e6967eba
parentcbfa85be6ad018b447f2c47401f4ebf8193b0887 (diff)
downloadtinygo-d65e3deccf3ab35fe377806cf775bc6b1017328e.tar.gz
tinygo-d65e3deccf3ab35fe377806cf775bc6b1017328e.zip
Revert "all: move stm32 files to separate repository"
This reverts commit 644356c220ed88f110d01300f671a170cd36eb04.
-rw-r--r--.gitignore3
-rw-r--r--.gitmodules6
-rw-r--r--Makefile7
m---------lib/stm32-svd0
-rw-r--r--loader/goroot.go2
-rw-r--r--src/machine/board_bluepill.go2
-rw-r--r--src/machine/board_feather-stm32f405.go2
-rw-r--r--src/machine/board_gnse.go2
-rw-r--r--src/machine/board_lgt92.go2
-rw-r--r--src/machine/board_lorae5.go2
-rw-r--r--src/machine/board_nucleof103rb.go2
-rw-r--r--src/machine/board_nucleof722ze.go2
-rw-r--r--src/machine/board_nucleol031k6.go2
-rw-r--r--src/machine/board_nucleol432kc.go2
-rw-r--r--src/machine/board_nucleol552ze.go2
-rw-r--r--src/machine/board_nucleowl55jc.go2
-rw-r--r--src/machine/board_stm32f469disco.go2
-rw-r--r--src/machine/board_stm32f4disco.go2
-rw-r--r--src/machine/board_swan.go2
-rw-r--r--src/machine/machine_stm32.go2
-rw-r--r--src/machine/machine_stm32_adc_f1.go2
-rw-r--r--src/machine/machine_stm32_adc_f4.go2
-rw-r--r--src/machine/machine_stm32_exti_afio.go2
-rw-r--r--src/machine/machine_stm32_exti_exti.go2
-rw-r--r--src/machine/machine_stm32_exti_syscfg.go2
-rw-r--r--src/machine/machine_stm32_exti_syscfg_noenable.go2
-rw-r--r--src/machine/machine_stm32_gpio_reva.go2
-rw-r--r--src/machine/machine_stm32_gpio_revb.go2
-rw-r--r--src/machine/machine_stm32_gpio_revb_mp.go2
-rw-r--r--src/machine/machine_stm32_i2c_reva.go2
-rw-r--r--src/machine/machine_stm32_i2c_revb.go2
-rw-r--r--src/machine/machine_stm32_moder_gpio.go2
-rw-r--r--src/machine/machine_stm32_rng.go2
-rw-r--r--src/machine/machine_stm32_spi.go2
-rw-r--r--src/machine/machine_stm32_tim.go2
-rw-r--r--src/machine/machine_stm32_uart.go2
-rw-r--r--src/machine/machine_stm32f103.go2
-rw-r--r--src/machine/machine_stm32f4.go2
-rw-r--r--src/machine/machine_stm32f7.go2
-rw-r--r--src/machine/machine_stm32f7x2.go2
-rw-r--r--src/machine/machine_stm32l0.go2
-rw-r--r--src/machine/machine_stm32l0x1.go2
-rw-r--r--src/machine/machine_stm32l0x2.go2
-rw-r--r--src/machine/machine_stm32l4.go2
-rw-r--r--src/machine/machine_stm32l5.go2
-rw-r--r--src/machine/machine_stm32l5x2.go2
-rw-r--r--src/machine/machine_stm32wlx.go2
-rw-r--r--src/runtime/runtime_stm32_timers.go2
-rw-r--r--src/runtime/runtime_stm32f103.go2
-rw-r--r--src/runtime/runtime_stm32f4.go2
-rw-r--r--src/runtime/runtime_stm32f405.go2
-rw-r--r--src/runtime/runtime_stm32f407.go2
-rw-r--r--src/runtime/runtime_stm32f469.go2
-rw-r--r--src/runtime/runtime_stm32f7x2.go2
-rw-r--r--src/runtime/runtime_stm32l0.go2
-rw-r--r--src/runtime/runtime_stm32l0x1.go2
-rw-r--r--src/runtime/runtime_stm32l0x2.go2
-rw-r--r--src/runtime/runtime_stm32l4.go2
-rw-r--r--src/runtime/runtime_stm32l4x2.go2
-rw-r--r--src/runtime/runtime_stm32l4x5.go2
-rw-r--r--src/runtime/runtime_stm32l5x2.go2
-rw-r--r--src/runtime/runtime_stm32wlx.go2
m---------src/vendor/tinygo.org/x/device0
-rw-r--r--targets/bluepill.json2
-rw-r--r--targets/feather-stm32f405.json2
-rw-r--r--targets/nucleo-f103rb.json2
-rw-r--r--targets/nucleo-f722ze.json2
-rw-r--r--targets/nucleo-l031k6.json4
-rw-r--r--targets/nucleo-l432kc.json4
-rw-r--r--targets/nucleo-l552ze.json4
-rw-r--r--targets/stm32f469disco.json2
-rw-r--r--targets/stm32f4disco.json2
-rw-r--r--targets/stm32l0x2.json4
-rw-r--r--targets/stm32wl5x_cm4.json2
-rw-r--r--targets/stm32wle5.json2
-rw-r--r--targets/swan.json4
76 files changed, 88 insertions, 80 deletions
diff --git a/.gitignore b/.gitignore
index 37076e572..623c6b0c1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,10 +11,13 @@ src/device/sam/*.go
src/device/sam/*.s
src/device/sifive/*.go
src/device/sifive/*.s
+src/device/stm32/*.go
+src/device/stm32/*.s
src/device/kendryte/*.go
src/device/kendryte/*.s
src/device/rp/*.go
src/device/rp/*.s
+vendor
llvm-build
llvm-project
build/*
diff --git a/.gitmodules b/.gitmodules
index 49ceeddc6..e82a938b7 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -20,6 +20,9 @@
[submodule "lib/picolibc"]
path = lib/picolibc
url = https://github.com/keith-packard/picolibc.git
+[submodule "lib/stm32-svd"]
+ path = lib/stm32-svd
+ url = https://github.com/tinygo-org/stm32-svd
[submodule "lib/musl"]
path = lib/musl
url = git://git.musl-libc.org/musl
@@ -32,6 +35,3 @@
[submodule "lib/macos-minimal-sdk"]
path = lib/macos-minimal-sdk
url = https://github.com/aykevl/macos-minimal-sdk.git
-[submodule "src/vendor/tinygo.org/x/device"]
- path = src/vendor/tinygo.org/x/device
- url = https://github.com/tinygo-org/device.git
diff --git a/Makefile b/Makefile
index 8aeb9fe7a..8691ac882 100644
--- a/Makefile
+++ b/Makefile
@@ -126,6 +126,9 @@ fmt-check:
gen-device: gen-device-avr gen-device-esp gen-device-nrf gen-device-sam gen-device-sifive gen-device-kendryte gen-device-nxp gen-device-rp
+ifneq ($(STM32), 0)
+gen-device: gen-device-stm32
+endif
gen-device-avr:
@if [ ! -e lib/avr/README.md ]; then echo "Submodules have not been downloaded. Please download them using:\n git submodule update --init"; exit 1; fi
@@ -162,6 +165,10 @@ gen-device-kendryte: build/gen-device-svd
./build/gen-device-svd -source=https://github.com/posborne/cmsis-svd/tree/master/data/Kendryte-Community -interrupts=software lib/cmsis-svd/data/Kendryte-Community/ src/device/kendryte/
GO111MODULE=off $(GO) fmt ./src/device/kendryte
+gen-device-stm32: build/gen-device-svd
+ ./build/gen-device-svd -source=https://github.com/tinygo-org/stm32-svd lib/stm32-svd/svd src/device/stm32/
+ GO111MODULE=off $(GO) fmt ./src/device/stm32
+
gen-device-rp: build/gen-device-svd
./build/gen-device-svd -source=https://github.com/posborne/cmsis-svd/tree/master/data/RaspberryPi lib/cmsis-svd/data/RaspberryPi/ src/device/rp/
GO111MODULE=off $(GO) fmt ./src/device/rp
diff --git a/lib/stm32-svd b/lib/stm32-svd
new file mode 160000
+Subproject e6db8e32d5d42293a528434ec12e7f88479a864
diff --git a/loader/goroot.go b/loader/goroot.go
index 9beac58a3..1ff7fa8d3 100644
--- a/loader/goroot.go
+++ b/loader/goroot.go
@@ -241,8 +241,6 @@ func pathsToOverride(needsSyscallPackage bool) map[string]bool {
"runtime/": false,
"sync/": true,
"testing/": true,
- "vendor/": true,
- "vendor/tinygo.org/": false,
}
if needsSyscallPackage {
paths["syscall/"] = true // include syscall/js
diff --git a/src/machine/board_bluepill.go b/src/machine/board_bluepill.go
index a39ca27f8..9f7dca8a4 100644
--- a/src/machine/board_bluepill.go
+++ b/src/machine/board_bluepill.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/interrupt"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/machine/board_feather-stm32f405.go b/src/machine/board_feather-stm32f405.go
index 9ef49be5d..1e695a43a 100644
--- a/src/machine/board_feather-stm32f405.go
+++ b/src/machine/board_feather-stm32f405.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/interrupt"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/machine/board_gnse.go b/src/machine/board_gnse.go
index 2968671bf..073c0c045 100644
--- a/src/machine/board_gnse.go
+++ b/src/machine/board_gnse.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/interrupt"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/machine/board_lgt92.go b/src/machine/board_lgt92.go
index 72042adbd..7a4da00bb 100644
--- a/src/machine/board_lgt92.go
+++ b/src/machine/board_lgt92.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/interrupt"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/machine/board_lorae5.go b/src/machine/board_lorae5.go
index 66fd3246c..422eca20b 100644
--- a/src/machine/board_lorae5.go
+++ b/src/machine/board_lorae5.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/interrupt"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/machine/board_nucleof103rb.go b/src/machine/board_nucleof103rb.go
index 84bc654de..3027c5ad5 100644
--- a/src/machine/board_nucleof103rb.go
+++ b/src/machine/board_nucleof103rb.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/interrupt"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/machine/board_nucleof722ze.go b/src/machine/board_nucleof722ze.go
index 4bb6abe70..4206e39d4 100644
--- a/src/machine/board_nucleof722ze.go
+++ b/src/machine/board_nucleof722ze.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/interrupt"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/machine/board_nucleol031k6.go b/src/machine/board_nucleol031k6.go
index 1093985cc..cc0fbe15b 100644
--- a/src/machine/board_nucleol031k6.go
+++ b/src/machine/board_nucleol031k6.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/interrupt"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/machine/board_nucleol432kc.go b/src/machine/board_nucleol432kc.go
index f06ea5f9a..d8c91d06d 100644
--- a/src/machine/board_nucleol432kc.go
+++ b/src/machine/board_nucleol432kc.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/interrupt"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/machine/board_nucleol552ze.go b/src/machine/board_nucleol552ze.go
index 9dd87ac3c..d34f40d64 100644
--- a/src/machine/board_nucleol552ze.go
+++ b/src/machine/board_nucleol552ze.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/interrupt"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/machine/board_nucleowl55jc.go b/src/machine/board_nucleowl55jc.go
index 3dfd3470e..761d4b841 100644
--- a/src/machine/board_nucleowl55jc.go
+++ b/src/machine/board_nucleowl55jc.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/interrupt"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/machine/board_stm32f469disco.go b/src/machine/board_stm32f469disco.go
index 7e16f66c4..07a51c0bb 100644
--- a/src/machine/board_stm32f469disco.go
+++ b/src/machine/board_stm32f469disco.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/interrupt"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/machine/board_stm32f4disco.go b/src/machine/board_stm32f4disco.go
index 2dc5a969e..f396e4ca2 100644
--- a/src/machine/board_stm32f4disco.go
+++ b/src/machine/board_stm32f4disco.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/interrupt"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/machine/board_swan.go b/src/machine/board_swan.go
index a49d44d0d..8c50fff49 100644
--- a/src/machine/board_swan.go
+++ b/src/machine/board_swan.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/interrupt"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/machine/machine_stm32.go b/src/machine/machine_stm32.go
index 8a6936567..a5d4b3827 100644
--- a/src/machine/machine_stm32.go
+++ b/src/machine/machine_stm32.go
@@ -3,7 +3,7 @@
package machine
-import "tinygo.org/x/device/stm32"
+import "device/stm32"
const deviceName = stm32.Device
diff --git a/src/machine/machine_stm32_adc_f1.go b/src/machine/machine_stm32_adc_f1.go
index 3e73b6453..fb0cee669 100644
--- a/src/machine/machine_stm32_adc_f1.go
+++ b/src/machine/machine_stm32_adc_f1.go
@@ -4,7 +4,7 @@
package machine
import (
- "tinygo.org/x/device/stm32"
+ "device/stm32"
"unsafe"
)
diff --git a/src/machine/machine_stm32_adc_f4.go b/src/machine/machine_stm32_adc_f4.go
index 3ad93257d..4f0b8d11b 100644
--- a/src/machine/machine_stm32_adc_f4.go
+++ b/src/machine/machine_stm32_adc_f4.go
@@ -4,7 +4,7 @@
package machine
import (
- "tinygo.org/x/device/stm32"
+ "device/stm32"
"unsafe"
)
diff --git a/src/machine/machine_stm32_exti_afio.go b/src/machine/machine_stm32_exti_afio.go
index c093b391e..0cf34003b 100644
--- a/src/machine/machine_stm32_exti_afio.go
+++ b/src/machine/machine_stm32_exti_afio.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
)
func getEXTIConfigRegister(pin uint8) *volatile.Register32 {
diff --git a/src/machine/machine_stm32_exti_exti.go b/src/machine/machine_stm32_exti_exti.go
index f6145f9f4..e21cfae56 100644
--- a/src/machine/machine_stm32_exti_exti.go
+++ b/src/machine/machine_stm32_exti_exti.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
)
func getEXTIConfigRegister(pin uint8) *volatile.Register32 {
diff --git a/src/machine/machine_stm32_exti_syscfg.go b/src/machine/machine_stm32_exti_syscfg.go
index dc3e571bf..7e4666cf4 100644
--- a/src/machine/machine_stm32_exti_syscfg.go
+++ b/src/machine/machine_stm32_exti_syscfg.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
)
func getEXTIConfigRegister(pin uint8) *volatile.Register32 {
diff --git a/src/machine/machine_stm32_exti_syscfg_noenable.go b/src/machine/machine_stm32_exti_syscfg_noenable.go
index 0845e8dd9..d6fa06e27 100644
--- a/src/machine/machine_stm32_exti_syscfg_noenable.go
+++ b/src/machine/machine_stm32_exti_syscfg_noenable.go
@@ -4,8 +4,8 @@
package machine
import (
+ "device/stm32"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
)
func getEXTIConfigRegister(pin uint8) *volatile.Register32 {
diff --git a/src/machine/machine_stm32_gpio_reva.go b/src/machine/machine_stm32_gpio_reva.go
index bcbbf1add..1712986aa 100644
--- a/src/machine/machine_stm32_gpio_reva.go
+++ b/src/machine/machine_stm32_gpio_reva.go
@@ -4,7 +4,7 @@
package machine
import (
- "tinygo.org/x/device/stm32"
+ "device/stm32"
)
// This variant of the GPIO input interrupt logic is for
diff --git a/src/machine/machine_stm32_gpio_revb.go b/src/machine/machine_stm32_gpio_revb.go
index 3d97ee1c8..7329f47ee 100644
--- a/src/machine/machine_stm32_gpio_revb.go
+++ b/src/machine/machine_stm32_gpio_revb.go
@@ -4,7 +4,7 @@
package machine
import (
- "tinygo.org/x/device/stm32"
+ "device/stm32"
)
// This variant of the GPIO input interrupt logic is for
diff --git a/src/machine/machine_stm32_gpio_revb_mp.go b/src/machine/machine_stm32_gpio_revb_mp.go
index ba24b7494..0eb91989a 100644
--- a/src/machine/machine_stm32_gpio_revb_mp.go
+++ b/src/machine/machine_stm32_gpio_revb_mp.go
@@ -4,7 +4,7 @@
package machine
import (
- "tinygo.org/x/device/stm32"
+ "device/stm32"
)
//
diff --git a/src/machine/machine_stm32_i2c_reva.go b/src/machine/machine_stm32_i2c_reva.go
index f03a46932..eee4e155d 100644
--- a/src/machine/machine_stm32_i2c_reva.go
+++ b/src/machine/machine_stm32_i2c_reva.go
@@ -7,7 +7,7 @@ package machine
// of MCUs.
import (
- "tinygo.org/x/device/stm32"
+ "device/stm32"
"unsafe"
)
diff --git a/src/machine/machine_stm32_i2c_revb.go b/src/machine/machine_stm32_i2c_revb.go
index 662429b66..449c28099 100644
--- a/src/machine/machine_stm32_i2c_revb.go
+++ b/src/machine/machine_stm32_i2c_revb.go
@@ -4,7 +4,7 @@
package machine
import (
- "tinygo.org/x/device/stm32"
+ "device/stm32"
"unsafe"
)
diff --git a/src/machine/machine_stm32_moder_gpio.go b/src/machine/machine_stm32_moder_gpio.go
index 71c85aa2f..b24ac48c3 100644
--- a/src/machine/machine_stm32_moder_gpio.go
+++ b/src/machine/machine_stm32_moder_gpio.go
@@ -4,7 +4,7 @@
package machine
import (
- "tinygo.org/x/device/stm32"
+ "device/stm32"
)
// GPIO for the stm32 families except the stm32f1xx which uses a simpler but
diff --git a/src/machine/machine_stm32_rng.go b/src/machine/machine_stm32_rng.go
index 6cfc2d826..8160ab87f 100644
--- a/src/machine/machine_stm32_rng.go
+++ b/src/machine/machine_stm32_rng.go
@@ -3,7 +3,7 @@
package machine
-import "tinygo.org/x/device/stm32"
+import "device/stm32"
var rngInitDone = false
diff --git a/src/machine/machine_stm32_spi.go b/src/machine/machine_stm32_spi.go
index 9537e5252..481df8cd1 100644
--- a/src/machine/machine_stm32_spi.go
+++ b/src/machine/machine_stm32_spi.go
@@ -6,8 +6,8 @@ package machine
// Peripheral abstraction layer for SPI on the stm32 family
import (
+ "device/stm32"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
"unsafe"
)
diff --git a/src/machine/machine_stm32_tim.go b/src/machine/machine_stm32_tim.go
index f1f9a8dbf..02c6c7a16 100644
--- a/src/machine/machine_stm32_tim.go
+++ b/src/machine/machine_stm32_tim.go
@@ -7,9 +7,9 @@ package machine
// depending on the size of that register in the MCU's TIM_Type structure.
import (
+ "device/stm32"
"runtime/interrupt"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
)
const PWM_MODE1 = 0x6
diff --git a/src/machine/machine_stm32_uart.go b/src/machine/machine_stm32_uart.go
index 1ebbad6bc..9fdd17cb0 100644
--- a/src/machine/machine_stm32_uart.go
+++ b/src/machine/machine_stm32_uart.go
@@ -6,9 +6,9 @@ package machine
// Peripheral abstraction layer for UARTs on the stm32 family.
import (
+ "device/stm32"
"runtime/interrupt"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
"unsafe"
)
diff --git a/src/machine/machine_stm32f103.go b/src/machine/machine_stm32f103.go
index 9a7955056..4c6778023 100644
--- a/src/machine/machine_stm32f103.go
+++ b/src/machine/machine_stm32f103.go
@@ -6,9 +6,9 @@ package machine
// Peripheral abstraction layer for the stm32.
import (
+ "device/stm32"
"runtime/interrupt"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
"unsafe"
)
diff --git a/src/machine/machine_stm32f4.go b/src/machine/machine_stm32f4.go
index fdf6b82fa..dd8a0ad7c 100644
--- a/src/machine/machine_stm32f4.go
+++ b/src/machine/machine_stm32f4.go
@@ -6,10 +6,10 @@ package machine
// Peripheral abstraction layer for the stm32f4
import (
+ "device/stm32"
"math/bits"
"runtime/interrupt"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
"unsafe"
)
diff --git a/src/machine/machine_stm32f7.go b/src/machine/machine_stm32f7.go
index bc53dcb62..838250b5a 100644
--- a/src/machine/machine_stm32f7.go
+++ b/src/machine/machine_stm32f7.go
@@ -6,9 +6,9 @@ package machine
// Peripheral abstraction layer for the stm32f4
import (
+ "device/stm32"
"runtime/interrupt"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
"unsafe"
)
diff --git a/src/machine/machine_stm32f7x2.go b/src/machine/machine_stm32f7x2.go
index 2142f3fe0..bdfa27bc1 100644
--- a/src/machine/machine_stm32f7x2.go
+++ b/src/machine/machine_stm32f7x2.go
@@ -6,7 +6,7 @@ package machine
// Peripheral abstraction layer for the stm32f407
import (
- "tinygo.org/x/device/stm32"
+ "device/stm32"
)
func CPUFrequency() uint32 {
diff --git a/src/machine/machine_stm32l0.go b/src/machine/machine_stm32l0.go
index c090d0c0e..70b7ce583 100644
--- a/src/machine/machine_stm32l0.go
+++ b/src/machine/machine_stm32l0.go
@@ -6,8 +6,8 @@ package machine
// Peripheral abstraction layer for the stm32l0
import (
+ "device/stm32"
"runtime/interrupt"
- "tinygo.org/x/device/stm32"
)
func CPUFrequency() uint32 {
diff --git a/src/machine/machine_stm32l0x1.go b/src/machine/machine_stm32l0x1.go
index 2cd0db332..254fb36cc 100644
--- a/src/machine/machine_stm32l0x1.go
+++ b/src/machine/machine_stm32l0x1.go
@@ -6,9 +6,9 @@ package machine
// Peripheral abstraction layer for the stm32l0
import (
+ "device/stm32"
"runtime/interrupt"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
"unsafe"
)
diff --git a/src/machine/machine_stm32l0x2.go b/src/machine/machine_stm32l0x2.go
index bc92c38f0..3ac632548 100644
--- a/src/machine/machine_stm32l0x2.go
+++ b/src/machine/machine_stm32l0x2.go
@@ -6,9 +6,9 @@ package machine
// Peripheral abstraction layer for the stm32l0
import (
+ "device/stm32"
"runtime/interrupt"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
"unsafe"
)
diff --git a/src/machine/machine_stm32l4.go b/src/machine/machine_stm32l4.go
index a28d19920..9063b802b 100644
--- a/src/machine/machine_stm32l4.go
+++ b/src/machine/machine_stm32l4.go
@@ -4,9 +4,9 @@
package machine
import (
+ "device/stm32"
"runtime/interrupt"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
"unsafe"
)
diff --git a/src/machine/machine_stm32l5.go b/src/machine/machine_stm32l5.go
index c077b960d..5eb951d83 100644
--- a/src/machine/machine_stm32l5.go
+++ b/src/machine/machine_stm32l5.go
@@ -6,9 +6,9 @@ package machine
// Peripheral abstraction layer for the stm32l5
import (
+ "device/stm32"
"runtime/interrupt"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
"unsafe"
)
diff --git a/src/machine/machine_stm32l5x2.go b/src/machine/machine_stm32l5x2.go
index acf03bd95..966c0cebc 100644
--- a/src/machine/machine_stm32l5x2.go
+++ b/src/machine/machine_stm32l5x2.go
@@ -6,7 +6,7 @@ package machine
// Peripheral abstraction layer for the stm32f407
import (
- "tinygo.org/x/device/stm32"
+ "device/stm32"
)
func CPUFrequency() uint32 {
diff --git a/src/machine/machine_stm32wlx.go b/src/machine/machine_stm32wlx.go
index ff5d09006..377781e8b 100644
--- a/src/machine/machine_stm32wlx.go
+++ b/src/machine/machine_stm32wlx.go
@@ -6,10 +6,10 @@ package machine
// Peripheral abstraction layer for the stm32wle5
import (
+ "device/stm32"
"math/bits"
"runtime/interrupt"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
"unsafe"
)
diff --git a/src/runtime/runtime_stm32_timers.go b/src/runtime/runtime_stm32_timers.go
index 7ee5b784f..81b728f77 100644
--- a/src/runtime/runtime_stm32_timers.go
+++ b/src/runtime/runtime_stm32_timers.go
@@ -11,10 +11,10 @@ package runtime
// Output Comparator used for fine-grained sleeps.
import (
+ "device/stm32"
"machine"
"runtime/interrupt"
"runtime/volatile"
- "tinygo.org/x/device/stm32"
)
type timerInfo struct {
diff --git a/src/runtime/runtime_stm32f103.go b/src/runtime/runtime_stm32f103.go
index 0de50ac80..c0cd7fa43 100644
--- a/src/runtime/runtime_stm32f103.go
+++ b/src/runtime/runtime_stm32f103.go
@@ -4,8 +4,8 @@
package runtime
import (
+ "device/stm32"
"machine"
- "tinygo.org/x/device/stm32"
)
func init() {
diff --git a/src/runtime/runtime_stm32f4.go b/src/runtime/runtime_stm32f4.go
index 8e49a0196..6ce44303c 100644
--- a/src/runtime/runtime_stm32f4.go
+++ b/src/runtime/runtime_stm32f4.go
@@ -5,8 +5,8 @@
package runtime
import (
+ "device/stm32"
"machine"
- "tinygo.org/x/device/stm32"
)
func init() {
diff --git a/src/runtime/runtime_stm32f405.go b/src/runtime/runtime_stm32f405.go
index c0c9d2ede..ce8e9ef5a 100644
--- a/src/runtime/runtime_stm32f405.go
+++ b/src/runtime/runtime_stm32f405.go
@@ -4,8 +4,8 @@
package runtime
import (
+ "device/stm32"
"machine"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/runtime/runtime_stm32f407.go b/src/runtime/runtime_stm32f407.go
index 6a3c4e3f8..643f67f82 100644
--- a/src/runtime/runtime_stm32f407.go
+++ b/src/runtime/runtime_stm32f407.go
@@ -3,7 +3,7 @@
package runtime
-import "tinygo.org/x/device/stm32"
+import "device/stm32"
/*
clock settings
diff --git a/src/runtime/runtime_stm32f469.go b/src/runtime/runtime_stm32f469.go
index a50d78ebb..56900e3b6 100644
--- a/src/runtime/runtime_stm32f469.go
+++ b/src/runtime/runtime_stm32f469.go
@@ -3,7 +3,7 @@
package runtime
-import "tinygo.org/x/device/stm32"
+import "device/stm32"
/*
clock settings
diff --git a/src/runtime/runtime_stm32f7x2.go b/src/runtime/runtime_stm32f7x2.go
index fb038e984..29fe173c2 100644
--- a/src/runtime/runtime_stm32f7x2.go
+++ b/src/runtime/runtime_stm32f7x2.go
@@ -4,8 +4,8 @@
package runtime
import (
+ "device/stm32"
"machine"
- "tinygo.org/x/device/stm32"
)
/*
diff --git a/src/runtime/runtime_stm32l0.go b/src/runtime/runtime_stm32l0.go
index 1703bcbbe..bee860ab8 100644
--- a/src/runtime/runtime_stm32l0.go
+++ b/src/runtime/runtime_stm32l0.go
@@ -4,8 +4,8 @@
package runtime
import (
+ "device/stm32"
"machine"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/runtime/runtime_stm32l0x1.go b/src/runtime/runtime_stm32l0x1.go
index 7d6da357d..dfc30f4c5 100644
--- a/src/runtime/runtime_stm32l0x1.go
+++ b/src/runtime/runtime_stm32l0x1.go
@@ -4,8 +4,8 @@
package runtime
import (
+ "device/stm32"
"machine"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/runtime/runtime_stm32l0x2.go b/src/runtime/runtime_stm32l0x2.go
index e39977752..4021e495f 100644
--- a/src/runtime/runtime_stm32l0x2.go
+++ b/src/runtime/runtime_stm32l0x2.go
@@ -4,8 +4,8 @@
package runtime
import (
+ "device/stm32"
"machine"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/runtime/runtime_stm32l4.go b/src/runtime/runtime_stm32l4.go
index eb19234d1..06b84eb6e 100644
--- a/src/runtime/runtime_stm32l4.go
+++ b/src/runtime/runtime_stm32l4.go
@@ -4,8 +4,8 @@
package runtime
import (
+ "device/stm32"
"machine"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/runtime/runtime_stm32l4x2.go b/src/runtime/runtime_stm32l4x2.go
index 8857ea6d3..2e3cbbd07 100644
--- a/src/runtime/runtime_stm32l4x2.go
+++ b/src/runtime/runtime_stm32l4x2.go
@@ -4,7 +4,7 @@
package runtime
import (
- "tinygo.org/x/device/stm32"
+ "device/stm32"
)
/*
diff --git a/src/runtime/runtime_stm32l4x5.go b/src/runtime/runtime_stm32l4x5.go
index 1517c549f..87837b97f 100644
--- a/src/runtime/runtime_stm32l4x5.go
+++ b/src/runtime/runtime_stm32l4x5.go
@@ -4,7 +4,7 @@
package runtime
import (
- "tinygo.org/x/device/stm32"
+ "device/stm32"
)
/*
diff --git a/src/runtime/runtime_stm32l5x2.go b/src/runtime/runtime_stm32l5x2.go
index c93e3a85e..73d0cc0b1 100644
--- a/src/runtime/runtime_stm32l5x2.go
+++ b/src/runtime/runtime_stm32l5x2.go
@@ -4,8 +4,8 @@
package runtime
import (
+ "device/stm32"
"machine"
- "tinygo.org/x/device/stm32"
)
/*
diff --git a/src/runtime/runtime_stm32wlx.go b/src/runtime/runtime_stm32wlx.go
index ed1acd63f..91c5a3f7d 100644
--- a/src/runtime/runtime_stm32wlx.go
+++ b/src/runtime/runtime_stm32wlx.go
@@ -4,8 +4,8 @@
package runtime
import (
+ "device/stm32"
"machine"
- "tinygo.org/x/device/stm32"
)
const (
diff --git a/src/vendor/tinygo.org/x/device b/src/vendor/tinygo.org/x/device
deleted file mode 160000
-Subproject c873563f9ed5a213be5f037c007e27ce733007d
diff --git a/targets/bluepill.json b/targets/bluepill.json
index 4eda18e08..752261f4d 100644
--- a/targets/bluepill.json
+++ b/targets/bluepill.json
@@ -4,7 +4,7 @@
"serial": "uart",
"linkerscript": "targets/stm32.ld",
"extra-files": [
- "src/vendor/tinygo.org/x/device/stm32/stm32f103.s"
+ "src/device/stm32/stm32f103.s"
],
"flash-method": "openocd",
"openocd-interface": "stlink-v2",
diff --git a/targets/feather-stm32f405.json b/targets/feather-stm32f405.json
index b592d21d8..3d824d1ed 100644
--- a/targets/feather-stm32f405.json
+++ b/targets/feather-stm32f405.json
@@ -5,7 +5,7 @@
"automatic-stack-size": false,
"linkerscript": "targets/stm32f405.ld",
"extra-files": [
- "src/vendor/tinygo.org/x/device/stm32/stm32f405.s"
+ "src/device/stm32/stm32f405.s"
],
"flash-method": "command",
"flash-command": "dfu-util --alt 0 --dfuse-address 0x08000000 --download {bin}",
diff --git a/targets/nucleo-f103rb.json b/targets/nucleo-f103rb.json
index c7ed6cd17..723c5eef9 100644
--- a/targets/nucleo-f103rb.json
+++ b/targets/nucleo-f103rb.json
@@ -4,7 +4,7 @@
"serial": "uart",
"linkerscript": "targets/stm32f103rb.ld",
"extra-files": [
- "src/vendor/tinygo.org/x/device/stm32/stm32f103.s"
+ "src/device/stm32/stm32f103.s"
],
"flash-method": "openocd",
"openocd-interface": "stlink-v2-1",
diff --git a/targets/nucleo-f722ze.json b/targets/nucleo-f722ze.json
index 1cea69db9..f426b332d 100644
--- a/targets/nucleo-f722ze.json
+++ b/targets/nucleo-f722ze.json
@@ -4,7 +4,7 @@
"serial": "uart",
"linkerscript": "targets/stm32f7x2zetx.ld",
"extra-files": [
- "src/vendor/tinygo.org/x/device/stm32/stm32f7x2.s"
+ "src/device/stm32/stm32f7x2.s"
],
"flash-method": "openocd",
"openocd-interface": "stlink-v2-1",
diff --git a/targets/nucleo-l031k6.json b/targets/nucleo-l031k6.json
index cf980b7db..eed8f38f0 100644
--- a/targets/nucleo-l031k6.json
+++ b/targets/nucleo-l031k6.json
@@ -4,9 +4,9 @@
"serial": "uart",
"linkerscript": "targets/stm32l031k6.ld",
"extra-files": [
- "src/vendor/tinygo.org/x/device/stm32/stm32l0x1.s"
+ "src/device/stm32/stm32l0x1.s"
],
"flash-method": "openocd",
"openocd-interface": "stlink",
"openocd-target": "stm32l0"
-}
+} \ No newline at end of file
diff --git a/targets/nucleo-l432kc.json b/targets/nucleo-l432kc.json
index 44772a431..028b034b0 100644
--- a/targets/nucleo-l432kc.json
+++ b/targets/nucleo-l432kc.json
@@ -4,9 +4,9 @@
"serial": "uart",
"linkerscript": "targets/stm32l4x2.ld",
"extra-files": [
- "src/vendor/tinygo.org/x/device/stm32/stm32l4x2.s"
+ "src/device/stm32/stm32l4x2.s"
],
"flash-method": "openocd",
"openocd-interface": "stlink-v2-1",
"openocd-target": "stm32l4x"
- }
+ } \ No newline at end of file
diff --git a/targets/nucleo-l552ze.json b/targets/nucleo-l552ze.json
index cefd70713..9ee436808 100644
--- a/targets/nucleo-l552ze.json
+++ b/targets/nucleo-l552ze.json
@@ -4,9 +4,9 @@
"serial": "uart",
"linkerscript": "targets/stm32l5x2xe.ld",
"extra-files": [
- "src/vendor/tinygo.org/x/device/stm32/stm32l552.s"
+ "src/device/stm32/stm32l552.s"
],
"flash-method": "openocd",
"openocd-interface": "stlink",
"openocd-target": "stm32l5x"
- }
+ } \ No newline at end of file
diff --git a/targets/stm32f469disco.json b/targets/stm32f469disco.json
index 7770118ad..37deaa3a7 100644
--- a/targets/stm32f469disco.json
+++ b/targets/stm32f469disco.json
@@ -4,7 +4,7 @@
"serial": "uart",
"linkerscript": "targets/stm32f469.ld",
"extra-files": [
- "src/vendor/tinygo.org/x/device/stm32/stm32f469.s"
+ "src/device/stm32/stm32f469.s"
],
"flash-method": "openocd",
"openocd-interface": "stlink",
diff --git a/targets/stm32f4disco.json b/targets/stm32f4disco.json
index 13733701e..4485c41d3 100644
--- a/targets/stm32f4disco.json
+++ b/targets/stm32f4disco.json
@@ -4,7 +4,7 @@
"serial": "uart",
"linkerscript": "targets/stm32f407.ld",
"extra-files": [
- "src/vendor/tinygo.org/x/device/stm32/stm32f407.s"
+ "src/device/stm32/stm32f407.s"
],
"flash-method": "openocd",
"openocd-interface": "stlink-v2",
diff --git a/targets/stm32l0x2.json b/targets/stm32l0x2.json
index 094d45e76..13b42cc5c 100644
--- a/targets/stm32l0x2.json
+++ b/targets/stm32l0x2.json
@@ -8,6 +8,6 @@
"stm32"
],
"extra-files": [
- "src/vendor/tinygo.org/x/device/stm32/stm32l0x2.s"
+ "src/device/stm32/stm32l0x2.s"
]
-}
+} \ No newline at end of file
diff --git a/targets/stm32wl5x_cm4.json b/targets/stm32wl5x_cm4.json
index 67d22e173..00d8bbb82 100644
--- a/targets/stm32wl5x_cm4.json
+++ b/targets/stm32wl5x_cm4.json
@@ -2,7 +2,7 @@
"inherits": ["cortex-m4"],
"build-tags": [ "stm32wl5x_cm4","stm32wlx", "stm32"],
"extra-files": [
- "src/vendor/tinygo.org/x/device/stm32/stm32wl5x_cm4.s"
+ "src/device/stm32/stm32wl5x_cm4.s"
],
"linkerscript": "targets/stm32wlx.ld"
}
diff --git a/targets/stm32wle5.json b/targets/stm32wle5.json
index e14322544..f24f28f2e 100644
--- a/targets/stm32wle5.json
+++ b/targets/stm32wle5.json
@@ -2,7 +2,7 @@
"inherits": ["cortex-m4"],
"build-tags": [ "stm32wle5","stm32wlx", "stm32"],
"extra-files": [
- "src/vendor/tinygo.org/x/device/stm32/stm32wle5.s"
+ "src/device/stm32/stm32wle5.s"
],
"linkerscript": "targets/stm32wlx.ld"
}
diff --git a/targets/swan.json b/targets/swan.json
index 0e323a01b..fbb46a556 100644
--- a/targets/swan.json
+++ b/targets/swan.json
@@ -4,10 +4,10 @@
"serial": "uart",
"linkerscript": "targets/stm32l4x5.ld",
"extra-files": [
- "src/vendor/tinygo.org/x/device/stm32/stm32l4x5.s"
+ "src/device/stm32/stm32l4x5.s"
],
"flash-method": "command",
"flash-command": "dfu-util --alt 0 --dfuse-address 0x08000000 --download {bin}",
"openocd-interface": "stlink",
"openocd-target": "stm32l4x"
- }
+ } \ No newline at end of file