personal copy to test forking on mbed.org
Fork of k64f_uuid by
main.cpp@4:c397bce05ecd, 2014-11-20 (annotated)
- Committer:
- mbedAustin
- Date:
- Thu Nov 20 00:01:57 2014 +0000
- Revision:
- 4:c397bce05ecd
- Parent:
- 2:3d2e61cce12a
added various things to add to test merging
Who changed what in which revision?
User | Revision | Line number | New 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}; |
mbedAustin | 4:c397bce05ecd | 12 | uint32_t i = 3; //comment here |
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; |
mbedAustin | 4:c397bce05ecd | 16 | printf("REG:%08x\tVAL:%08x\n\r", 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 | |
mbedAustin | 4:c397bce05ecd | 25 | //hadeerp derp derp thingy |