device: change the import path

This commit is contained in:
sago35
2021-07-08 20:56:53 +09:00
parent 0565b7c0e0
commit d7e8de7b8c
168 changed files with 199 additions and 197 deletions
@@ -3,7 +3,7 @@
package machine
import (
"device/sam"
"github.com/sago35/device/sam"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/sam"
"github.com/sago35/device/sam"
"runtime/interrupt"
)
+1 -1
View File
@@ -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"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/sam"
"github.com/sago35/device/sam"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/sam"
"github.com/sago35/device/sam"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/sam"
"github.com/sago35/device/sam"
"runtime/interrupt"
)
+1 -1
View File
@@ -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"
)
+1 -1
View File
@@ -2,7 +2,7 @@
package machine
import "device/sifive"
import "github.com/sago35/device/sifive"
// SPI on the HiFive1.
var (
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/sam"
"github.com/sago35/device/sam"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/sam"
"github.com/sago35/device/sam"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/stm32"
"github.com/sago35/device/stm32"
"runtime/interrupt"
)
+1 -1
View File
@@ -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"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/stm32"
"github.com/sago35/device/stm32"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/stm32"
"github.com/sago35/device/stm32"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/stm32"
"github.com/sago35/device/stm32"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/stm32"
"github.com/sago35/device/stm32"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/stm32"
"github.com/sago35/device/stm32"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/sam"
"github.com/sago35/device/sam"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/sam"
"github.com/sago35/device/sam"
"runtime/interrupt"
)
+1 -1
View File
@@ -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
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/sam"
"github.com/sago35/device/sam"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/sam"
"github.com/sago35/device/sam"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/stm32"
"github.com/sago35/device/stm32"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/nxp"
"github.com/sago35/device/nxp"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/sam"
"github.com/sago35/device/sam"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/sam"
"github.com/sago35/device/sam"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/sam"
"github.com/sago35/device/sam"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/avr"
"github.com/sago35/device/avr"
"runtime/interrupt"
"runtime/volatile"
"unsafe"
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/avr"
"github.com/sago35/device/avr"
"runtime/interrupt"
"runtime/volatile"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/avr"
"github.com/sago35/device/avr"
"runtime/volatile"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/avr"
"github.com/sago35/device/avr"
"runtime/volatile"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/avr"
"github.com/sago35/device/avr"
"runtime/interrupt"
"runtime/volatile"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/avr"
"github.com/sago35/device/avr"
"runtime/volatile"
)
+2 -2
View File
@@ -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"
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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"
+1 -1
View File
@@ -7,7 +7,7 @@
//
package machine
import "device/sam"
import "github.com/sago35/device/sam"
const HSRAM_SIZE = 0x00030000
+1 -1
View File
@@ -7,7 +7,7 @@
//
package machine
import "device/sam"
import "github.com/sago35/device/sam"
const HSRAM_SIZE = 0x00030000
+1 -1
View File
@@ -7,7 +7,7 @@
//
package machine
import "device/sam"
import "github.com/sago35/device/sam"
const HSRAM_SIZE = 0x00040000
+1 -1
View File
@@ -7,7 +7,7 @@
//
package machine
import "device/sam"
import "github.com/sago35/device/sam"
const HSRAM_SIZE = 0x00030000
+1 -1
View File
@@ -7,7 +7,7 @@
//
package machine
import "device/sam"
import "github.com/sago35/device/sam"
const HSRAM_SIZE = 0x00040000
+1 -1
View File
@@ -7,7 +7,7 @@
//
package machine
import "device/sam"
import "github.com/sago35/device/sam"
const HSRAM_SIZE = 0x00030000
+1 -1
View File
@@ -7,7 +7,7 @@
//
package machine
import "device/sam"
import "github.com/sago35/device/sam"
const HSRAM_SIZE = 0x00040000
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/sam"
"github.com/sago35/device/sam"
"errors"
"runtime/interrupt"
"unsafe"
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/avr"
"github.com/sago35/device/avr"
"runtime/volatile"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/avr"
"github.com/sago35/device/avr"
"runtime/volatile"
"unsafe"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/esp"
"github.com/sago35/device/esp"
"errors"
"runtime/volatile"
"unsafe"
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/esp"
"github.com/sago35/device/esp"
"runtime/volatile"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/sifive"
"github.com/sago35/device/sifive"
"runtime/interrupt"
"unsafe"
)
+2 -2
View File
@@ -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"
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/nxp"
"github.com/sago35/device/nxp"
"math/bits"
"runtime/interrupt"
"runtime/volatile"
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/nxp"
"github.com/sago35/device/nxp"
"runtime/interrupt"
"runtime/volatile"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/nrf"
"github.com/sago35/device/nrf"
"errors"
"runtime/interrupt"
"unsafe"
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/nrf"
"github.com/sago35/device/nrf"
)
func CPUFrequency() uint32 {
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/nrf"
"github.com/sago35/device/nrf"
)
// Hardware pins
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/nrf"
"github.com/sago35/device/nrf"
)
// Hardware pins
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/nrf"
"github.com/sago35/device/nrf"
)
// Hardware pins
+2 -2
View File
@@ -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 (
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/nrf"
"github.com/sago35/device/nrf"
"runtime/volatile"
"unsafe"
)
+1 -1
View File
@@ -32,7 +32,7 @@
package machine
import (
"device/nxp"
"github.com/sago35/device/nxp"
"runtime/volatile"
"unsafe"
)
+2 -2
View File
@@ -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"
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/rp"
"github.com/sago35/device/rp"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/rp"
"github.com/sago35/device/rp"
)
func InitADC() {
+2 -2
View File
@@ -3,8 +3,8 @@
package machine
import (
"device/arm"
"device/rp"
"github.com/sago35/device/arm"
"github.com/sago35/device/rp"
"runtime/volatile"
"unsafe"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/rp"
"github.com/sago35/device/rp"
"runtime/volatile"
"unsafe"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/rp"
"github.com/sago35/device/rp"
"runtime/volatile"
"unsafe"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/rp"
"github.com/sago35/device/rp"
"runtime/volatile"
"unsafe"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/rp"
"github.com/sago35/device/rp"
"runtime/volatile"
"unsafe"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/rp"
"github.com/sago35/device/rp"
"runtime/interrupt"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/rp"
"github.com/sago35/device/rp"
"runtime/volatile"
"unsafe"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/rp"
"github.com/sago35/device/rp"
"runtime/volatile"
"unsafe"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/stm32"
"github.com/sago35/device/stm32"
"runtime/volatile"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/stm32"
"github.com/sago35/device/stm32"
"runtime/volatile"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/stm32"
"github.com/sago35/device/stm32"
"runtime/volatile"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/stm32"
"github.com/sago35/device/stm32"
)
// This variant of the GPIO input interrupt logic is for
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/stm32"
"github.com/sago35/device/stm32"
)
// This variant of the GPIO input interrupt logic is for
+1 -1
View File
@@ -6,7 +6,7 @@ package machine
// of MCUs.
import (
"device/stm32"
"github.com/sago35/device/stm32"
"unsafe"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/stm32"
"github.com/sago35/device/stm32"
"unsafe"
)
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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"
)
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/stm32"
"github.com/sago35/device/stm32"
"runtime/interrupt"
"runtime/volatile"
)
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -5,7 +5,7 @@ package machine
// Peripheral abstraction layer for the stm32f405
import (
"device/stm32"
"github.com/sago35/device/stm32"
"math/bits"
)
+1 -1
View File
@@ -5,7 +5,7 @@ package machine
// Peripheral abstraction layer for the stm32f407
import (
"device/stm32"
"github.com/sago35/device/stm32"
)
func CPUFrequency() uint32 {
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -5,7 +5,7 @@ package machine
// Peripheral abstraction layer for the stm32f407
import (
"device/stm32"
"github.com/sago35/device/stm32"
)
func CPUFrequency() uint32 {
+1 -1
View File
@@ -5,7 +5,7 @@ package machine
// Peripheral abstraction layer for the stm32l0
import (
"device/stm32"
"github.com/sago35/device/stm32"
"runtime/interrupt"
)
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -3,7 +3,7 @@
package machine
import (
"device/stm32"
"github.com/sago35/device/stm32"
"runtime/interrupt"
"runtime/volatile"
"unsafe"
+1 -1
View File
@@ -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