mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-20 18:27:36 +08:00
mcu_version remove mcu_unique_id
Using board cvommon UUID api thefore Removed mcu_unique_id
This commit is contained in:
committed by
Lorenz Meier
parent
93f2cf077f
commit
5a5cfdbbe3
@@ -64,19 +64,6 @@
|
||||
|
||||
#endif
|
||||
|
||||
/** Copy the 96bit MCU Unique ID into the provided pointer */
|
||||
void mcu_unique_id(uint32_t *uid_96_bit)
|
||||
{
|
||||
#ifdef __PX4_NUTTX
|
||||
uid_96_bit[0] = getreg32(STM32_SYSMEM_UID);
|
||||
uid_96_bit[1] = getreg32(STM32_SYSMEM_UID + 4);
|
||||
uid_96_bit[2] = getreg32(STM32_SYSMEM_UID + 8);
|
||||
#else
|
||||
uid_96_bit[0] = 0;
|
||||
uid_96_bit[1] = 1;
|
||||
uid_96_bit[2] = 2;
|
||||
#endif
|
||||
}
|
||||
|
||||
int mcu_version(char *rev, char **revstr)
|
||||
{
|
||||
|
||||
@@ -46,15 +46,6 @@ enum MCU_REV {
|
||||
MCU_REV_STM32F4_REV_3 = 0x2001
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Reports the microcontroller unique id.
|
||||
*
|
||||
* This ID is guaranteed to be unique for every mcu.
|
||||
* @param uid_96_bit A uint32_t[3] array to copy the data to.
|
||||
*/
|
||||
__EXPORT void mcu_unique_id(uint32_t *uid_96_bit);
|
||||
|
||||
/**
|
||||
* Reports the microcontroller version of the main CPU.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user