[Cryptech-Commits] [user/jakob/tamper] 05/06: Flash blue LED to indicate MKM wipe completed.
git at cryptech.is
git at cryptech.is
Sat Jul 16 13:10:30 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 ec079fc63e74e90fe7a159d2e06a7c4cb17fe6b2
Author: Fredrik Thulin <fredrik at thulin.net>
AuthorDate: Sat Jul 16 15:05:49 2016 +0200
Flash blue LED to indicate MKM wipe completed.
---
tamper.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tamper.c b/tamper.c
index e2b2127..477198e 100644
--- a/tamper.c
+++ b/tamper.c
@@ -225,10 +225,17 @@ mkm_wipe()
for (int i = 0; i < 0x1fff; i++) /* 8192 bytes (64Kbit). */
spi_write(0);
mkm_chip_select(0);
+
mkm_release();
spi_setup(0);
AVR_LED_PORT &= ~_BV(AVR_LED_RED_BIT);
+
+ /* Flash blue LED three times to indicate wipe is done */
+ for (int x = 0; x < 6; x++) {
+ AVR_LED_PORT ^= _BV(AVR_LED_BLUE_BIT);
+ for (int i = 0; i < 3200; i++);
+ }
}
static inline void
More information about the Commits
mailing list