Skip to content

Instantly share code, notes, and snippets.

@murilopontes
Created March 23, 2014 21:33
Show Gist options
  • Save murilopontes/9730212 to your computer and use it in GitHub Desktop.
Save murilopontes/9730212 to your computer and use it in GitHub Desktop.
uint32_t ulUser0, ulUser1;
ROM_FlashUserGet(&ulUser0, &ulUser1);
uint8_t* p_mac0;
uint8_t* p_mac1;
p_mac0 = (uint8_t*) &ulUser0;
p_mac1 = (uint8_t*) &ulUser1;
UARTprintf("mac=%02x-%02x-%02x-%02x-%02x-%02x\n",p_mac0[0],p_mac0[1],p_mac0[2],p_mac1[0],p_mac1[1],p_mac1[2]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment