X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmain%2Fscala%2Fdevices%2Fpwm%2FPWMPeriphery.scala;h=d22de54db38ef82091e55e0600ba34e696c858c3;hb=8bfda688581488468611dbc46c750fd0910a6e5a;hp=7b5989661e1b472203a904a7f4499a40118319ba;hpb=b3f656affe1344320523311c7ca8db64342bda5c;p=sifive-blocks.git diff --git a/src/main/scala/devices/pwm/PWMPeriphery.scala b/src/main/scala/devices/pwm/PWMPeriphery.scala index 7b59896..d22de54 100644 --- a/src/main/scala/devices/pwm/PWMPeriphery.scala +++ b/src/main/scala/devices/pwm/PWMPeriphery.scala @@ -43,10 +43,10 @@ trait HasPeripheryPWM extends HasSystemNetworks { trait HasPeripheryPWMBundle { val pwms: HeterogeneousBag[PWMPortIO] - def PWMtoGPIOPins(dummy: Int = 1): Seq[PWMGPIOPort] = pwms.map { p => - val pin = Module(new PWMGPIOPort(p.c)) - pin.io.pwm <> p - pin + def PWMtoGPIOPins(dummy: Int = 1): Seq[PWMPinsIO] = pwms.map { p => + val pins = Module(new PWMGPIOPort(p.c)) + pins.io.pwm <> p + pins.io.pins } }