From 909f0234875135f66d3955a9d114a8659bd9b4f3 Mon Sep 17 00:00:00 2001 From: Asherah Connor Date: Sun, 2 Jun 2024 17:28:58 +0300 Subject: [PATCH] resource: prefer Bool for clocks that we don't use directly. --- src/main/scala/ee/hrzn/chryse/platform/resource/SPI.scala | 2 +- src/main/scala/ee/hrzn/chryse/platform/resource/SPIOLED.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/ee/hrzn/chryse/platform/resource/SPI.scala b/src/main/scala/ee/hrzn/chryse/platform/resource/SPI.scala index bb270ba..c1c6491 100644 --- a/src/main/scala/ee/hrzn/chryse/platform/resource/SPI.scala +++ b/src/main/scala/ee/hrzn/chryse/platform/resource/SPI.scala @@ -25,7 +25,7 @@ class SPI extends ResourceBase { // TODO: DSPI, QSPI val cs = ResourceData(Output(Bool()), invert = true) // permitted to be unset - val clock = ResourceData(Output(Clock())) + val clock = ResourceData(Output(Bool())) val copi = ResourceData(Output(Bool())) val cipo = ResourceData(Input(Bool())) val wp = ResourceData(Output(Bool()), invert = true) // permitted to be unset diff --git a/src/main/scala/ee/hrzn/chryse/platform/resource/SPIOLED.scala b/src/main/scala/ee/hrzn/chryse/platform/resource/SPIOLED.scala index 7e23766..34bf651 100644 --- a/src/main/scala/ee/hrzn/chryse/platform/resource/SPIOLED.scala +++ b/src/main/scala/ee/hrzn/chryse/platform/resource/SPIOLED.scala @@ -27,7 +27,7 @@ class SPIOLED extends ResourceBase { // // XXX: I don't think having this and SPI and etc. are all particularly necessary/helpful. val cs = ResourceData(Output(Bool()), invert = true) // permitted to be unset - val clock = ResourceData(Output(Clock())) + val clock = ResourceData(Output(Bool())) val copi = ResourceData(Output(Bool())) val cipo = ResourceData(Input(Bool())) // permitted to be unset val dc = ResourceData(Output(Bool()), invert = true)