UART: actually return the pins, not just the module. We should do this for the other...
authorMegan Wachs <megan@sifive.com>
Tue, 13 Jun 2017 01:08:35 +0000 (18:08 -0700)
committerMegan Wachs <megan@sifive.com>
Tue, 13 Jun 2017 01:08:35 +0000 (18:08 -0700)
src/main/scala/devices/uart/UARTPeriphery.scala

index 1f8011ee5e6cb8967689a01a46db5d3984495409..58b1c9e779fe3564228f6f95169138a9ec63b0c2 100644 (file)
@@ -29,10 +29,10 @@ trait HasPeripheryUARTBundle {
     uarts.foreach { _.rxd := UInt(1) }
   }
 
-  def UARTtoGPIOPins(syncStages: Int = 0): Seq[UARTGPIOPort] = uarts.map { u =>
+  def UARTtoGPIOPins(syncStages: Int = 0): Seq[UARTPinsIO] = uarts.map { u =>
     val pin = Module(new UARTGPIOPort(syncStages))
     pin.io.uart <> u
-    pin
+    pin.io.pins
   }
 }