UART: actually return the pins, not just the module. We should do this for the other peripherals as well
This commit is contained in:
parent
b06b80dccd
commit
b3f656affe
@ -29,10 +29,10 @@ trait HasPeripheryUARTBundle {
|
|||||||
uarts.foreach { _.rxd := UInt(1) }
|
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))
|
val pin = Module(new UARTGPIOPort(syncStages))
|
||||||
pin.io.uart <> u
|
pin.io.uart <> u
|
||||||
pin
|
pin.io.pins
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user