From fb5f6a0d85706430a3ba697be9c7bbda126e6126 Mon Sep 17 00:00:00 2001 From: didier amyot Date: Sat, 3 Aug 2024 21:12:40 -0400 Subject: [PATCH] updated dependencies --- go.mod | 2 +- go.sum | 4 +- orangefork/orangefork.go | 4 -- vendor/modules.txt | 2 +- .../periph.io/x/host/v3/allwinner/detect.go | 4 -- vendor/periph.io/x/host/v3/allwinner/gpio.go | 53 ++------------ vendor/periph.io/x/host/v3/allwinner/h6.go | 69 +++++++++++-------- vendor/periph.io/x/host/v3/distro/devtree.go | 2 - vendor/periph.io/x/host/v3/distro/distro.go | 7 -- 9 files changed, 52 insertions(+), 95 deletions(-) diff --git a/go.mod b/go.mod index 9c99ae4..5b5aa59 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module go-orange go 1.22 -replace periph.io/x/host/v3 v3.8.2 => github.com/didiercrunch/host/v3 v3.8.3-0.20240731020403-7fe82b3432d5 +replace periph.io/x/host/v3 v3.8.2 => github.com/didiercrunch/host/v3 v3.8.3-0.20240804011140-a6ce90fa3ccf require ( periph.io/x/conn/v3 v3.7.0 diff --git a/go.sum b/go.sum index ac500dc..fa82832 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/didiercrunch/host/v3 v3.8.3-0.20240731020403-7fe82b3432d5 h1:sH6pH2bxUcJuJuPjAT4cfYQoT3F9OZfCC5x+Z1USgrw= -github.com/didiercrunch/host/v3 v3.8.3-0.20240731020403-7fe82b3432d5/go.mod h1:yFL76AesNHR68PboofSWYaQTKmvPXsQH2Apvp/ls/K4= +github.com/didiercrunch/host/v3 v3.8.3-0.20240804011140-a6ce90fa3ccf h1:66BDi2FDDzhPPu79j+HyKgrk7nO19Wa4tTOjZat3ITc= +github.com/didiercrunch/host/v3 v3.8.3-0.20240804011140-a6ce90fa3ccf/go.mod h1:yFL76AesNHR68PboofSWYaQTKmvPXsQH2Apvp/ls/K4= github.com/jonboulle/clockwork v0.3.0 h1:9BSCMi8C+0qdApAp4auwX0RkLGUjs956h0EkuQymUhg= github.com/jonboulle/clockwork v0.3.0/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= periph.io/x/conn/v3 v3.7.0 h1:f1EXLn4pkf7AEWwkol2gilCNZ0ElY+bxS4WE2PQXfrA= diff --git a/orangefork/orangefork.go b/orangefork/orangefork.go index 44dedb1..13f0dd0 100644 --- a/orangefork/orangefork.go +++ b/orangefork/orangefork.go @@ -24,10 +24,6 @@ func Present() bool { return false } -const ( - boardZero string = "Orange Pi Zero" // + LTS (H2/H3 have identical pinouts) -) - var ( PC1_5 gpio.PinIO = allwinner.PC5 PC1_6 gpio.PinIO = allwinner.PC6 diff --git a/vendor/modules.txt b/vendor/modules.txt index a9712c8..8763ff3 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -13,7 +13,7 @@ periph.io/x/conn/v3/pin periph.io/x/conn/v3/pin/pinreg periph.io/x/conn/v3/spi periph.io/x/conn/v3/spi/spireg -# periph.io/x/host/v3 v3.8.2 => github.com/didiercrunch/host/v3 v3.8.3-0.20240731020403-7fe82b3432d5 +# periph.io/x/host/v3 v3.8.2 => github.com/didiercrunch/host/v3 v3.8.3-0.20240804011140-a6ce90fa3ccf ## explicit; go 1.20 periph.io/x/host/v3 periph.io/x/host/v3/allwinner diff --git a/vendor/periph.io/x/host/v3/allwinner/detect.go b/vendor/periph.io/x/host/v3/allwinner/detect.go index 66356ef..13fde23 100644 --- a/vendor/periph.io/x/host/v3/allwinner/detect.go +++ b/vendor/periph.io/x/host/v3/allwinner/detect.go @@ -5,7 +5,6 @@ package allwinner import ( - "fmt" "strings" "sync" @@ -42,7 +41,6 @@ func IsA20() bool { // It looks for the string "sun50iw1p1" in /proc/device-tree/compatible. func IsA64() bool { detection.do() - fmt.Printf("IsA64? %t\n", detection.isA64) return detection.isA64 } @@ -98,7 +96,6 @@ func (d *detectionS) do() { d.done = true if isArm { for _, c := range distro.DTCompatible() { - fmt.Println("distro >>> " + c) if strings.Contains(c, "sun50iw1p1") { d.isA64 = true } @@ -117,7 +114,6 @@ func (d *detectionS) do() { d.isH5 = true } if strings.Contains(c, "sun50i-h6") { - fmt.Println("isH6 detected") d.isH6 = true } } diff --git a/vendor/periph.io/x/host/v3/allwinner/gpio.go b/vendor/periph.io/x/host/v3/allwinner/gpio.go index 01a6cb0..00aa9fa 100644 --- a/vendor/periph.io/x/host/v3/allwinner/gpio.go +++ b/vendor/periph.io/x/host/v3/allwinner/gpio.go @@ -11,7 +11,6 @@ import ( "errors" "fmt" "os" - "path" "strconv" "strings" "time" @@ -309,10 +308,8 @@ func (p *Pin) Read() gpio.Level { // // This function is very fast. func (p *Pin) FastRead() gpio.Level { - - foo := drvGPIO.gpioMemory.groups[p.group].data - fmt.Printf("Group value is: %d", foo) - return gpio.Level(foo&(1<