projects
/
sifive-blocks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b06b80d
)
UART: actually return the pins, not just the module. We should do this for the other...
author
Megan Wachs
<megan@sifive.com>
Tue, 13 Jun 2017 01:08:35 +0000
(18:08 -0700)
committer
Megan Wachs
<megan@sifive.com>
Tue, 13 Jun 2017 01:08:35 +0000
(18:08 -0700)
src/main/scala/devices/uart/UARTPeriphery.scala
patch
|
blob
|
history
diff --git
a/src/main/scala/devices/uart/UARTPeriphery.scala
b/src/main/scala/devices/uart/UARTPeriphery.scala
index 1f8011ee5e6cb8967689a01a46db5d3984495409..58b1c9e779fe3564228f6f95169138a9ec63b0c2 100644
(file)
--- a/
src/main/scala/devices/uart/UARTPeriphery.scala
+++ b/
src/main/scala/devices/uart/UARTPeriphery.scala
@@
-29,10
+29,10
@@
trait HasPeripheryUARTBundle {
uarts.foreach { _.rxd := UInt(1) }
}
- def UARTtoGPIOPins(syncStages: Int = 0): Seq[UART
GPIOPort
] = uarts.map { u =>
+ def UARTtoGPIOPins(syncStages: Int = 0): Seq[UART
PinsIO
] = uarts.map { u =>
val pin = Module(new UARTGPIOPort(syncStages))
pin.io.uart <> u
- pin
+ pin
.io.pins
}
}