mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 21:43:40 +00:00
device: change the import path
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
package machine
|
||||
|
||||
import "device/sifive"
|
||||
import "github.com/sago35/device/sifive"
|
||||
|
||||
// SPI on the HiFive1.
|
||||
var (
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
package machine
|
||||
|
||||
import "device/kendryte"
|
||||
import "github.com/sago35/device/kendryte"
|
||||
|
||||
// SPI on the MAix Bit.
|
||||
var (
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
package machine
|
||||
|
||||
import "device/sam"
|
||||
import "github.com/sago35/device/sam"
|
||||
|
||||
// used to reset into bootloader
|
||||
const RESET_MAGIC_VALUE = 0xf01669ef
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/nxp"
|
||||
"github.com/sago35/device/nxp"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/avr"
|
||||
"github.com/sago35/device/avr"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/avr"
|
||||
"github.com/sago35/device/avr"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/avr"
|
||||
"github.com/sago35/device/avr"
|
||||
"runtime/volatile"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/avr"
|
||||
"github.com/sago35/device/avr"
|
||||
"runtime/volatile"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/avr"
|
||||
"github.com/sago35/device/avr"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/avr"
|
||||
"github.com/sago35/device/avr"
|
||||
"runtime/volatile"
|
||||
)
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/arm"
|
||||
"device/sam"
|
||||
"github.com/sago35/device/arm"
|
||||
"github.com/sago35/device/sam"
|
||||
"errors"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
)
|
||||
|
||||
// Return the register and mask to enable a given GPIO pin. This can be used to
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
)
|
||||
|
||||
// Return the register and mask to enable a given GPIO pin. This can be used to
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/arm"
|
||||
"device/sam"
|
||||
"github.com/sago35/device/arm"
|
||||
"github.com/sago35/device/sam"
|
||||
"errors"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
package machine
|
||||
|
||||
import "device/sam"
|
||||
import "github.com/sago35/device/sam"
|
||||
|
||||
const HSRAM_SIZE = 0x00030000
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
package machine
|
||||
|
||||
import "device/sam"
|
||||
import "github.com/sago35/device/sam"
|
||||
|
||||
const HSRAM_SIZE = 0x00030000
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
package machine
|
||||
|
||||
import "device/sam"
|
||||
import "github.com/sago35/device/sam"
|
||||
|
||||
const HSRAM_SIZE = 0x00040000
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
package machine
|
||||
|
||||
import "device/sam"
|
||||
import "github.com/sago35/device/sam"
|
||||
|
||||
const HSRAM_SIZE = 0x00030000
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
package machine
|
||||
|
||||
import "device/sam"
|
||||
import "github.com/sago35/device/sam"
|
||||
|
||||
const HSRAM_SIZE = 0x00040000
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
package machine
|
||||
|
||||
import "device/sam"
|
||||
import "github.com/sago35/device/sam"
|
||||
|
||||
const HSRAM_SIZE = 0x00030000
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
package machine
|
||||
|
||||
import "device/sam"
|
||||
import "github.com/sago35/device/sam"
|
||||
|
||||
const HSRAM_SIZE = 0x00040000
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sam"
|
||||
"github.com/sago35/device/sam"
|
||||
"errors"
|
||||
"runtime/interrupt"
|
||||
"unsafe"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/avr"
|
||||
"github.com/sago35/device/avr"
|
||||
"runtime/volatile"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/avr"
|
||||
"github.com/sago35/device/avr"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/esp"
|
||||
"github.com/sago35/device/esp"
|
||||
"errors"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/esp"
|
||||
"github.com/sago35/device/esp"
|
||||
"runtime/volatile"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/sifive"
|
||||
"github.com/sago35/device/sifive"
|
||||
"runtime/interrupt"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/kendryte"
|
||||
"device/riscv"
|
||||
"github.com/sago35/device/kendryte"
|
||||
"github.com/sago35/device/riscv"
|
||||
"errors"
|
||||
"runtime/interrupt"
|
||||
"unsafe"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/nxp"
|
||||
"github.com/sago35/device/nxp"
|
||||
"math/bits"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/nxp"
|
||||
"github.com/sago35/device/nxp"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/nrf"
|
||||
"github.com/sago35/device/nrf"
|
||||
"errors"
|
||||
"runtime/interrupt"
|
||||
"unsafe"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/nrf"
|
||||
"github.com/sago35/device/nrf"
|
||||
)
|
||||
|
||||
func CPUFrequency() uint32 {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/nrf"
|
||||
"github.com/sago35/device/nrf"
|
||||
)
|
||||
|
||||
// Hardware pins
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/nrf"
|
||||
"github.com/sago35/device/nrf"
|
||||
)
|
||||
|
||||
// Hardware pins
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/nrf"
|
||||
"github.com/sago35/device/nrf"
|
||||
)
|
||||
|
||||
// Hardware pins
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/arm"
|
||||
"device/nrf"
|
||||
"github.com/sago35/device/arm"
|
||||
"github.com/sago35/device/nrf"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/arm"
|
||||
"device/nrf"
|
||||
"github.com/sago35/device/arm"
|
||||
"github.com/sago35/device/nrf"
|
||||
)
|
||||
|
||||
const DFU_MAGIC_SERIAL_ONLY_RESET = 0xb0
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/arm"
|
||||
"device/nrf"
|
||||
"github.com/sago35/device/arm"
|
||||
"github.com/sago35/device/nrf"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/nrf"
|
||||
"github.com/sago35/device/nrf"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/nxp"
|
||||
"github.com/sago35/device/nxp"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/arm"
|
||||
"device/nxp"
|
||||
"github.com/sago35/device/arm"
|
||||
"github.com/sago35/device/nxp"
|
||||
"errors"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/rp"
|
||||
"github.com/sago35/device/rp"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/rp"
|
||||
"github.com/sago35/device/rp"
|
||||
)
|
||||
|
||||
func InitADC() {
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/arm"
|
||||
"device/rp"
|
||||
"github.com/sago35/device/arm"
|
||||
"github.com/sago35/device/rp"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/rp"
|
||||
"github.com/sago35/device/rp"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/rp"
|
||||
"github.com/sago35/device/rp"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/rp"
|
||||
"github.com/sago35/device/rp"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/rp"
|
||||
"github.com/sago35/device/rp"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/rp"
|
||||
"github.com/sago35/device/rp"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/rp"
|
||||
"github.com/sago35/device/rp"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/rp"
|
||||
"github.com/sago35/device/rp"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/volatile"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/volatile"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/volatile"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
)
|
||||
|
||||
// This variant of the GPIO input interrupt logic is for
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
)
|
||||
|
||||
// This variant of the GPIO input interrupt logic is for
|
||||
|
||||
@@ -6,7 +6,7 @@ package machine
|
||||
// of MCUs.
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
)
|
||||
|
||||
// GPIO for the stm32 families except the stm32f1xx which uses a simpler but
|
||||
|
||||
@@ -5,7 +5,7 @@ package machine
|
||||
// Peripheral abstraction layer for SPI on the stm32 family
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@ package machine
|
||||
// Peripheral abstraction layer for UARTs on the stm32 family.
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
|
||||
@@ -5,7 +5,7 @@ package machine
|
||||
// Peripheral abstraction layer for the stm32.
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
|
||||
@@ -5,7 +5,7 @@ package machine
|
||||
// Peripheral abstraction layer for the stm32f4
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
|
||||
@@ -5,7 +5,7 @@ package machine
|
||||
// Peripheral abstraction layer for the stm32f405
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"math/bits"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ package machine
|
||||
// Peripheral abstraction layer for the stm32f407
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
)
|
||||
|
||||
func CPUFrequency() uint32 {
|
||||
|
||||
@@ -5,7 +5,7 @@ package machine
|
||||
// Peripheral abstraction layer for the stm32f4
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
|
||||
@@ -5,7 +5,7 @@ package machine
|
||||
// Peripheral abstraction layer for the stm32f407
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
)
|
||||
|
||||
func CPUFrequency() uint32 {
|
||||
|
||||
@@ -5,7 +5,7 @@ package machine
|
||||
// Peripheral abstraction layer for the stm32l0
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ package machine
|
||||
// Peripheral abstraction layer for the stm32l0
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
|
||||
@@ -5,7 +5,7 @@ package machine
|
||||
// Peripheral abstraction layer for the stm32l0
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package machine
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
"runtime/interrupt"
|
||||
"runtime/volatile"
|
||||
"unsafe"
|
||||
|
||||
@@ -5,7 +5,7 @@ package machine
|
||||
// Peripheral abstraction layer for the stm32l4x2
|
||||
|
||||
import (
|
||||
"device/stm32"
|
||||
"github.com/sago35/device/stm32"
|
||||
)
|
||||
|
||||
func CPUFrequency() uint32 {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user