Created
June 14, 2017 12:04
-
-
Save ElectronicaXAB3/2e1085be2719990f178d0557dc8314d1 to your computer and use it in GitHub Desktop.
Header for reading the STM32 device UUID
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
/** | |
* A simple header for reading the STM32 device UUID | |
* Tested with STM32F4 and STM32F0 families | |
* | |
* Version 1.0 | |
* Written by Uli Koehler | |
* Published on http://techoverflow.net | |
* Licensed under CC0 (public domain): | |
* https://creativecommons.org/publicdomain/zero/1.0/ | |
* | |
* Posted by "Electrical engineering and programming notepad" | |
* URL: https://ee-programming-notepad.blogspot.com/2017/06/reading-stm32f4-unique-device-id-from.html | |
*/ | |
#ifndef __UUID_H | |
#define __UUID_H | |
#include <stdint.h> | |
/** | |
* The STM32 factory-programmed UUID memory. | |
* Three values of 32 bits each starting at this address | |
* Use like this: STM32_UUID[0], STM32_UUID[1], STM32_UUID[2] | |
*/ | |
#define STM32_UUID ((uint32_t *)0x1FFF7A10) | |
#endif //__UUID_H |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment