From 17c4f529ff591729c88f949d97c83d3a093d9e7e Mon Sep 17 00:00:00 2001 From: Marc-Antoine Ruel Date: Wed, 30 Dec 2020 14:50:25 -0500 Subject: [PATCH] Migrate to v3 Announcement to follow soon. --- README.md | 8 ++++---- allwinner/a20.go | 4 ++-- allwinner/a64.go | 4 ++-- .../allwinnersmoketest/allwinnersmoketest.go | 8 ++++---- allwinner/allwinnersmoketest/benchmark.go | 6 +++--- .../benchmark_fast_gpio_support.go | 2 +- .../benchmark_gpio_support.go | 4 ++-- .../benchmark_gpio_support_test.go | 2 +- allwinner/detect.go | 2 +- allwinner/dma.go | 4 ++-- allwinner/gpio.go | 14 ++++++------- allwinner/gpio_pl.go | 14 ++++++------- allwinner/r8.go | 4 ++-- allwinner/timer.go | 2 +- am335x/am335x.go | 4 ++-- bcm283x/bcm283x_test.go | 2 +- bcm283x/bcm283xsmoketest/bcm283xsmoketest.go | 12 +++++------ bcm283x/bcm283xsmoketest/benchmark.go | 6 +++--- .../benchmark_fast_gpio_support.go | 2 +- .../benchmark_gpio_support.go | 4 ++-- .../benchmark_gpio_support_test.go | 2 +- bcm283x/clock.go | 2 +- bcm283x/clock_test.go | 2 +- bcm283x/dma.go | 10 +++++----- bcm283x/dma_test.go | 4 ++-- bcm283x/example_test.go | 6 +++--- bcm283x/gpio.go | 20 +++++++++---------- bcm283x/gpio_test.go | 18 ++++++++--------- bcm283x/pcm.go | 2 +- bcm283x/pwm.go | 2 +- bcm283x/pwm_test.go | 2 +- bcm283x/streams.go | 2 +- bcm283x/streams_test.go | 4 ++-- bcm283x/timer.go | 2 +- beagle/beagle.go | 2 +- beagle/black/black.go | 2 +- beagle/bone/bone.go | 14 ++++++------- beagle/green/green.go | 12 +++++------ chip/chip.go | 16 +++++++-------- chip/chipsmoketest/chipsmoketest.go | 10 +++++----- cpu/cpu.go | 2 +- cpu/cpu_test.go | 2 +- distro/distro_test.go | 2 +- example_test.go | 2 +- go.mod | 8 ++++++-- go.sum | 4 ++-- host.go | 2 +- host_arm.go | 18 ++++++++--------- host_arm64.go | 8 ++++---- host_linux.go | 2 +- mt7688/driver.go | 2 +- mt7688/gpio.go | 2 +- mt7688/mt7688.go | 4 ++-- mt7688/pin.go | 8 ++++---- netlink/onewire.go | 6 +++--- odroidc1/odroidc1.go | 14 ++++++------- .../odroidc1smoketest/odroidc1smoketest.go | 8 ++++---- pine64/pine64.go | 10 +++++----- pmem/example_test.go | 2 +- pmem/view.go | 2 +- pmem/view_test.go | 2 +- pru/pru.go | 2 +- rpi/rpi.go | 12 +++++------ serial/serial.go | 12 +++++------ sysfs/example_test.go | 6 +++--- sysfs/gpio.go | 14 ++++++------- sysfs/gpio_test.go | 6 +++--- sysfs/i2c.go | 16 +++++++-------- sysfs/i2c_test.go | 4 ++-- sysfs/led.go | 12 +++++------ sysfs/led_test.go | 4 ++-- sysfs/spi.go | 18 ++++++++--------- sysfs/spi_test.go | 8 ++++---- sysfs/sysfs.go | 2 +- sysfs/sysfs_test.go | 2 +- sysfs/sysfssmoketest/benchmark.go | 4 ++-- .../sysfssmoketest/benchmark_gpio_support.go | 4 ++-- .../benchmark_gpio_support_test.go | 2 +- sysfs/thermal_sensor.go | 6 +++--- sysfs/thermal_sensor_test.go | 2 +- videocore/example_test.go | 2 +- videocore/videocore.go | 4 ++-- videocore/videocore_test.go | 4 ++-- 83 files changed, 251 insertions(+), 247 deletions(-) diff --git a/README.md b/README.md index ad2d3cb3..d321b9b1 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Documentation is at https://periph.io -[![PkgGoDev](https://pkg.go.dev/badge/periph.io/x/host)](https://pkg.go.dev/periph.io/x/host) +[![PkgGoDev](https://pkg.go.dev/badge/periph.io/x/host/v3)](https://pkg.go.dev/periph.io/x/host/v3) [![Coverage Status](https://codecov.io/gh/periph/host/graph/badge.svg)](https://codecov.io/gh/periph/host) @@ -22,9 +22,9 @@ package main import ( "time" - "periph.io/x/conn/gpio" - "periph.io/x/host" - "periph.io/x/host/rpi" + "periph.io/x/conn/v3/gpio" + "periph.io/x/host/v3" + "periph.io/x/host/v3/rpi" ) func main() { diff --git a/allwinner/a20.go b/allwinner/a20.go index f782ffb6..8380f7c0 100644 --- a/allwinner/a20.go +++ b/allwinner/a20.go @@ -10,8 +10,8 @@ package allwinner import ( "strings" - "periph.io/x/conn/pin" - "periph.io/x/host/sysfs" + "periph.io/x/conn/v3/pin" + "periph.io/x/host/v3/sysfs" ) // mappingA20 describes the mapping of the A20 processor gpios to their diff --git a/allwinner/a64.go b/allwinner/a64.go index 8783e6f6..d8713325 100644 --- a/allwinner/a64.go +++ b/allwinner/a64.go @@ -10,8 +10,8 @@ package allwinner import ( "strings" - "periph.io/x/conn/pin" - "periph.io/x/host/sysfs" + "periph.io/x/conn/v3/pin" + "periph.io/x/host/v3/sysfs" ) // A64 specific pins. diff --git a/allwinner/allwinnersmoketest/allwinnersmoketest.go b/allwinner/allwinnersmoketest/allwinnersmoketest.go index 17a263c3..c846f7df 100644 --- a/allwinner/allwinnersmoketest/allwinnersmoketest.go +++ b/allwinner/allwinnersmoketest/allwinnersmoketest.go @@ -15,10 +15,10 @@ import ( "fmt" "time" - "periph.io/x/conn/gpio" - "periph.io/x/host/allwinner" - "periph.io/x/host/chip" - "periph.io/x/host/pine64" + "periph.io/x/conn/v3/gpio" + "periph.io/x/host/v3/allwinner" + "periph.io/x/host/v3/chip" + "periph.io/x/host/v3/pine64" ) // SmokeTest is imported by periph-smoketest. diff --git a/allwinner/allwinnersmoketest/benchmark.go b/allwinner/allwinnersmoketest/benchmark.go index 55a7d171..6a0457bc 100644 --- a/allwinner/allwinnersmoketest/benchmark.go +++ b/allwinner/allwinnersmoketest/benchmark.go @@ -9,9 +9,9 @@ import ( "flag" "fmt" - "periph.io/x/conn/gpio" - "periph.io/x/conn/gpio/gpioreg" - "periph.io/x/host/allwinner" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/gpio/gpioreg" + "periph.io/x/host/v3/allwinner" ) // Benchmark is imported by periph-smoketest. diff --git a/allwinner/allwinnersmoketest/benchmark_fast_gpio_support.go b/allwinner/allwinnersmoketest/benchmark_fast_gpio_support.go index 2f67bed5..dc2abc5e 100644 --- a/allwinner/allwinnersmoketest/benchmark_fast_gpio_support.go +++ b/allwinner/allwinnersmoketest/benchmark_fast_gpio_support.go @@ -10,7 +10,7 @@ package allwinnersmoketest import ( "testing" - "periph.io/x/conn/gpio" + "periph.io/x/conn/v3/gpio" ) // runFastGPIOBenchmark runs the standardized GPIO benchmark for this specific diff --git a/allwinner/allwinnersmoketest/benchmark_gpio_support.go b/allwinner/allwinnersmoketest/benchmark_gpio_support.go index 915c51a2..ed314345 100644 --- a/allwinner/allwinnersmoketest/benchmark_gpio_support.go +++ b/allwinner/allwinnersmoketest/benchmark_gpio_support.go @@ -13,8 +13,8 @@ import ( "testing" "time" - "periph.io/x/conn/gpio" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/physic" ) // runGPIOBenchmark runs the standardized GPIO benchmark for this specific diff --git a/allwinner/allwinnersmoketest/benchmark_gpio_support_test.go b/allwinner/allwinnersmoketest/benchmark_gpio_support_test.go index 853fc4c5..516f12fd 100644 --- a/allwinner/allwinnersmoketest/benchmark_gpio_support_test.go +++ b/allwinner/allwinnersmoketest/benchmark_gpio_support_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/physic" ) func TestToHz(t *testing.T) { diff --git a/allwinner/detect.go b/allwinner/detect.go index cf17535c..75f75104 100644 --- a/allwinner/detect.go +++ b/allwinner/detect.go @@ -8,7 +8,7 @@ import ( "strings" "sync" - "periph.io/x/host/distro" + "periph.io/x/host/v3/distro" ) // Present detects whether the host CPU is an Allwinner CPU. diff --git a/allwinner/dma.go b/allwinner/dma.go index a31bb456..32751b43 100644 --- a/allwinner/dma.go +++ b/allwinner/dma.go @@ -21,8 +21,8 @@ import ( "log" "os" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/host/pmem" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/host/v3/pmem" ) // dmaMap represents the DMA memory mapped CPU registers. diff --git a/allwinner/gpio.go b/allwinner/gpio.go index 831d9151..e01a3a9d 100644 --- a/allwinner/gpio.go +++ b/allwinner/gpio.go @@ -16,13 +16,13 @@ import ( "strings" "time" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/gpio" - "periph.io/x/conn/gpio/gpioreg" - "periph.io/x/conn/physic" - "periph.io/x/conn/pin" - "periph.io/x/host/pmem" - "periph.io/x/host/sysfs" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/gpio/gpioreg" + "periph.io/x/conn/v3/physic" + "periph.io/x/conn/v3/pin" + "periph.io/x/host/v3/pmem" + "periph.io/x/host/v3/sysfs" ) // List of all known pins. These global variables can be used directly. diff --git a/allwinner/gpio_pl.go b/allwinner/gpio_pl.go index 72c61867..154555d0 100644 --- a/allwinner/gpio_pl.go +++ b/allwinner/gpio_pl.go @@ -13,13 +13,13 @@ import ( "strings" "time" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/gpio" - "periph.io/x/conn/gpio/gpioreg" - "periph.io/x/conn/physic" - "periph.io/x/conn/pin" - "periph.io/x/host/pmem" - "periph.io/x/host/sysfs" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/gpio/gpioreg" + "periph.io/x/conn/v3/physic" + "periph.io/x/conn/v3/pin" + "periph.io/x/host/v3/pmem" + "periph.io/x/host/v3/sysfs" ) // All the pins in the PL group. diff --git a/allwinner/r8.go b/allwinner/r8.go index 6f3e9d47..6d1a9f34 100644 --- a/allwinner/r8.go +++ b/allwinner/r8.go @@ -10,8 +10,8 @@ package allwinner import ( "strings" - "periph.io/x/conn/pin" - "periph.io/x/host/sysfs" + "periph.io/x/conn/v3/pin" + "periph.io/x/host/v3/sysfs" ) // R8 specific pins. diff --git a/allwinner/timer.go b/allwinner/timer.go index fb03a4e1..22f50a09 100644 --- a/allwinner/timer.go +++ b/allwinner/timer.go @@ -7,7 +7,7 @@ package allwinner import ( "time" - "periph.io/x/host/cpu" + "periph.io/x/host/v3/cpu" ) // ReadTime returns the time on a monotonic timer. diff --git a/am335x/am335x.go b/am335x/am335x.go index aefb216a..f5a3fa1a 100644 --- a/am335x/am335x.go +++ b/am335x/am335x.go @@ -8,8 +8,8 @@ import ( "errors" "strings" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/host/distro" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/host/v3/distro" ) // Present returns true if a TM AM335x processor is detected. diff --git a/bcm283x/bcm283x_test.go b/bcm283x/bcm283x_test.go index 8ab5eb33..423bba33 100644 --- a/bcm283x/bcm283x_test.go +++ b/bcm283x/bcm283x_test.go @@ -4,7 +4,7 @@ package bcm283x -import "periph.io/x/host/fs" +import "periph.io/x/host/v3/fs" func init() { fs.Inhibit() diff --git a/bcm283x/bcm283xsmoketest/bcm283xsmoketest.go b/bcm283x/bcm283xsmoketest/bcm283xsmoketest.go index 4c4701ea..0321df5a 100644 --- a/bcm283x/bcm283xsmoketest/bcm283xsmoketest.go +++ b/bcm283x/bcm283xsmoketest/bcm283xsmoketest.go @@ -16,12 +16,12 @@ import ( "regexp" "time" - "periph.io/x/conn/gpio" - "periph.io/x/conn/gpio/gpioreg" - "periph.io/x/conn/gpio/gpiostream" - "periph.io/x/conn/physic" - "periph.io/x/conn/pin" - "periph.io/x/host/bcm283x" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/gpio/gpioreg" + "periph.io/x/conn/v3/gpio/gpiostream" + "periph.io/x/conn/v3/physic" + "periph.io/x/conn/v3/pin" + "periph.io/x/host/v3/bcm283x" ) // SmokeTest is imported by periph-smoketest. diff --git a/bcm283x/bcm283xsmoketest/benchmark.go b/bcm283x/bcm283xsmoketest/benchmark.go index 9c32124e..1f47032f 100644 --- a/bcm283x/bcm283xsmoketest/benchmark.go +++ b/bcm283x/bcm283xsmoketest/benchmark.go @@ -9,9 +9,9 @@ import ( "flag" "fmt" - "periph.io/x/conn/gpio" - "periph.io/x/conn/gpio/gpioreg" - "periph.io/x/host/bcm283x" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/gpio/gpioreg" + "periph.io/x/host/v3/bcm283x" ) // Benchmark is imported by periph-smoketest. diff --git a/bcm283x/bcm283xsmoketest/benchmark_fast_gpio_support.go b/bcm283x/bcm283xsmoketest/benchmark_fast_gpio_support.go index 99ff5072..01106726 100644 --- a/bcm283x/bcm283xsmoketest/benchmark_fast_gpio_support.go +++ b/bcm283x/bcm283xsmoketest/benchmark_fast_gpio_support.go @@ -10,7 +10,7 @@ package bcm283xsmoketest import ( "testing" - "periph.io/x/conn/gpio" + "periph.io/x/conn/v3/gpio" ) // runFastGPIOBenchmark runs the standardized GPIO benchmark for this specific diff --git a/bcm283x/bcm283xsmoketest/benchmark_gpio_support.go b/bcm283x/bcm283xsmoketest/benchmark_gpio_support.go index 566760bf..4f7b4575 100644 --- a/bcm283x/bcm283xsmoketest/benchmark_gpio_support.go +++ b/bcm283x/bcm283xsmoketest/benchmark_gpio_support.go @@ -13,8 +13,8 @@ import ( "testing" "time" - "periph.io/x/conn/gpio" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/physic" ) // runGPIOBenchmark runs the standardized GPIO benchmark for this specific diff --git a/bcm283x/bcm283xsmoketest/benchmark_gpio_support_test.go b/bcm283x/bcm283xsmoketest/benchmark_gpio_support_test.go index f6ad9374..8a9acf84 100644 --- a/bcm283x/bcm283xsmoketest/benchmark_gpio_support_test.go +++ b/bcm283x/bcm283xsmoketest/benchmark_gpio_support_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/physic" ) func TestToHz(t *testing.T) { diff --git a/bcm283x/clock.go b/bcm283x/clock.go index d45fe406..f9fd5462 100644 --- a/bcm283x/clock.go +++ b/bcm283x/clock.go @@ -10,7 +10,7 @@ import ( "strings" "time" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/physic" ) // errClockRegister is returned in a situation where the clock memory is not diff --git a/bcm283x/clock_test.go b/bcm283x/clock_test.go index 8013db2d..4371af5f 100644 --- a/bcm283x/clock_test.go +++ b/bcm283x/clock_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/physic" ) func TestClockDiv_String(t *testing.T) { diff --git a/bcm283x/dma.go b/bcm283x/dma.go index ca3b7470..cad4bfc2 100644 --- a/bcm283x/dma.go +++ b/bcm283x/dma.go @@ -70,11 +70,11 @@ import ( "strings" "time" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/gpio/gpiostream" - "periph.io/x/conn/physic" - "periph.io/x/host/pmem" - "periph.io/x/host/videocore" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/gpio/gpiostream" + "periph.io/x/conn/v3/physic" + "periph.io/x/host/v3/pmem" + "periph.io/x/host/v3/videocore" ) const ( diff --git a/bcm283x/dma_test.go b/bcm283x/dma_test.go index 4af1bd6f..75ece01a 100644 --- a/bcm283x/dma_test.go +++ b/bcm283x/dma_test.go @@ -8,8 +8,8 @@ import ( "reflect" "testing" - "periph.io/x/conn/gpio/gpiostream" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/gpio/gpiostream" + "periph.io/x/conn/v3/physic" ) func TestDmaStatus_String(t *testing.T) { diff --git a/bcm283x/example_test.go b/bcm283x/example_test.go index 2afb3b69..27630316 100644 --- a/bcm283x/example_test.go +++ b/bcm283x/example_test.go @@ -8,9 +8,9 @@ import ( "fmt" "log" - "periph.io/x/conn/physic" - "periph.io/x/host" - "periph.io/x/host/bcm283x" + "periph.io/x/conn/v3/physic" + "periph.io/x/host/v3" + "periph.io/x/host/v3/bcm283x" ) func ExamplePinsRead0To31() { diff --git a/bcm283x/gpio.go b/bcm283x/gpio.go index bd26c388..5919ad0c 100644 --- a/bcm283x/gpio.go +++ b/bcm283x/gpio.go @@ -12,16 +12,16 @@ import ( "strings" "time" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/gpio" - "periph.io/x/conn/gpio/gpioreg" - "periph.io/x/conn/gpio/gpiostream" - "periph.io/x/conn/physic" - "periph.io/x/conn/pin" - "periph.io/x/host/distro" - "periph.io/x/host/pmem" - "periph.io/x/host/sysfs" - "periph.io/x/host/videocore" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/gpio/gpioreg" + "periph.io/x/conn/v3/gpio/gpiostream" + "periph.io/x/conn/v3/physic" + "periph.io/x/conn/v3/pin" + "periph.io/x/host/v3/distro" + "periph.io/x/host/v3/pmem" + "periph.io/x/host/v3/sysfs" + "periph.io/x/host/v3/videocore" ) // All the pins supported by the CPU. diff --git a/bcm283x/gpio_test.go b/bcm283x/gpio_test.go index 69934636..447ce87a 100644 --- a/bcm283x/gpio_test.go +++ b/bcm283x/gpio_test.go @@ -8,15 +8,15 @@ import ( "reflect" "testing" - "periph.io/x/conn/gpio" - "periph.io/x/conn/gpio/gpiostream" - "periph.io/x/conn/i2c" - "periph.io/x/conn/physic" - "periph.io/x/conn/pin" - "periph.io/x/conn/spi" - "periph.io/x/conn/uart" - "periph.io/x/host/pmem" - "periph.io/x/host/videocore" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/gpio/gpiostream" + "periph.io/x/conn/v3/i2c" + "periph.io/x/conn/v3/physic" + "periph.io/x/conn/v3/pin" + "periph.io/x/conn/v3/spi" + "periph.io/x/conn/v3/uart" + "periph.io/x/host/v3/pmem" + "periph.io/x/host/v3/videocore" ) func TestPresent(t *testing.T) { diff --git a/bcm283x/pcm.go b/bcm283x/pcm.go index 04d8a97f..8181a1f5 100644 --- a/bcm283x/pcm.go +++ b/bcm283x/pcm.go @@ -11,7 +11,7 @@ import ( "fmt" "time" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/physic" ) type pcmCS uint32 diff --git a/bcm283x/pwm.go b/bcm283x/pwm.go index 32000a02..e8721284 100644 --- a/bcm283x/pwm.go +++ b/bcm283x/pwm.go @@ -9,7 +9,7 @@ import ( "fmt" "time" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/physic" ) // PWENi is used to enable/disable the corresponding channel. Setting this bit diff --git a/bcm283x/pwm_test.go b/bcm283x/pwm_test.go index 18fd4ffa..ecbe5e41 100644 --- a/bcm283x/pwm_test.go +++ b/bcm283x/pwm_test.go @@ -7,7 +7,7 @@ package bcm283x import ( "testing" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/physic" ) func TestPWMMap(t *testing.T) { diff --git a/bcm283x/streams.go b/bcm283x/streams.go index 0301e7e9..35ae1e9d 100644 --- a/bcm283x/streams.go +++ b/bcm283x/streams.go @@ -9,7 +9,7 @@ import ( "errors" "fmt" - "periph.io/x/conn/gpio/gpiostream" + "periph.io/x/conn/v3/gpio/gpiostream" ) // uint32ToBitLSBF packs a bit offset found on slice `d` (that is actually diff --git a/bcm283x/streams_test.go b/bcm283x/streams_test.go index 415e7527..ef997754 100644 --- a/bcm283x/streams_test.go +++ b/bcm283x/streams_test.go @@ -8,8 +8,8 @@ import ( "reflect" "testing" - "periph.io/x/conn/gpio/gpiostream" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/gpio/gpiostream" + "periph.io/x/conn/v3/physic" ) func TestRaster32Bits(t *testing.T) { diff --git a/bcm283x/timer.go b/bcm283x/timer.go index 7f7bc06e..13a40228 100644 --- a/bcm283x/timer.go +++ b/bcm283x/timer.go @@ -7,7 +7,7 @@ package bcm283x import ( "time" - "periph.io/x/host/cpu" + "periph.io/x/host/v3/cpu" ) // ReadTime returns the time on a monotonic 1Mhz clock (1µs resolution). diff --git a/beagle/beagle.go b/beagle/beagle.go index cf7c55f0..d4d57ec1 100644 --- a/beagle/beagle.go +++ b/beagle/beagle.go @@ -7,7 +7,7 @@ package beagle import ( "strings" - "periph.io/x/host/distro" + "periph.io/x/host/v3/distro" ) // Present returns true if the host is a BeagleBone. diff --git a/beagle/black/black.go b/beagle/black/black.go index b428cac4..8df1858f 100644 --- a/beagle/black/black.go +++ b/beagle/black/black.go @@ -21,7 +21,7 @@ package black import ( "strings" - "periph.io/x/host/distro" + "periph.io/x/host/v3/distro" ) // Present returns true if the host is a BeagleBone Black or BeagleBone Black diff --git a/beagle/bone/bone.go b/beagle/bone/bone.go index 63ee747a..c8929bbd 100644 --- a/beagle/bone/bone.go +++ b/beagle/bone/bone.go @@ -16,13 +16,13 @@ package bone import ( "errors" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/gpio" - "periph.io/x/conn/pin" - "periph.io/x/conn/pin/pinreg" - "periph.io/x/host/beagle/black" - "periph.io/x/host/beagle/green" - "periph.io/x/host/sysfs" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/pin" + "periph.io/x/conn/v3/pin/pinreg" + "periph.io/x/host/v3/beagle/black" + "periph.io/x/host/v3/beagle/green" + "periph.io/x/host/v3/sysfs" ) // TODO(maruel): Use specialized am335x or pru implementation once available. diff --git a/beagle/green/green.go b/beagle/green/green.go index d8bc2a38..79d18c96 100644 --- a/beagle/green/green.go +++ b/beagle/green/green.go @@ -20,12 +20,12 @@ import ( "errors" "strings" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/gpio" - "periph.io/x/conn/pin" - "periph.io/x/conn/pin/pinreg" - "periph.io/x/host/distro" - "periph.io/x/host/sysfs" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/pin" + "periph.io/x/conn/v3/pin/pinreg" + "periph.io/x/host/v3/distro" + "periph.io/x/host/v3/sysfs" ) // Headers found on BeagleBone Green. diff --git a/chip/chip.go b/chip/chip.go index 8c28a500..62bfbbb0 100644 --- a/chip/chip.go +++ b/chip/chip.go @@ -13,14 +13,14 @@ import ( "strconv" "strings" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/gpio" - "periph.io/x/conn/gpio/gpioreg" - "periph.io/x/conn/pin" - "periph.io/x/conn/pin/pinreg" - "periph.io/x/host/allwinner" - "periph.io/x/host/distro" - "periph.io/x/host/fs" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/gpio/gpioreg" + "periph.io/x/conn/v3/pin" + "periph.io/x/conn/v3/pin/pinreg" + "periph.io/x/host/v3/allwinner" + "periph.io/x/host/v3/distro" + "periph.io/x/host/v3/fs" ) // C.H.I.P. hardware pins. diff --git a/chip/chipsmoketest/chipsmoketest.go b/chip/chipsmoketest/chipsmoketest.go index ad9899cd..8b820350 100644 --- a/chip/chipsmoketest/chipsmoketest.go +++ b/chip/chipsmoketest/chipsmoketest.go @@ -13,11 +13,11 @@ import ( "sort" "strconv" - "periph.io/x/conn/gpio" - "periph.io/x/conn/gpio/gpioreg" - "periph.io/x/conn/pin/pinreg" - "periph.io/x/host/allwinner" - "periph.io/x/host/chip" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/gpio/gpioreg" + "periph.io/x/conn/v3/pin/pinreg" + "periph.io/x/host/v3/allwinner" + "periph.io/x/host/v3/chip" ) // SmokeTest is imported by periph-smoketest. diff --git a/cpu/cpu.go b/cpu/cpu.go index 75b338b7..6170c0f5 100644 --- a/cpu/cpu.go +++ b/cpu/cpu.go @@ -13,7 +13,7 @@ import ( "sync" "time" - "periph.io/x/host/fs" + "periph.io/x/host/v3/fs" ) // MaxSpeed returns the processor maximum speed in Hz. diff --git a/cpu/cpu_test.go b/cpu/cpu_test.go index 92b29e8c..1bb2f977 100644 --- a/cpu/cpu_test.go +++ b/cpu/cpu_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "periph.io/x/host/fs" + "periph.io/x/host/v3/fs" ) func TestMaxSpeed_fail(t *testing.T) { diff --git a/distro/distro_test.go b/distro/distro_test.go index df04dd87..4d03b009 100644 --- a/distro/distro_test.go +++ b/distro/distro_test.go @@ -9,7 +9,7 @@ import ( "reflect" "testing" - "periph.io/x/host/fs" + "periph.io/x/host/v3/fs" ) func TestSplitSemiColon(t *testing.T) { diff --git a/example_test.go b/example_test.go index 75ac8f0b..ed12c1ab 100644 --- a/example_test.go +++ b/example_test.go @@ -8,7 +8,7 @@ import ( "fmt" "log" - "periph.io/x/host" + "periph.io/x/host/v3" ) func ExampleInit() { diff --git a/go.mod b/go.mod index bf6185a0..97cc327f 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,9 @@ -module periph.io/x/host +// Copyright 2020 The Periph Authors. All rights reserved. +// Use of this source code is governed under the Apache License, Version 2.0 +// that can be found in the LICENSE file. + +module periph.io/x/host/v3 go 1.13 -require periph.io/x/conn v0.0.0-20201229155756-6ef5117d7267 +require periph.io/x/conn/v3 v3.0.0-20201230174115-729c1fe5c4ae diff --git a/go.sum b/go.sum index 33cf3aed..1799428e 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -periph.io/x/conn v0.0.0-20201229155756-6ef5117d7267 h1:hE3SnWytl/gaEF70qlWN5YREopMsvsJB4vLkWXZKZQg= -periph.io/x/conn v0.0.0-20201229155756-6ef5117d7267/go.mod h1:vZTobURVlmlSmjJ8DuzqbsJRp3uKBP7zNVLM1/4FsI0= +periph.io/x/conn/v3 v3.0.0-20201230174115-729c1fe5c4ae h1:wTeZT1kBDn3ddkpa9+bE3SXOlkD5JH7u0Cm2lqwHdkk= +periph.io/x/conn/v3 v3.0.0-20201230174115-729c1fe5c4ae/go.mod h1:3OD27w9YVa5DS97VsUxsPGzD9Qrm5Ny7cF5b6xMMIWg= diff --git a/host.go b/host.go index a23666bb..9540e5db 100644 --- a/host.go +++ b/host.go @@ -4,7 +4,7 @@ package host -import "periph.io/x/conn/driver/driverreg" +import "periph.io/x/conn/v3/driver/driverreg" // Init calls driverreg.Init() and returns it as-is. // diff --git a/host_arm.go b/host_arm.go index 7a4721be..843c446f 100644 --- a/host_arm.go +++ b/host_arm.go @@ -6,16 +6,16 @@ package host import ( // Make sure CPU and board drivers are registered. - _ "periph.io/x/host/allwinner" - _ "periph.io/x/host/am335x" - _ "periph.io/x/host/bcm283x" - _ "periph.io/x/host/beagle/bone" - _ "periph.io/x/host/beagle/green" - _ "periph.io/x/host/chip" - _ "periph.io/x/host/odroidc1" + _ "periph.io/x/host/v3/allwinner" + _ "periph.io/x/host/v3/am335x" + _ "periph.io/x/host/v3/bcm283x" + _ "periph.io/x/host/v3/beagle/bone" + _ "periph.io/x/host/v3/beagle/green" + _ "periph.io/x/host/v3/chip" + _ "periph.io/x/host/v3/odroidc1" // While this board is ARM64, it may run ARM 32 bits binaries so load it on // 32 bits builds too. - _ "periph.io/x/host/pine64" - _ "periph.io/x/host/rpi" + _ "periph.io/x/host/v3/pine64" + _ "periph.io/x/host/v3/rpi" ) diff --git a/host_arm64.go b/host_arm64.go index 4fc492a8..a4caebf3 100644 --- a/host_arm64.go +++ b/host_arm64.go @@ -6,8 +6,8 @@ package host import ( // Make sure CPU and board drivers are registered. - _ "periph.io/x/host/allwinner" - _ "periph.io/x/host/bcm283x" - _ "periph.io/x/host/pine64" - _ "periph.io/x/host/rpi" + _ "periph.io/x/host/v3/allwinner" + _ "periph.io/x/host/v3/bcm283x" + _ "periph.io/x/host/v3/pine64" + _ "periph.io/x/host/v3/rpi" ) diff --git a/host_linux.go b/host_linux.go index 73456559..9a569c1e 100644 --- a/host_linux.go +++ b/host_linux.go @@ -6,5 +6,5 @@ package host import ( // Make sure sysfs drivers are registered. - _ "periph.io/x/host/sysfs" + _ "periph.io/x/host/v3/sysfs" ) diff --git a/mt7688/driver.go b/mt7688/driver.go index b485f4be..7b72202d 100644 --- a/mt7688/driver.go +++ b/mt7688/driver.go @@ -8,7 +8,7 @@ package mt7688 import ( "errors" - "periph.io/x/host/sysfs" + "periph.io/x/host/v3/sysfs" ) // driverGPIO implements periph.Driver. diff --git a/mt7688/gpio.go b/mt7688/gpio.go index d5a3146c..0bc622dc 100644 --- a/mt7688/gpio.go +++ b/mt7688/gpio.go @@ -5,7 +5,7 @@ package mt7688 import ( - "periph.io/x/conn/pin" + "periph.io/x/conn/v3/pin" ) // All the pins supported by the CPU. diff --git a/mt7688/mt7688.go b/mt7688/mt7688.go index 608d3e07..c4bf3448 100644 --- a/mt7688/mt7688.go +++ b/mt7688/mt7688.go @@ -7,8 +7,8 @@ package mt7688 import ( "strings" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/host/distro" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/host/v3/distro" ) // Present returns true if a mt7688 processor is detected. diff --git a/mt7688/pin.go b/mt7688/pin.go index b2254ff2..2dc3711a 100644 --- a/mt7688/pin.go +++ b/mt7688/pin.go @@ -8,10 +8,10 @@ import ( "errors" "time" - "periph.io/x/conn/gpio" - "periph.io/x/conn/physic" - "periph.io/x/conn/pin" - "periph.io/x/host/sysfs" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/physic" + "periph.io/x/conn/v3/pin" + "periph.io/x/host/v3/sysfs" ) // function specifies the active functionality of a pin. The alternative diff --git a/netlink/onewire.go b/netlink/onewire.go index 3fa92688..324eacaa 100644 --- a/netlink/onewire.go +++ b/netlink/onewire.go @@ -10,9 +10,9 @@ import ( "fmt" "sync" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/onewire" - "periph.io/x/conn/onewire/onewirereg" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/onewire" + "periph.io/x/conn/v3/onewire/onewirereg" ) // New opens a 1-wire bus via its netlink interface as described at diff --git a/odroidc1/odroidc1.go b/odroidc1/odroidc1.go index b0bccf8d..6ea95099 100644 --- a/odroidc1/odroidc1.go +++ b/odroidc1/odroidc1.go @@ -9,13 +9,13 @@ import ( "strconv" "strings" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/gpio" - "periph.io/x/conn/gpio/gpioreg" - "periph.io/x/conn/pin" - "periph.io/x/conn/pin/pinreg" - "periph.io/x/host/distro" - "periph.io/x/host/sysfs" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/gpio/gpioreg" + "periph.io/x/conn/v3/pin" + "periph.io/x/conn/v3/pin/pinreg" + "periph.io/x/host/v3/distro" + "periph.io/x/host/v3/sysfs" ) // The J2 header is rPi compatible, except for the two analog pins and the 1.8V diff --git a/odroidc1/odroidc1smoketest/odroidc1smoketest.go b/odroidc1/odroidc1smoketest/odroidc1smoketest.go index e5285d89..6b44edeb 100644 --- a/odroidc1/odroidc1smoketest/odroidc1smoketest.go +++ b/odroidc1/odroidc1smoketest/odroidc1smoketest.go @@ -13,10 +13,10 @@ import ( "sort" "strconv" - "periph.io/x/conn/gpio" - "periph.io/x/conn/gpio/gpioreg" - "periph.io/x/conn/pin/pinreg" - "periph.io/x/host/odroidc1" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/gpio/gpioreg" + "periph.io/x/conn/v3/pin/pinreg" + "periph.io/x/host/v3/odroidc1" ) // SmokeTest is imported by periph-smoketest. diff --git a/pine64/pine64.go b/pine64/pine64.go index 1584d9dc..bfa05cef 100644 --- a/pine64/pine64.go +++ b/pine64/pine64.go @@ -8,11 +8,11 @@ import ( "errors" "strings" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/pin" - "periph.io/x/conn/pin/pinreg" - "periph.io/x/host/allwinner" - "periph.io/x/host/distro" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/pin" + "periph.io/x/conn/v3/pin/pinreg" + "periph.io/x/host/v3/allwinner" + "periph.io/x/host/v3/distro" ) // Present returns true if running on a Pine64 board. diff --git a/pmem/example_test.go b/pmem/example_test.go index ffa6760c..415dff42 100644 --- a/pmem/example_test.go +++ b/pmem/example_test.go @@ -7,7 +7,7 @@ package pmem_test import ( "log" - "periph.io/x/host/pmem" + "periph.io/x/host/v3/pmem" ) func ExampleMapAsPOD() { diff --git a/pmem/view.go b/pmem/view.go index 4a29c3f6..cd946970 100644 --- a/pmem/view.go +++ b/pmem/view.go @@ -12,7 +12,7 @@ import ( "sync" "unsafe" - "periph.io/x/host/fs" + "periph.io/x/host/v3/fs" ) // Slice can be transparently viewed as []byte, []uint32 or a struct. diff --git a/pmem/view_test.go b/pmem/view_test.go index 57b9fde4..45fdcb00 100644 --- a/pmem/view_test.go +++ b/pmem/view_test.go @@ -10,7 +10,7 @@ import ( "errors" "testing" - "periph.io/x/host/fs" + "periph.io/x/host/v3/fs" ) func TestSlice(t *testing.T) { diff --git a/pru/pru.go b/pru/pru.go index c5810aa7..a3ec6dab 100644 --- a/pru/pru.go +++ b/pru/pru.go @@ -7,7 +7,7 @@ package pru import ( "errors" - "periph.io/x/conn/driver/driverreg" + "periph.io/x/conn/v3/driver/driverreg" ) // Present returns true if an Texas Instrument PRU-ICSS processor is detected. diff --git a/rpi/rpi.go b/rpi/rpi.go index fbf2d569..238ec485 100644 --- a/rpi/rpi.go +++ b/rpi/rpi.go @@ -11,12 +11,12 @@ import ( "fmt" "os" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/gpio" - "periph.io/x/conn/pin" - "periph.io/x/conn/pin/pinreg" - "periph.io/x/host/bcm283x" - "periph.io/x/host/distro" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/pin" + "periph.io/x/conn/v3/pin/pinreg" + "periph.io/x/host/v3/bcm283x" + "periph.io/x/host/v3/distro" ) // Present returns true if running on a Raspberry Pi board. diff --git a/serial/serial.go b/serial/serial.go index 53e81a16..6abdd2d5 100644 --- a/serial/serial.go +++ b/serial/serial.go @@ -17,12 +17,12 @@ import ( "sync" "syscall" - "periph.io/x/conn" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/gpio" - "periph.io/x/conn/gpio/gpioreg" - "periph.io/x/conn/physic" - "periph.io/x/conn/uart" + "periph.io/x/conn/v3" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/gpio/gpioreg" + "periph.io/x/conn/v3/physic" + "periph.io/x/conn/v3/uart" ) // Enumerate returns the available serial buses as exposed by the OS. diff --git a/sysfs/example_test.go b/sysfs/example_test.go index 355ae9b6..4e9f4723 100644 --- a/sysfs/example_test.go +++ b/sysfs/example_test.go @@ -8,9 +8,9 @@ import ( "fmt" "log" - "periph.io/x/conn/gpio" - "periph.io/x/host" - "periph.io/x/host/sysfs" + "periph.io/x/conn/v3/gpio" + "periph.io/x/host/v3" + "periph.io/x/host/v3/sysfs" ) func ExampleLEDByName() { diff --git a/sysfs/gpio.go b/sysfs/gpio.go index e4fb923c..9894ab7e 100644 --- a/sysfs/gpio.go +++ b/sysfs/gpio.go @@ -14,13 +14,13 @@ import ( "sync" "time" - "periph.io/x/conn" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/gpio" - "periph.io/x/conn/gpio/gpioreg" - "periph.io/x/conn/physic" - "periph.io/x/conn/pin" - "periph.io/x/host/fs" + "periph.io/x/conn/v3" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/gpio/gpioreg" + "periph.io/x/conn/v3/physic" + "periph.io/x/conn/v3/pin" + "periph.io/x/host/v3/fs" ) // Pins is all the pins exported by GPIO sysfs. diff --git a/sysfs/gpio_test.go b/sysfs/gpio_test.go index 7503dac6..e8204a05 100644 --- a/sysfs/gpio_test.go +++ b/sysfs/gpio_test.go @@ -8,9 +8,9 @@ import ( "errors" "testing" - "periph.io/x/conn/gpio" - "periph.io/x/conn/physic" - "periph.io/x/conn/pin" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/physic" + "periph.io/x/conn/v3/pin" ) func TestPin_String(t *testing.T) { diff --git a/sysfs/i2c.go b/sysfs/i2c.go index 99e9deed..dfc4ff4a 100644 --- a/sysfs/i2c.go +++ b/sysfs/i2c.go @@ -15,12 +15,12 @@ import ( "sync" "unsafe" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/gpio" - "periph.io/x/conn/gpio/gpioreg" - "periph.io/x/conn/i2c" - "periph.io/x/conn/i2c/i2creg" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/gpio/gpioreg" + "periph.io/x/conn/v3/i2c" + "periph.io/x/conn/v3/i2c/i2creg" + "periph.io/x/conn/v3/physic" ) // I2CSetSpeedHook can be set by a driver to enable changing the I²C buses @@ -47,11 +47,11 @@ func I2CSetSpeedHook(h func(f physic.Frequency) error) error { // The resulting object is safe for concurent use. // // Do not use sysfs.NewI2C() directly as the package sysfs is providing a -// https://periph.io/x/conn/i2c Linux-specific implementation. +// https://periph.io/x/conn/v3/i2c Linux-specific implementation. // // periph.io works on many OSes! // -// Instead, use https://periph.io/x/conn/i2c/i2creg#Open. This permits +// Instead, use https://periph.io/x/conn/v3/i2c/i2creg#Open. This permits // it to work on all operating systems, or devices like I²C over USB. func NewI2C(busNumber int) (*I2C, error) { if isLinux { diff --git a/sysfs/i2c_test.go b/sysfs/i2c_test.go index b5f8dc79..ff59a649 100644 --- a/sysfs/i2c_test.go +++ b/sysfs/i2c_test.go @@ -7,8 +7,8 @@ package sysfs import ( "testing" - "periph.io/x/conn/i2c/i2creg" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/i2c/i2creg" + "periph.io/x/conn/v3/physic" ) func TestNewI2C(t *testing.T) { diff --git a/sysfs/led.go b/sysfs/led.go index 245231a7..f934a6e2 100644 --- a/sysfs/led.go +++ b/sysfs/led.go @@ -14,12 +14,12 @@ import ( "sync" "time" - "periph.io/x/conn" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/gpio" - "periph.io/x/conn/physic" - "periph.io/x/conn/pin" - "periph.io/x/host/fs" + "periph.io/x/conn/v3" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/physic" + "periph.io/x/conn/v3/pin" + "periph.io/x/host/v3/fs" ) // LEDs is all the leds discovered on this host via sysfs. diff --git a/sysfs/led_test.go b/sysfs/led_test.go index 8c33cfa0..48bbe844 100644 --- a/sysfs/led_test.go +++ b/sysfs/led_test.go @@ -7,8 +7,8 @@ package sysfs import ( "testing" - "periph.io/x/conn/gpio" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/physic" ) func TestLEDByName(t *testing.T) { diff --git a/sysfs/spi.go b/sysfs/spi.go index 5c915c5a..302c23ec 100644 --- a/sysfs/spi.go +++ b/sysfs/spi.go @@ -17,14 +17,14 @@ import ( "sync" "unsafe" - "periph.io/x/conn" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/gpio" - "periph.io/x/conn/gpio/gpioreg" - "periph.io/x/conn/physic" - "periph.io/x/conn/spi" - "periph.io/x/conn/spi/spireg" - "periph.io/x/host/fs" + "periph.io/x/conn/v3" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/gpio/gpioreg" + "periph.io/x/conn/v3/physic" + "periph.io/x/conn/v3/spi" + "periph.io/x/conn/v3/spi/spireg" + "periph.io/x/host/v3/fs" ) // NewSPI opens a SPI port via its devfs interface as described at @@ -36,7 +36,7 @@ import ( // busNumber is the bus number as exported by devfs. For example if the path is // /dev/spidev0.1, busNumber should be 0 and chipSelect should be 1. // -// It is recommended to use https://periph.io/x/conn/spi/spireg#Open +// It is recommended to use https://periph.io/x/conn/v3/spi/spireg#Open // instead of using NewSPI() directly as the package sysfs is providing a // Linux-specific implementation. periph.io works on many OSes! This permits // it to work on all operating systems, or devices like SPI over USB. diff --git a/sysfs/spi_test.go b/sysfs/spi_test.go index 9f0d1350..5399ca1b 100644 --- a/sysfs/spi_test.go +++ b/sysfs/spi_test.go @@ -9,10 +9,10 @@ import ( "io" "testing" - "periph.io/x/conn" - "periph.io/x/conn/gpio" - "periph.io/x/conn/physic" - "periph.io/x/conn/spi" + "periph.io/x/conn/v3" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/physic" + "periph.io/x/conn/v3/spi" ) func TestNewSPI(t *testing.T) { diff --git a/sysfs/sysfs.go b/sysfs/sysfs.go index a8ae61aa..dd37af9a 100644 --- a/sysfs/sysfs.go +++ b/sysfs/sysfs.go @@ -7,7 +7,7 @@ package sysfs import ( "io" - "periph.io/x/host/fs" + "periph.io/x/host/v3/fs" ) var ioctlOpen = ioctlOpenDefault diff --git a/sysfs/sysfs_test.go b/sysfs/sysfs_test.go index e91f504e..c7d506b8 100644 --- a/sysfs/sysfs_test.go +++ b/sysfs/sysfs_test.go @@ -8,7 +8,7 @@ import ( "errors" "io" - "periph.io/x/host/fs" + "periph.io/x/host/v3/fs" ) func init() { diff --git a/sysfs/sysfssmoketest/benchmark.go b/sysfs/sysfssmoketest/benchmark.go index 50d8f152..7dc08aa3 100644 --- a/sysfs/sysfssmoketest/benchmark.go +++ b/sysfs/sysfssmoketest/benchmark.go @@ -10,8 +10,8 @@ import ( "fmt" "sort" - "periph.io/x/conn/gpio" - "periph.io/x/host/sysfs" + "periph.io/x/conn/v3/gpio" + "periph.io/x/host/v3/sysfs" ) // Benchmark is imported by periph-smoketest. diff --git a/sysfs/sysfssmoketest/benchmark_gpio_support.go b/sysfs/sysfssmoketest/benchmark_gpio_support.go index fbe76a42..6dfce4c2 100644 --- a/sysfs/sysfssmoketest/benchmark_gpio_support.go +++ b/sysfs/sysfssmoketest/benchmark_gpio_support.go @@ -13,8 +13,8 @@ import ( "testing" "time" - "periph.io/x/conn/gpio" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/gpio" + "periph.io/x/conn/v3/physic" ) // runGPIOBenchmark runs the standardized GPIO benchmark for this specific diff --git a/sysfs/sysfssmoketest/benchmark_gpio_support_test.go b/sysfs/sysfssmoketest/benchmark_gpio_support_test.go index 6f482e7b..daddb80e 100644 --- a/sysfs/sysfssmoketest/benchmark_gpio_support_test.go +++ b/sysfs/sysfssmoketest/benchmark_gpio_support_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/physic" ) func TestToHz(t *testing.T) { diff --git a/sysfs/thermal_sensor.go b/sysfs/thermal_sensor.go index 67c58942..d5c6ac9f 100644 --- a/sysfs/thermal_sensor.go +++ b/sysfs/thermal_sensor.go @@ -14,9 +14,9 @@ import ( "sync" "time" - "periph.io/x/conn" - "periph.io/x/conn/driver/driverreg" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3" + "periph.io/x/conn/v3/driver/driverreg" + "periph.io/x/conn/v3/physic" ) // ThermalSensors is all the sensors discovered on this host via sysfs. It diff --git a/sysfs/thermal_sensor_test.go b/sysfs/thermal_sensor_test.go index 49999a63..7eaaf390 100644 --- a/sysfs/thermal_sensor_test.go +++ b/sysfs/thermal_sensor_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "periph.io/x/conn/physic" + "periph.io/x/conn/v3/physic" ) func TestThermalSensorByName_not_present(t *testing.T) { diff --git a/videocore/example_test.go b/videocore/example_test.go index 810cbdf8..9a6e9084 100644 --- a/videocore/example_test.go +++ b/videocore/example_test.go @@ -7,7 +7,7 @@ package videocore_test import ( "log" - "periph.io/x/host/videocore" + "periph.io/x/host/v3/videocore" ) func ExampleAlloc() { diff --git a/videocore/videocore.go b/videocore/videocore.go index aa67c852..d11eb0e5 100644 --- a/videocore/videocore.go +++ b/videocore/videocore.go @@ -20,8 +20,8 @@ import ( "sync" "unsafe" - "periph.io/x/host/fs" - "periph.io/x/host/pmem" + "periph.io/x/host/v3/fs" + "periph.io/x/host/v3/pmem" ) // Mem represents contiguous physically locked memory that was allocated by diff --git a/videocore/videocore_test.go b/videocore/videocore_test.go index 1fee768a..fb63c6ae 100644 --- a/videocore/videocore_test.go +++ b/videocore/videocore_test.go @@ -8,8 +8,8 @@ import ( "errors" "testing" - "periph.io/x/host/fs" - "periph.io/x/host/pmem" + "periph.io/x/host/v3/fs" + "periph.io/x/host/v3/pmem" ) func TestClose(t *testing.T) {