[Cryptech-Commits] [user/jakob/tamper] 02/06: mkm_wipe: Toggle CS to conclude spi_set_operation.
git at cryptech.is
git at cryptech.is
Sat Jul 16 13:10:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
jakob at kirei.se pushed a commit to branch master
in repository user/jakob/tamper.
commit 94b848d9dcd6ee0eb7c3eab817ca2c64971b35a3
Author: Fredrik Thulin <fredrik at thulin.net>
AuthorDate: Sat Jul 16 15:03:44 2016 +0200
mkm_wipe: Toggle CS to conclude spi_set_operation.
---
tamper.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tamper.c b/tamper.c
index d1d5c04..9169895 100644
--- a/tamper.c
+++ b/tamper.c
@@ -213,8 +213,12 @@ mkm_wipe()
spi_setup(1);
mkm_grab();
+
mkm_chip_select(1);
spi_set_operation(SPI_OPERATION_SEQUENCE);
+ mkm_chip_select(0);
+
+ mkm_chip_select(1);
spi_write(SPI_WRITE);
spi_write(0); /* Address, high byte. */
spi_write(0); /* Address, low byte. */
More information about the Commits
mailing list