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:
parent
3efeb245a7
commit
ee288819a0
1 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue