drivers: hwinfo: Update driver for MAX32650

There are function mismatches for MAX32650. Because of that, created a
wrap version of the function to handle these differences.

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
This commit is contained in:
Furkan Akkiz 2025-02-13 13:11:52 +03:00 committed by Benjamin Cabé
commit ee288819a0

View file

@ -6,17 +6,16 @@
#include <zephyr/drivers/hwinfo.h>
#include <soc.h>
#include <mxc_sys.h>
#include <wrap_max32_sys.h>
#include <string.h>
#include <zephyr/sys/byteorder.h>
ssize_t z_impl_hwinfo_get_device_id(uint8_t *buffer, size_t length)
{
uint8_t usn[MXC_SYS_USN_LEN];
uint8_t checksum[MXC_SYS_USN_CHECKSUM_LEN];
int error;
error = MXC_SYS_GetUSN(usn, checksum);
error = Wrap_MXC_SYS_GetUSN(usn);
if (error != E_NO_ERROR) {
/* Error reading USN */
return error;