mgmt: updatehub: Clean-up device headers
Move headers from header includes to source file. Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
This commit is contained in:
parent
73809472f8
commit
f3159e3885
|
@ -1,12 +1,15 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2020 O.S.Systems
|
* Copyright (c) 2018-2023 O.S.Systems
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
#include "updatehub_device.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include <zephyr/drivers/hwinfo.h>
|
||||||
|
|
||||||
|
#include "updatehub_device.h"
|
||||||
|
|
||||||
bool updatehub_get_device_identity(char *id, int id_max_len)
|
bool updatehub_get_device_identity(char *id, int id_max_len)
|
||||||
{
|
{
|
||||||
uint8_t hwinfo_id[DEVICE_ID_BIN_MAX_SIZE];
|
uint8_t hwinfo_id[DEVICE_ID_BIN_MAX_SIZE];
|
||||||
|
|
|
@ -7,9 +7,6 @@
|
||||||
#ifndef __UPDATEHUB_DEVICE_H__
|
#ifndef __UPDATEHUB_DEVICE_H__
|
||||||
#define __UPDATEHUB_DEVICE_H__
|
#define __UPDATEHUB_DEVICE_H__
|
||||||
|
|
||||||
#include <zephyr/kernel.h>
|
|
||||||
#include <zephyr/drivers/hwinfo.h>
|
|
||||||
|
|
||||||
#define DEVICE_ID_BIN_MAX_SIZE 64
|
#define DEVICE_ID_BIN_MAX_SIZE 64
|
||||||
#define DEVICE_ID_HEX_MAX_SIZE ((DEVICE_ID_BIN_MAX_SIZE * 2) + 1)
|
#define DEVICE_ID_HEX_MAX_SIZE ((DEVICE_ID_BIN_MAX_SIZE * 2) + 1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue