diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-04 00:05:35 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-04 00:05:35 -0700 |
commit | fb73355711c99003c559df48164a1ce6db93cff9 (patch) | |
tree | a3aab6adf34f12a9df12be2b92e6d489d3667f47 /cmd | |
parent | 95d821dc2767a4b144dba30977dab35825594e06 (diff) |
libhw: rp2040_hwspi: Add more config knobs
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/sbc_harness/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/sbc_harness/main.c b/cmd/sbc_harness/main.c index 6fa76bd..a3351fc 100644 --- a/cmd/sbc_harness/main.c +++ b/cmd/sbc_harness/main.c @@ -169,6 +169,8 @@ COROUTINE init_cr(void *) { rp2040_hwspi_init(&globals.dev_spi, "W5500", RP2040_HWSPI_0, SPI_MODE_0, /* the W5500 supports mode 0 or mode 3 */ 31250000, /* min(w5500, hwspi); w5500=80MHz; hwspi=31.25MHz, see rp2040_hwspi.h for a comment about why this is so low */ + 30, /* W5500 datasheet says min(T_CS = SCSn High Time) = 30ns */ + 0, /* bogus write write data when doing a read */ 16, /* PIN_MISO */ 19, /* PIN_MOSI */ 18, /* PIN_CLK */ |