updated dependencies
This commit is contained in:
1 parent
06a1718040
commit
505dc423aa
4 files changed
+9
-5
No files matched your search
+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