arch/{nrf52|nrf53}/uid: specify the length of the UID array
This commit is contained in:
parent
fd7611f144
commit
fef4871b01
@ -33,7 +33,7 @@
|
|||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void nrf52_get_uniqueid(uint8_t uniqueid[])
|
void nrf52_get_uniqueid(uint8_t uniqueid[8])
|
||||||
{
|
{
|
||||||
uint32_t uid0 = getreg32(NRF52_FICR_BASE + NRF52_FICR_DEVICEID0_OFFSET);
|
uint32_t uid0 = getreg32(NRF52_FICR_BASE + NRF52_FICR_DEVICEID0_OFFSET);
|
||||||
uint32_t uid1 = getreg32(NRF52_FICR_BASE + NRF52_FICR_DEVICEID1_OFFSET);
|
uint32_t uid1 = getreg32(NRF52_FICR_BASE + NRF52_FICR_DEVICEID1_OFFSET);
|
||||||
|
@ -31,6 +31,6 @@
|
|||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void nrf52_get_uniqueid(uint8_t uniqueid[]);
|
void nrf52_get_uniqueid(uint8_t uniqueid[8]);
|
||||||
|
|
||||||
#endif /* __ARCH_ARM_SRC_NRF52_NRF52_UID_H */
|
#endif /* __ARCH_ARM_SRC_NRF52_NRF52_UID_H */
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void nrf53_get_uniqueid(uint8_t uniqueid[])
|
void nrf53_get_uniqueid(uint8_t uniqueid[8])
|
||||||
{
|
{
|
||||||
uint32_t uid0 = getreg32(NRF53_FICR_BASE +
|
uint32_t uid0 = getreg32(NRF53_FICR_BASE +
|
||||||
NRF53_FICR_INFO_DEVICEID0_OFFSET);
|
NRF53_FICR_INFO_DEVICEID0_OFFSET);
|
||||||
|
@ -31,6 +31,6 @@
|
|||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void nrf53_get_uniqueid(uint8_t uniqueid[]);
|
void nrf53_get_uniqueid(uint8_t uniqueid[8]);
|
||||||
|
|
||||||
#endif /* __ARCH_ARM_SRC_NRF53_NRF53_UID_H */
|
#endif /* __ARCH_ARM_SRC_NRF53_NRF53_UID_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user