X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmain%2Fscala%2Fdevices%2Fspi%2FSPIPins.scala;h=cad5e0f3c8f6c18e3aeed683d57d61d1c8f1e160;hb=baccd5ada2ab54381d9f4c75a3e3e72f39b2bcef;hp=48c302070c1fe0a882fa49b6b3e97f2aacd53fc9;hpb=03be9aba67b185b5454e9013901e6f873f62ac9d;p=sifive-blocks.git diff --git a/src/main/scala/devices/spi/SPIPins.scala b/src/main/scala/devices/spi/SPIPins.scala index 48c3020..cad5e0f 100644 --- a/src/main/scala/devices/spi/SPIPins.scala +++ b/src/main/scala/devices/spi/SPIPins.scala @@ -4,13 +4,13 @@ package sifive.blocks.devices.spi import Chisel._ import sifive.blocks.devices.gpio.{GPIOPin, GPIOOutputPinCtrl, GPIOInputPinCtrl} -class SPIPinsIO(c: SPIConfigBase) extends SPIBundle(c) { +class SPIPinsIO(c: SPIParamsBase) extends SPIBundle(c) { val sck = new GPIOPin val dq = Vec(4, new GPIOPin) val cs = Vec(c.csWidth, new GPIOPin) } -class SPIGPIOPort(c: SPIConfigBase, syncStages: Int = 0, driveStrength: Bool = Bool(false)) extends Module { +class SPIGPIOPort(c: SPIParamsBase, syncStages: Int = 0, driveStrength: Bool = Bool(false)) extends Module { val io = new SPIBundle(c) { val spi = new SPIPortIO(c).flip val pins = new SPIPinsIO(c)