Skip to content

Commit ee28881

Browse files
hfakkizkartben
authored andcommitted
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>
1 parent 3efeb24 commit ee28881

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/hwinfo/hwinfo_max32.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@
66

77
#include <zephyr/drivers/hwinfo.h>
88
#include <soc.h>
9-
#include <mxc_sys.h>
9+
#include <wrap_max32_sys.h>
1010
#include <string.h>
1111
#include <zephyr/sys/byteorder.h>
1212

1313
ssize_t z_impl_hwinfo_get_device_id(uint8_t *buffer, size_t length)
1414
{
1515
uint8_t usn[MXC_SYS_USN_LEN];
16-
uint8_t checksum[MXC_SYS_USN_CHECKSUM_LEN];
1716
int error;
1817

19-
error = MXC_SYS_GetUSN(usn, checksum);
18+
error = Wrap_MXC_SYS_GetUSN(usn);
2019
if (error != E_NO_ERROR) {
2120
/* Error reading USN */
2221
return error;

0 commit comments

Comments
 (0)