ADD TARGET_NUCLEO_F446ZE
Fork of MFRC522 by
Revision 2:1afff2a563ca, committed 2016-10-21
- Comitter:
- daniebrink
- Date:
- Fri Oct 21 13:31:31 2016 +0000
- Parent:
- 1:63d729186747
- Commit message:
- SPI Frequency to 20Mbit when TARGET_NUCLEO_F446ZE
Changed in this revision
| MFRC522.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MFRC522.cpp Mon Jan 06 15:00:15 2014 +0000
+++ b/MFRC522.cpp Fri Oct 21 13:31:31 2016 +0000
@@ -55,7 +55,11 @@
{
/* Configure SPI bus */
m_SPI.format(8, 0);
+#if defined(TARGET_NUCLEO_F446ZE)
+ m_SPI.frequency(20000000);
+#else
m_SPI.frequency(8000000);
+#endif
/* Release SPI-CS pin */
m_CS = 1;
DANIE BRINK
