From d8cadc5744e4483ce2161f8fd0c163483e12a997 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Sun, 2 Mar 2014 16:35:16 +0100 Subject: [PATCH] Increase SPI speed on the Due to 21MHz --- usbhost.h | 1 + 1 file changed, 1 insertion(+) diff --git a/usbhost.h b/usbhost.h index e5cd4188..172742e5 100644 --- a/usbhost.h +++ b/usbhost.h @@ -44,6 +44,7 @@ public: SPI_SS::SetDirWrite(); SPI_SS::Set(); SPI.begin(); + SPI.setClockDivider(BOARD_SPI_DEFAULT_SS, 4); // Set speed to 84MHz/4=21MHz - the MAX3421E can handle up to 26MHz } #else static void init() {