updated dependencies

This commit is contained in:
didier committed 2024-07-30 21:57:36 -04:00
1 parent 06a1718040
commit 505dc423aa
4 files changed
+9 -5

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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.