personal copy to test forking on mbed.org

Dependencies:   mbed

Fork of k64f_uuid by Sam Grove

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 //#if defined(TARGET_K64F)
00004 //#if defined(TARGET_LPC1768)
00005 #if defined(TARGET_C027)
00006 #error haha
00007 #endif
00008 
00009 int main() {
00010     uint32_t UUID_LOC = 0x40048054; // K64F address of UUID data
00011     uint32_t result[4] = {0};
00012     uint32_t i = 3; //comment here
00013         
00014     for (; i>=0; --i) {
00015         result[i] = *(uint32_t *)UUID_LOC;
00016         printf("REG:%08x\tVAL:%08x\n\r", UUID_LOC, result[i]);
00017         UUID_LOC += 4;
00018     }
00019     
00020     error("exit\r\n");
00021     return *result;
00022 }
00023 
00024 
00025 //hadeerp derp derp thingy