Skip to content
This repository was archived by the owner on Jun 16, 2024. It is now read-only.

Commit 909f023

Browse files
committed
resource: prefer Bool for clocks that we don't use directly.
1 parent 7d8d2a3 commit 909f023

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/scala/ee/hrzn/chryse/platform/resource/SPI.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class SPI extends ResourceBase {
2525
// TODO: DSPI, QSPI
2626

2727
val cs = ResourceData(Output(Bool()), invert = true) // permitted to be unset
28-
val clock = ResourceData(Output(Clock()))
28+
val clock = ResourceData(Output(Bool()))
2929
val copi = ResourceData(Output(Bool()))
3030
val cipo = ResourceData(Input(Bool()))
3131
val wp = ResourceData(Output(Bool()), invert = true) // permitted to be unset

src/main/scala/ee/hrzn/chryse/platform/resource/SPIOLED.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class SPIOLED extends ResourceBase {
2727
//
2828
// XXX: I don't think having this and SPI and etc. are all particularly necessary/helpful.
2929
val cs = ResourceData(Output(Bool()), invert = true) // permitted to be unset
30-
val clock = ResourceData(Output(Clock()))
30+
val clock = ResourceData(Output(Bool()))
3131
val copi = ResourceData(Output(Bool()))
3232
val cipo = ResourceData(Input(Bool())) // permitted to be unset
3333
val dc = ResourceData(Output(Bool()), invert = true)

0 commit comments

Comments
 (0)