1
0

Merge pull request #42 from sifive/enhanced_to_base_pin

pinctrl: Add the ability to convert EnhancedPin to BasePin
This commit is contained in:
Megan Wachs 2017-10-11 06:43:41 -07:00 committed by GitHub
commit e6da80733e

View File

@ -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
}
} }