pinctrl: Add the ability to convert EnhancedPin to BasePin
This commit is contained in:
parent
e2695500cd
commit
94f8c1705d
@ -100,4 +100,11 @@ class EnhancedPin extends Pin() {
|
|||||||
this.o.ds := ds
|
this.o.ds := ds
|
||||||
this.o.ie := ie
|
this.o.ie := ie
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def toBasePin(): BasePin = {
|
||||||
|
|
||||||
|
val base_pin = Wire(new BasePin())
|
||||||
|
base_pin <> this
|
||||||
|
base_pin
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user