From f2f57d71a33987ff451d3d848ce5c094681ba7d9 Mon Sep 17 00:00:00 2001 From: "Andrew J. Kroll" Date: Thu, 25 Sep 2014 23:14:04 -0400 Subject: [PATCH] Speedup SPI, fix PIC32 corner case for include --- settings.h | 2 +- usbhost.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/settings.h b/settings.h index 82c07036..d5f4a4eb 100644 --- a/settings.h +++ b/settings.h @@ -133,6 +133,6 @@ e-mail : support@circuitsathome.com #include // Use the Arduino SPI library #endif #if defined(__PIC32MX__) || defined(__PIC32MZ__) -#include <../../libraries/SPI/SPI.h> // Hack to use the SPI library +#include <../../../../hardware/pic32/libraries/SPI/SPI.h> // Hack to use the SPI library #endif #endif /* SETTINGS_H */ diff --git a/usbhost.h b/usbhost.h index f0a6962e..c4b8bb3d 100644 --- a/usbhost.h +++ b/usbhost.h @@ -45,7 +45,7 @@ public: SPI_SS::Set(); SPI.begin(); #if defined(__MIPSEL__) - SPI.setClockDivider(2); + SPI.setClockDivider(1); #else SPI.setClockDivider(4); // Set speed to 84MHz/4=21MHz - the MAX3421E can handle up to 26MHz #endif