Increase SPI speed on the Due to 21MHz

This commit is contained in:
Kristian Lauszus 2014-03-02 16:35:16 +01:00
parent f8379baffe
commit d8cadc5744

View file

@ -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() {