Skip to content

Commit d8cadc5

Browse files
committed
Increase SPI speed on the Due to 21MHz
1 parent f8379ba commit d8cadc5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

usbhost.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ template< typename SPI_CLK, typename SPI_MOSI, typename SPI_MISO, typename SPI_S
4444
SPI_SS::SetDirWrite();
4545
SPI_SS::Set();
4646
SPI.begin();
47+
SPI.setClockDivider(BOARD_SPI_DEFAULT_SS, 4); // Set speed to 84MHz/4=21MHz - the MAX3421E can handle up to 26MHz
4748
}
4849
#else
4950
static void init() {

0 commit comments

Comments
 (0)