UART: actually return the pins, not just the module. We should do this for the other...
[sifive-blocks.git] / src / main / scala / devices / uart / UARTPeriphery.scala
index 05c4a33890e13280f646b40cd5f242ad599f82b6..58b1c9e779fe3564228f6f95169138a9ec63b0c2 100644 (file)
@@ -29,10 +29,10 @@ trait HasPeripheryUARTBundle {
     uarts.foreach { _.rxd := UInt(1) }
   }
 
-  def UARTtoGPIOPins(sync_stages: Int = 0): Seq[UARTGPIOPort] = uarts.map { u =>
-    val pin = Module(new UARTGPIOPort(sync_stages))
+  def UARTtoGPIOPins(syncStages: Int = 0): Seq[UARTPinsIO] = uarts.map { u =>
+    val pin = Module(new UARTGPIOPort(syncStages))
     pin.io.uart <> u
-    pin
+    pin.io.pins
   }
 }