From c94fc1dbe4cffaf3ec30c5aa43611ae134227248 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Mon, 22 Oct 2018 08:40:33 +0200
Subject: [PATCH] i2cbencH: show device ID

---
 src/app/i2cbench/main.cc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/app/i2cbench/main.cc b/src/app/i2cbench/main.cc
index 5304816..a630c6d 100644
--- a/src/app/i2cbench/main.cc
+++ b/src/app/i2cbench/main.cc
@@ -70,6 +70,15 @@ int main(void)
 
 	kout << "I2C setup OK" << endl;
 
+#ifdef MULTIPASS_ARCH_msp430fr5969lp
+	kout << "Device ID " << hex;
+	kout << *(uint8_t*)0x1a0a << *(uint8_t*)0x1a0b;
+	kout << *(uint8_t*)0x1a0c << *(uint8_t*)0x1a0d;
+	kout << *(uint8_t*)0x1a0e << *(uint8_t*)0x1a0f;
+	kout << *(uint8_t*)0x1a10 << *(uint8_t*)0x1a11;
+	kout << endl;
+#endif
+
 	arch.idle_loop();
 
 	return 0;
-- 
GitLab