mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 03:27:48 +00:00
Revert "all: move stm32 files to separate repository"
This reverts commit 644356c220.
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
package machine
|
||||
|
||||
import "tinygo.org/x/device/stm32"
|
||||
import "device/stm32"
|
||||
|
||||
const deviceName = stm32.Device
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"tinygo.org/x/device/stm32"
|
||||
"device/stm32"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"tinygo.org/x/device/stm32"
|
||||
"device/stm32"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/volatile"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
func getEXTIConfigRegister(pin uint8) *volatile.Register32 {
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/volatile"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
func getEXTIConfigRegister(pin uint8) *volatile.Register32 {
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/volatile"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
func getEXTIConfigRegister(pin uint8) *volatile.Register32 {
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/volatile"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
func getEXTIConfigRegister(pin uint8) *volatile.Register32 {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"tinygo.org/x/device/stm32"
|
||||
"device/stm32"
|
||||
)
|
||||
|
||||
// This variant of the GPIO input interrupt logic is for
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"tinygo.org/x/device/stm32"
|
||||
"device/stm32"
|
||||
)
|
||||
|
||||
// This variant of the GPIO input interrupt logic is for
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"tinygo.org/x/device/stm32"
|
||||
"device/stm32"
|
||||
)
|
||||
|
||||
//
|
||||
|
||||
@@ -7,7 +7,7 @@ package machine
|
||||
// of MCUs.
|
||||
|
||||
import (
|
||||
"tinygo.org/x/device/stm32"
|
||||
"device/stm32"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"tinygo.org/x/device/stm32"
|
||||
"device/stm32"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
package machine
|
||||
|
||||
import "tinygo.org/x/device/stm32"
|
||||
import "device/stm32"
|
||||
|
||||
var rngInitDone = false
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ package machine
|
||||
// Peripheral abstraction layer for the stm32f407
|
||||
|
||||
import (
|
||||
"tinygo.org/x/device/stm32"
|
||||
"device/stm32"
|
||||
)
|
||||
|
||||
func CPUFrequency() uint32 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
"tinygo.org/x/device/stm32"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ package machine
|
||||
// Peripheral abstraction layer for the stm32f407
|
||||
|
||||
import (
|
||||
"tinygo.org/x/device/stm32"
|
||||
"device/stm32"
|
||||
)
|
||||
|
||||
func CPUFrequency() uint32 {
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"machine"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"machine"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"machine"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
package runtime
|
||||
|
||||
import "tinygo.org/x/device/stm32"
|
||||
import "device/stm32"
|
||||
|
||||
/*
|
||||
clock settings
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
package runtime
|
||||
|
||||
import "tinygo.org/x/device/stm32"
|
||||
import "device/stm32"
|
||||
|
||||
/*
|
||||
clock settings
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"machine"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
/*
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"machine"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"machine"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"machine"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"machine"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"tinygo.org/x/device/stm32"
|
||||
"device/stm32"
|
||||
)
|
||||
|
||||
/*
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"tinygo.org/x/device/stm32"
|
||||
"device/stm32"
|
||||
)
|
||||
|
||||
/*
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"machine"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
/*
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"machine"
|
||||
"tinygo.org/x/device/stm32"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
-1
Submodule src/vendor/tinygo.org/x/device deleted from c873563f9e
Reference in New Issue
Block a user