Skip to content

Commit 17c4f52

Browse files
committed
Migrate to v3
Announcement to follow soon.
1 parent fc8f190 commit 17c4f52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+251
-247
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Documentation is at https://periph.io
66

7-
[![PkgGoDev](https://pkg.go.dev/badge/periph.io/x/host)](https://pkg.go.dev/periph.io/x/host)
7+
[![PkgGoDev](https://pkg.go.dev/badge/periph.io/x/host/v3)](https://pkg.go.dev/periph.io/x/host/v3)
88
[![Coverage
99
Status](https://codecov.io/gh/periph/host/graph/badge.svg)](https://codecov.io/gh/periph/host)
1010

@@ -22,9 +22,9 @@ package main
2222

2323
import (
2424
"time"
25-
"periph.io/x/conn/gpio"
26-
"periph.io/x/host"
27-
"periph.io/x/host/rpi"
25+
"periph.io/x/conn/v3/gpio"
26+
"periph.io/x/host/v3"
27+
"periph.io/x/host/v3/rpi"
2828
)
2929

3030
func main() {

allwinner/a20.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ package allwinner
1010
import (
1111
"strings"
1212

13-
"periph.io/x/conn/pin"
14-
"periph.io/x/host/sysfs"
13+
"periph.io/x/conn/v3/pin"
14+
"periph.io/x/host/v3/sysfs"
1515
)
1616

1717
// mappingA20 describes the mapping of the A20 processor gpios to their

allwinner/a64.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ package allwinner
1010
import (
1111
"strings"
1212

13-
"periph.io/x/conn/pin"
14-
"periph.io/x/host/sysfs"
13+
"periph.io/x/conn/v3/pin"
14+
"periph.io/x/host/v3/sysfs"
1515
)
1616

1717
// A64 specific pins.

allwinner/allwinnersmoketest/allwinnersmoketest.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import (
1515
"fmt"
1616
"time"
1717

18-
"periph.io/x/conn/gpio"
19-
"periph.io/x/host/allwinner"
20-
"periph.io/x/host/chip"
21-
"periph.io/x/host/pine64"
18+
"periph.io/x/conn/v3/gpio"
19+
"periph.io/x/host/v3/allwinner"
20+
"periph.io/x/host/v3/chip"
21+
"periph.io/x/host/v3/pine64"
2222
)
2323

2424
// SmokeTest is imported by periph-smoketest.

allwinner/allwinnersmoketest/benchmark.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"flag"
1010
"fmt"
1111

12-
"periph.io/x/conn/gpio"
13-
"periph.io/x/conn/gpio/gpioreg"
14-
"periph.io/x/host/allwinner"
12+
"periph.io/x/conn/v3/gpio"
13+
"periph.io/x/conn/v3/gpio/gpioreg"
14+
"periph.io/x/host/v3/allwinner"
1515
)
1616

1717
// Benchmark is imported by periph-smoketest.

allwinner/allwinnersmoketest/benchmark_fast_gpio_support.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ package allwinnersmoketest
1010
import (
1111
"testing"
1212

13-
"periph.io/x/conn/gpio"
13+
"periph.io/x/conn/v3/gpio"
1414
)
1515

1616
// runFastGPIOBenchmark runs the standardized GPIO benchmark for this specific

allwinner/allwinnersmoketest/benchmark_gpio_support.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"testing"
1414
"time"
1515

16-
"periph.io/x/conn/gpio"
17-
"periph.io/x/conn/physic"
16+
"periph.io/x/conn/v3/gpio"
17+
"periph.io/x/conn/v3/physic"
1818
)
1919

2020
// runGPIOBenchmark runs the standardized GPIO benchmark for this specific

allwinner/allwinnersmoketest/benchmark_gpio_support_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"testing"
99
"time"
1010

11-
"periph.io/x/conn/physic"
11+
"periph.io/x/conn/v3/physic"
1212
)
1313

1414
func TestToHz(t *testing.T) {

allwinner/detect.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
"sync"
1010

11-
"periph.io/x/host/distro"
11+
"periph.io/x/host/v3/distro"
1212
)
1313

1414
// Present detects whether the host CPU is an Allwinner CPU.

allwinner/dma.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"log"
2222
"os"
2323

24-
"periph.io/x/conn/driver/driverreg"
25-
"periph.io/x/host/pmem"
24+
"periph.io/x/conn/v3/driver/driverreg"
25+
"periph.io/x/host/v3/pmem"
2626
)
2727

2828
// dmaMap represents the DMA memory mapped CPU registers.

allwinner/gpio.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ import (
1616
"strings"
1717
"time"
1818

19-
"periph.io/x/conn/driver/driverreg"
20-
"periph.io/x/conn/gpio"
21-
"periph.io/x/conn/gpio/gpioreg"
22-
"periph.io/x/conn/physic"
23-
"periph.io/x/conn/pin"
24-
"periph.io/x/host/pmem"
25-
"periph.io/x/host/sysfs"
19+
"periph.io/x/conn/v3/driver/driverreg"
20+
"periph.io/x/conn/v3/gpio"
21+
"periph.io/x/conn/v3/gpio/gpioreg"
22+
"periph.io/x/conn/v3/physic"
23+
"periph.io/x/conn/v3/pin"
24+
"periph.io/x/host/v3/pmem"
25+
"periph.io/x/host/v3/sysfs"
2626
)
2727

2828
// List of all known pins. These global variables can be used directly.

allwinner/gpio_pl.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ import (
1313
"strings"
1414
"time"
1515

16-
"periph.io/x/conn/driver/driverreg"
17-
"periph.io/x/conn/gpio"
18-
"periph.io/x/conn/gpio/gpioreg"
19-
"periph.io/x/conn/physic"
20-
"periph.io/x/conn/pin"
21-
"periph.io/x/host/pmem"
22-
"periph.io/x/host/sysfs"
16+
"periph.io/x/conn/v3/driver/driverreg"
17+
"periph.io/x/conn/v3/gpio"
18+
"periph.io/x/conn/v3/gpio/gpioreg"
19+
"periph.io/x/conn/v3/physic"
20+
"periph.io/x/conn/v3/pin"
21+
"periph.io/x/host/v3/pmem"
22+
"periph.io/x/host/v3/sysfs"
2323
)
2424

2525
// All the pins in the PL group.

allwinner/r8.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ package allwinner
1010
import (
1111
"strings"
1212

13-
"periph.io/x/conn/pin"
14-
"periph.io/x/host/sysfs"
13+
"periph.io/x/conn/v3/pin"
14+
"periph.io/x/host/v3/sysfs"
1515
)
1616

1717
// R8 specific pins.

allwinner/timer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package allwinner
77
import (
88
"time"
99

10-
"periph.io/x/host/cpu"
10+
"periph.io/x/host/v3/cpu"
1111
)
1212

1313
// ReadTime returns the time on a monotonic timer.

am335x/am335x.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"errors"
99
"strings"
1010

11-
"periph.io/x/conn/driver/driverreg"
12-
"periph.io/x/host/distro"
11+
"periph.io/x/conn/v3/driver/driverreg"
12+
"periph.io/x/host/v3/distro"
1313
)
1414

1515
// Present returns true if a TM AM335x processor is detected.

bcm283x/bcm283x_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package bcm283x
66

7-
import "periph.io/x/host/fs"
7+
import "periph.io/x/host/v3/fs"
88

99
func init() {
1010
fs.Inhibit()

bcm283x/bcm283xsmoketest/bcm283xsmoketest.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ import (
1616
"regexp"
1717
"time"
1818

19-
"periph.io/x/conn/gpio"
20-
"periph.io/x/conn/gpio/gpioreg"
21-
"periph.io/x/conn/gpio/gpiostream"
22-
"periph.io/x/conn/physic"
23-
"periph.io/x/conn/pin"
24-
"periph.io/x/host/bcm283x"
19+
"periph.io/x/conn/v3/gpio"
20+
"periph.io/x/conn/v3/gpio/gpioreg"
21+
"periph.io/x/conn/v3/gpio/gpiostream"
22+
"periph.io/x/conn/v3/physic"
23+
"periph.io/x/conn/v3/pin"
24+
"periph.io/x/host/v3/bcm283x"
2525
)
2626

2727
// SmokeTest is imported by periph-smoketest.

bcm283x/bcm283xsmoketest/benchmark.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"flag"
1010
"fmt"
1111

12-
"periph.io/x/conn/gpio"
13-
"periph.io/x/conn/gpio/gpioreg"
14-
"periph.io/x/host/bcm283x"
12+
"periph.io/x/conn/v3/gpio"
13+
"periph.io/x/conn/v3/gpio/gpioreg"
14+
"periph.io/x/host/v3/bcm283x"
1515
)
1616

1717
// Benchmark is imported by periph-smoketest.

bcm283x/bcm283xsmoketest/benchmark_fast_gpio_support.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ package bcm283xsmoketest
1010
import (
1111
"testing"
1212

13-
"periph.io/x/conn/gpio"
13+
"periph.io/x/conn/v3/gpio"
1414
)
1515

1616
// runFastGPIOBenchmark runs the standardized GPIO benchmark for this specific

bcm283x/bcm283xsmoketest/benchmark_gpio_support.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"testing"
1414
"time"
1515

16-
"periph.io/x/conn/gpio"
17-
"periph.io/x/conn/physic"
16+
"periph.io/x/conn/v3/gpio"
17+
"periph.io/x/conn/v3/physic"
1818
)
1919

2020
// runGPIOBenchmark runs the standardized GPIO benchmark for this specific

bcm283x/bcm283xsmoketest/benchmark_gpio_support_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"testing"
99
"time"
1010

11-
"periph.io/x/conn/physic"
11+
"periph.io/x/conn/v3/physic"
1212
)
1313

1414
func TestToHz(t *testing.T) {

bcm283x/clock.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"strings"
1111
"time"
1212

13-
"periph.io/x/conn/physic"
13+
"periph.io/x/conn/v3/physic"
1414
)
1515

1616
// errClockRegister is returned in a situation where the clock memory is not

bcm283x/clock_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"fmt"
99
"testing"
1010

11-
"periph.io/x/conn/physic"
11+
"periph.io/x/conn/v3/physic"
1212
)
1313

1414
func TestClockDiv_String(t *testing.T) {

bcm283x/dma.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ import (
7070
"strings"
7171
"time"
7272

73-
"periph.io/x/conn/driver/driverreg"
74-
"periph.io/x/conn/gpio/gpiostream"
75-
"periph.io/x/conn/physic"
76-
"periph.io/x/host/pmem"
77-
"periph.io/x/host/videocore"
73+
"periph.io/x/conn/v3/driver/driverreg"
74+
"periph.io/x/conn/v3/gpio/gpiostream"
75+
"periph.io/x/conn/v3/physic"
76+
"periph.io/x/host/v3/pmem"
77+
"periph.io/x/host/v3/videocore"
7878
)
7979

8080
const (

bcm283x/dma_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"reflect"
99
"testing"
1010

11-
"periph.io/x/conn/gpio/gpiostream"
12-
"periph.io/x/conn/physic"
11+
"periph.io/x/conn/v3/gpio/gpiostream"
12+
"periph.io/x/conn/v3/physic"
1313
)
1414

1515
func TestDmaStatus_String(t *testing.T) {

bcm283x/example_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"fmt"
99
"log"
1010

11-
"periph.io/x/conn/physic"
12-
"periph.io/x/host"
13-
"periph.io/x/host/bcm283x"
11+
"periph.io/x/conn/v3/physic"
12+
"periph.io/x/host/v3"
13+
"periph.io/x/host/v3/bcm283x"
1414
)
1515

1616
func ExamplePinsRead0To31() {

bcm283x/gpio.go

+10-10
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ import (
1212
"strings"
1313
"time"
1414

15-
"periph.io/x/conn/driver/driverreg"
16-
"periph.io/x/conn/gpio"
17-
"periph.io/x/conn/gpio/gpioreg"
18-
"periph.io/x/conn/gpio/gpiostream"
19-
"periph.io/x/conn/physic"
20-
"periph.io/x/conn/pin"
21-
"periph.io/x/host/distro"
22-
"periph.io/x/host/pmem"
23-
"periph.io/x/host/sysfs"
24-
"periph.io/x/host/videocore"
15+
"periph.io/x/conn/v3/driver/driverreg"
16+
"periph.io/x/conn/v3/gpio"
17+
"periph.io/x/conn/v3/gpio/gpioreg"
18+
"periph.io/x/conn/v3/gpio/gpiostream"
19+
"periph.io/x/conn/v3/physic"
20+
"periph.io/x/conn/v3/pin"
21+
"periph.io/x/host/v3/distro"
22+
"periph.io/x/host/v3/pmem"
23+
"periph.io/x/host/v3/sysfs"
24+
"periph.io/x/host/v3/videocore"
2525
)
2626

2727
// All the pins supported by the CPU.

bcm283x/gpio_test.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ import (
88
"reflect"
99
"testing"
1010

11-
"periph.io/x/conn/gpio"
12-
"periph.io/x/conn/gpio/gpiostream"
13-
"periph.io/x/conn/i2c"
14-
"periph.io/x/conn/physic"
15-
"periph.io/x/conn/pin"
16-
"periph.io/x/conn/spi"
17-
"periph.io/x/conn/uart"
18-
"periph.io/x/host/pmem"
19-
"periph.io/x/host/videocore"
11+
"periph.io/x/conn/v3/gpio"
12+
"periph.io/x/conn/v3/gpio/gpiostream"
13+
"periph.io/x/conn/v3/i2c"
14+
"periph.io/x/conn/v3/physic"
15+
"periph.io/x/conn/v3/pin"
16+
"periph.io/x/conn/v3/spi"
17+
"periph.io/x/conn/v3/uart"
18+
"periph.io/x/host/v3/pmem"
19+
"periph.io/x/host/v3/videocore"
2020
)
2121

2222
func TestPresent(t *testing.T) {

bcm283x/pcm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"fmt"
1212
"time"
1313

14-
"periph.io/x/conn/physic"
14+
"periph.io/x/conn/v3/physic"
1515
)
1616

1717
type pcmCS uint32

bcm283x/pwm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"fmt"
1010
"time"
1111

12-
"periph.io/x/conn/physic"
12+
"periph.io/x/conn/v3/physic"
1313
)
1414

1515
// PWENi is used to enable/disable the corresponding channel. Setting this bit

0 commit comments

Comments
 (0)