personal copy to test forking on mbed.org

Dependencies:   mbed

Fork of k64f_uuid by Sam Grove

Committer:
sam_grove
Date:
Tue Jul 08 00:03:10 2014 +0000
Revision:
0:496297783a79
Child:
1:3166c3c53a37
Read a UUID from K64F

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sam_grove 0:496297783a79 1 #include "mbed.h"
sam_grove 0:496297783a79 2
sam_grove 0:496297783a79 3 uint32_t result[4];
sam_grove 0:496297783a79 4
sam_grove 0:496297783a79 5 int main() {
sam_grove 0:496297783a79 6 unsigned int UUID_LOC = 0x40048054;
sam_grove 0:496297783a79 7 int i = 3;
sam_grove 0:496297783a79 8
sam_grove 0:496297783a79 9 for (; i>=0; --i) {
sam_grove 0:496297783a79 10 result[i] = *(uint32_t *)UUID_LOC;
sam_grove 0:496297783a79 11 printf("REG:%08x\tVAL:%08x\r\n", UUID_LOC, result[i]);
sam_grove 0:496297783a79 12 UUID_LOC += 4;
sam_grove 0:496297783a79 13 }
sam_grove 0:496297783a79 14
sam_grove 0:496297783a79 15 error("exit\r\n");
sam_grove 0:496297783a79 16 return *result;
sam_grove 0:496297783a79 17 }
sam_grove 0:496297783a79 18