From b3f656affe1344320523311c7ca8db64342bda5c Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Mon, 12 Jun 2017 18:08:35 -0700 Subject: [PATCH] UART: actually return the pins, not just the module. We should do this for the other peripherals as well --- src/main/scala/devices/uart/UARTPeriphery.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/devices/uart/UARTPeriphery.scala b/src/main/scala/devices/uart/UARTPeriphery.scala index 1f8011e..58b1c9e 100644 --- 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[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 } }