It always bothered me that file reading and writing on
an LPC2148 using the SSP port was so much slower than
what the SPI clock rate would make one believe. I
discovered that since the FIFO never gets filled, the
full wire speed cannot be realized. So, I fixed it by
making sure that the FIFO gets, and stays filled.
I've now benchmarked reading at just under 1MB/s.
Writing is similar, and runs as fast as the SSP will
allow (I've seen at least 500kB/s across USB using
your LPCUSB stack). The type of card used, can make
quite a bit of difference in these numbers.
A zip file is attached that includes the files that
have changed in the patch. This should be applied
against V0.2.7 (though it may work for some older
releases as well).
I hope some of you find this useful, and that the
maintainers will add this to the next release.