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

Commit

Permalink
resource: prefer Bool for clocks that we don't use directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed Jun 2, 2024
1 parent 7d8d2a3 commit 909f023
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/ee/hrzn/chryse/platform/resource/SPI.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 909f023

Please sign in to comment.