arch/{nrf52|nrf53}/uid: specify the length of the UID array

This commit is contained in:
raiden00pl 2023-03-13 14:50:24 +01:00 committed by Petro Karashchenko
parent fd7611f144
commit fef4871b01
4 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@
* 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 uid1 = getreg32(NRF52_FICR_BASE + NRF52_FICR_DEVICEID1_OFFSET);

View File

@ -31,6 +31,6 @@
* 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 */

View File

@ -33,7 +33,7 @@
* Public Functions
****************************************************************************/
void nrf53_get_uniqueid(uint8_t uniqueid[])
void nrf53_get_uniqueid(uint8_t uniqueid[8])
{
uint32_t uid0 = getreg32(NRF53_FICR_BASE +
NRF53_FICR_INFO_DEVICEID0_OFFSET);

View File

@ -31,6 +31,6 @@
* 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 */