1
0
mirror of https://github.com/marqs85/ossc.git synced 2024-06-26 02:29:35 +00:00
Commit Graph

10 Commits

Author SHA1 Message Date
Ari Sundholm
af1f8a20d4 ulibSD/sd_io.c: Fix line endings to be consistently CRLF. 2020-11-05 19:11:04 +02:00
Ari Sundholm
598705c7fa ulibSD/sd_io.c: Fix writing to SD card.
There were a few things wrong with the SD card write implementation:
1. The protocol change regarding the interpretation of offsets
   introduced with SDHC cards was not taken into account in the write
   path, unlike in the read path.
2. All SPI writes involved in the process were actually issued as reads
   due to the use of the SPI_RW() function, the implementation of which
   seems to have gone through some churn. Likely just an instance of
   bit-rot.
2020-11-05 19:11:04 +02:00
Ari Sundholm
556140dd62 i2c_opencores.[ch], spi_io.[ch]: Improve const correctness. 2020-11-05 19:11:04 +02:00
Ari Sundholm
cd77713255 ulibSD/spi_io.[ch]: Add function to write a single byte over SPI.
Additionally, fix the misleading documentation for SPI_RW().
The new function, SPI_WW() follows the same naming logic, for better
or worse.
2020-11-05 19:11:04 +02:00
marqs
a24d6b0e3a Update latency tester
* Enable operation with all sources
* Measure strobe length on low-persistence displays
2017-10-28 12:10:54 +03:00
marqs
108ea17604 Remove old #includes. 2016-11-08 20:54:28 +02:00
marqs
6dfd2be3ed Speed up SD card detection. 2016-10-27 23:33:39 +03:00
marqs
611c8763c2 Improve SD card IO. 2016-10-27 01:08:23 +03:00
marqs
f55e9a877e SD SPI implementation finished 2016-10-21 01:19:53 +03:00
marqs
71d60144e8 Timer and SPI added. 2016-10-16 12:53:54 +03:00