personal copy to test forking on mbed.org

Dependencies:   mbed

Fork of k64f_uuid by Sam Grove

Committer:
sam_grove
Date:
Wed Jul 30 17:42:50 2014 +0000
Revision:
1:3166c3c53a37
Parent:
0:496297783a79
Child:
2:3d2e61cce12a
Updates

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 int main() {
sam_grove 1:3166c3c53a37 4 uint32_t UUID_LOC = 0x40048054; // K64F address of UUID data
sam_grove 1:3166c3c53a37 5 uint32_t result[4] = {0};
sam_grove 1:3166c3c53a37 6 uint32_t i = 3;
sam_grove 0:496297783a79 7
sam_grove 0:496297783a79 8 for (; i>=0; --i) {
sam_grove 0:496297783a79 9 result[i] = *(uint32_t *)UUID_LOC;
sam_grove 0:496297783a79 10 printf("REG:%08x\tVAL:%08x\r\n", UUID_LOC, result[i]);
sam_grove 0:496297783a79 11 UUID_LOC += 4;
sam_grove 0:496297783a79 12 }
sam_grove 0:496297783a79 13
sam_grove 0:496297783a79 14 error("exit\r\n");
sam_grove 0:496297783a79 15 return *result;
sam_grove 0:496297783a79 16 }
sam_grove 0:496297783a79 17