intiial commit
Dependencies: MAX8614X USBDevice max32630hsp_test
Revision 9:134e7055d767, committed 2018-08-14
- Comitter:
- phonemacro
- Date:
- Tue Aug 14 07:26:24 2018 +0000
- Parent:
- 8:166e2b836050
- Child:
- 10:0b940aff3bb8
- Commit message:
- add comment
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Aug 14 05:25:35 2018 +0000
+++ b/main.cpp Tue Aug 14 07:26:24 2018 +0000
@@ -174,6 +174,10 @@
m.readRegister(MAX8614X::MAX8614X_INT_STATUS2_REG, data, 1); // clear the status register
//● Write 1 to SHA_START and 1 to SHA_EN bit.
m.writeRegister(MAX8614X::MAX8614X_SHA_CFG_REG,MAX8614X::MAX8614X_SHACFG_SHA_EN | MAX8614X::MAX8614X_SHACFG_SHA_START);
+// //● Wait for SHA_DONE interrupt.
+// m.clearShaComplete();
+// data[0] = 0;
+// while(!m.isShaComplete()) {
//● Pole the SHA_DONE interrupt.
data[0] = 0;