personal copy to test forking on mbed.org

Dependencies:   mbed

Fork of k64f_uuid by Sam Grove

Committer:
sam_grove
Date:
Mon Oct 20 20:00:09 2014 +0000
Revision:
2:3d2e61cce12a
Parent:
1:3166c3c53a37
Child:
4:c397bce05ecd
convert to library

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