diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-10-22 08:40:33 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-10-22 08:40:33 +0200 |
commit | c94fc1dbe4cffaf3ec30c5aa43611ae134227248 (patch) | |
tree | 636da3c708bc1083d46253b9c9ae350f9c3a5189 /src | |
parent | 5949cef9e1f15fadca93864ddeb0fcb555b3b443 (diff) |
i2cbencH: show device ID
Diffstat (limited to 'src')
-rw-r--r-- | src/app/i2cbench/main.cc | 9 |
1 files changed, 9 insertions, 0 deletions
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; |