This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uint16_t snprint_stm32_serialno(char* p, uint16_t maxlen) | |
{ | |
uint32_t uid0 = *(uint32_t*) (UID_BASE); | |
uint32_t uid1 = *(uint32_t*) (UID_BASE + 0x4); | |
uint32_t uid2 = *(uint32_t*) (UID_BASE + 0x8); | |
uint16_t n = 0; | |
if (maxlen > 16) | |
{ |