PaulStoffregen / SD

70 stars 41 forks source link

Use SPI library for Teensy LC #22

Closed rutmarti closed 4 years ago

rutmarti commented 4 years ago

With this commit no direct register access to SPI hardware should be done anymore for Teensy LC. This is done in the same way as for Teensy 4. Additionally the USE_TEENSY4_SPI define was renamed to USE_SPI_LIB as it is now used for not only Teensy 4.

With this commit it is again possible to change the SPI SCK pin for Teensy LC. Additionally it increases the read performance for the SD library.