updated dependencies
This commit is contained in:
1 parent
6fa18d855d
commit
a97f45ba92
5 files changed
+7
-5
No files matched your search
+1
-1
@@ -483,7 +483,7 @@ func (p *Pin) setFunction(f function) {
|
||||
drvGPIO.gpioMemory.groups[p.group].cfg[off] |= mask
|
||||
drvGPIO.gpioMemory.groups[p.group].cfg[off] &^= v
|
||||
if p.function() != f {
|
||||
fmt.Printf("Expected %d to equals %d \n", p.function(), f)
|
||||
fmt.Printf("Pin number %d. Pin name %s.\n Expected %d to equals %d \n", p.Number(), p.Name(), p.function(), f)
|
||||
panic(f)
|
||||
}
|
||||
}
|
||||
|
||||
+2
@@ -17,6 +17,8 @@ import (
|
||||
|
||||
// mappingH6 describes the mapping of the H5 processor gpios to their
|
||||
// alternate functions.
|
||||
// According to https://linux-sunxi.org/H616 H616 and H618 are the same.
|
||||
// allwinner marketing team seems to disagree.
|
||||
//
|
||||
// It omits the in & out functions which are available on all gpio.
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user