mcu_hi3321_watch/middleware/utils/update/inner_include/upg_alloc.h
2025-05-26 20:15:20 +08:00

35 lines
521 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* Copyright (c) @CompanyNameMagicTag 2021-2021. All rights reserved.
* Description: UPG alloc memory functions header file
*/
#ifndef UPG_ALLOC_H
#define UPG_ALLOC_H
#include <stdint.h>
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif
/*
* 内存申请接口
* size申请内存的大小
*/
void *upg_malloc(uint32_t size);
/*
* 内存释放接口
* addr待释放的内存地址
*/
void upg_free(void *addr);
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
#endif /* UPG_ALLOC_H */