diff --git a/src/main/scala/ee/hrzn/chryse/platform/resource/Button.scala b/src/main/scala/ee/hrzn/chryse/platform/resource/Button.scala index b83e8a6..71a9043 100644 --- a/src/main/scala/ee/hrzn/chryse/platform/resource/Button.scala +++ b/src/main/scala/ee/hrzn/chryse/platform/resource/Button.scala @@ -4,7 +4,7 @@ import chisel3._ class Button extends ResourceData[Bool](Input(Bool())) - with ResourceDataUserInvertible[Bool] {} + with ResourceDataUserInvertible {} object Button { def apply() = new Button diff --git a/src/main/scala/ee/hrzn/chryse/platform/resource/LED.scala b/src/main/scala/ee/hrzn/chryse/platform/resource/LED.scala index a26049c..13bc164 100644 --- a/src/main/scala/ee/hrzn/chryse/platform/resource/LED.scala +++ b/src/main/scala/ee/hrzn/chryse/platform/resource/LED.scala @@ -4,7 +4,7 @@ import chisel3._ class LED extends ResourceData[Bool](Output(Bool())) - with ResourceDataUserInvertible[Bool] {} + with ResourceDataUserInvertible {} object LED { def apply() = new LED diff --git a/src/main/scala/ee/hrzn/chryse/platform/resource/ResourceData.scala b/src/main/scala/ee/hrzn/chryse/platform/resource/ResourceData.scala index d9f3dfa..e06f8e8 100644 --- a/src/main/scala/ee/hrzn/chryse/platform/resource/ResourceData.scala +++ b/src/main/scala/ee/hrzn/chryse/platform/resource/ResourceData.scala @@ -6,7 +6,7 @@ import ee.hrzn.chryse.chisel.DirectionOf import scala.language.implicitConversions -trait ResourceDataUserInvertible[HW <: Data] extends ResourceData[HW] { +trait ResourceDataUserInvertible { this: ResourceData[_] => def inverted: this.type = { _invert = true this