summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2016-08-15 05:19:05 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2016-08-15 05:19:05 +0200
commit7f0f7a9b08de56ba7312f94a0706da1cd4348e61 (patch)
tree808d51b5f1e6946c7fe4ed464c10bb1cc53c6235
parent5be1507a53366ef852f87aa6f10717ff92ae3cb8 (diff)
Set SCK pin drive strength to max to fix SPI errata.
-rw-r--r--main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index a3c6eea..2d2cf4f 100644
--- a/main.cpp
+++ b/main.cpp
@@ -499,6 +499,7 @@ int main() {
nfc_ss.on();
nfc_ss.set_mode(Pin::Output);
+ nfc_sck.set_speed(Pin::High);
nfc_sck.set_mode(Pin::AF);
nfc_miso.set_mode(Pin::AF);
nfc_mosi.set_mode(Pin::AF);