uniqueCPUID
Fork of uniqueCPUID by
Diff: uniqueCPUID.h
- Revision:
- 3:8ebd7b354018
- Parent:
- 2:08766dc8051a
diff -r 08766dc8051a -r 8ebd7b354018 uniqueCPUID.h --- a/uniqueCPUID.h Wed Mar 30 14:49:03 2016 +0000 +++ b/uniqueCPUID.h Tue Oct 23 07:28:43 2018 +0000 @@ -16,9 +16,13 @@ #ifndef uniqueCPUID_h #define uniqueCPUID_h #include "mbed.h" - +#include<string> #define uniqueSerialAdd_kl_freescale (unsigned long *)0x40048058 +#ifdef TARGET_STM32F0 +#define uniqueSerialAddr_stm32 (unsigned long *)0x1FFFF7AC +#else #define uniqueSerialAddr_stm32 (unsigned long *)0x1FFFF7E8 +#endif //TODO: Add logic to detect the different boards and select the correct // CPU ID based on the active board. @@ -38,5 +42,5 @@ /* Send unique device ID to serail port */ void printUniqueId(Serial pc); - +std::string getUniqueIDAsString(); #endif