Add unique ID as serial number to version output

This commit is contained in:
2020-02-12 22:24:17 +01:00
parent c6dd4e735c
commit 0da3ebed6f
4 changed files with 39 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
#ifndef __UNIQUE_ID_H__
#define __UNIQUE_ID_H__
#include <stdint.h>
/**
* @brief Get the device's unique 96 bit ID programmed by ST during manufacturing
* @param high high word of ID
* @param mid mid word of ID
* @param low low word of ID
*/
void unique_id_get(uint32_t *high, uint32_t *mid, uint32_t *low);
#endif /* __UNIQUE_ID_H__ */