UUID read and print
Diff: main.cpp
- Revision:
- 9:3cbea866b809
- Parent:
- 8:a9f1c2722cd9
--- a/main.cpp Tue Apr 21 23:52:57 2015 +0000 +++ b/main.cpp Tue Apr 21 23:57:34 2015 +0000 @@ -4,6 +4,8 @@ { unsigned int UUID_LOC_WORD0 = 0x40048060; unsigned int UUID_LOC_WORD1 = 0x4004805C; + unsigned int UUID_LOC_WORD2 = 0x40048058; + unsigned int UUID_LOC_WORD3 = 0x40048054; // Fetch word 0 uint32_t word0 = *(uint32_t *)UUID_LOC_WORD0; @@ -17,8 +19,11 @@ //word1 |= 0x00000200; //word1 &= 0x0000FEFF; + uint32_t word2 = *(uint32_t *)UUID_LOC_WORD2; + uint32_t word3 = *(uint32_t *)UUID_LOC_WORD3; + //printf("%4x%08x", word1, word0); // Device id must be in lower case - printf("%08x%08x", word1, word0); // Device id must be in lower case + printf("%08x%08x%08x%08x", word3, word2, word1, word0); // Device id must be in lower case while(1); }