updated dependencies
This commit is contained in:
1 parent
06a1718040
commit
505dc423aa
4 files changed
+9
-5
No files matched your search
@@ -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.20240731010218-bb162e3d8cce
|
||||
replace periph.io/x/host/v3 v3.8.2 => github.com/didiercrunch/host/v3 v3.8.3-0.20240731015600-5fb56754a262
|
||||
|
||||
require (
|
||||
periph.io/x/conn/v3 v3.7.0
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
github.com/didiercrunch/host/v3 v3.8.3-0.20240731010218-bb162e3d8cce h1:LhrUd2daNpvyvD52RIGqZz2RbmrxFqiuditM52WhyT0=
|
||||
github.com/didiercrunch/host/v3 v3.8.3-0.20240731010218-bb162e3d8cce/go.mod h1:yFL76AesNHR68PboofSWYaQTKmvPXsQH2Apvp/ls/K4=
|
||||
github.com/didiercrunch/host/v3 v3.8.3-0.20240731015600-5fb56754a262 h1:571+DPzCLa51Ulra0lbJnSdmYCKDjhVO54X3SwZMzTk=
|
||||
github.com/didiercrunch/host/v3 v3.8.3-0.20240731015600-5fb56754a262/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=
|
||||
|
||||
Vendored
+1
-1
@@ -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.20240731010218-bb162e3d8cce
|
||||
# periph.io/x/host/v3 v3.8.2 => github.com/didiercrunch/host/v3 v3.8.3-0.20240731015600-5fb56754a262
|
||||
## explicit; go 1.20
|
||||
periph.io/x/host/v3
|
||||
periph.io/x/host/v3/allwinner
|
||||
|
||||
+5
-1
@@ -1051,7 +1051,7 @@ func (d *driverGPIO) Init() (bool, error) {
|
||||
}
|
||||
|
||||
// gpioBaseAddr is the physical base address of the GPIO registers.
|
||||
gpioBaseAddr := uint32(getBaseAddress())
|
||||
gpioBaseAddr := uint32(getBaseAddressDidier())
|
||||
if err := pmem.MapAsPOD(uint64(gpioBaseAddr), &d.gpioMemory); err != nil {
|
||||
if os.IsPermission(err) {
|
||||
return true, fmt.Errorf("need more access, try as root: %v", err)
|
||||
@@ -1091,6 +1091,10 @@ func getBaseAddress() uint64 {
|
||||
return base2
|
||||
}
|
||||
|
||||
func getBaseAddressDidier() uint64 {
|
||||
return uint64(0x300b000)
|
||||
}
|
||||
|
||||
var drvGPIO driverGPIO
|
||||
|
||||
// Ensure that the various structs implement the interfaces they're supposed to.
|
||||
|
||||
Reference in new issue
Block a user