Browse Source

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>
pull/85789/head
Furkan Akkiz 5 months ago committed by Benjamin Cabé
parent
commit
ee288819a0
  1. 5
      drivers/hwinfo/hwinfo_max32.c

5
drivers/hwinfo/hwinfo_max32.c

@ -6,17 +6,16 @@ @@ -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;

Loading…
Cancel
Save