mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
25 lines
420 B
C
25 lines
420 B
C
/*
|
|
Author: lyon
|
|
Tencent QQ: 645275593
|
|
*/
|
|
|
|
#ifndef __MEMORY_H__
|
|
#define __MEMORY_H__
|
|
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include "pikaPlatform.h"
|
|
|
|
typedef struct {
|
|
uint32_t heapUsed;
|
|
uint32_t heapUsedMax;
|
|
} PikaMemInfo;
|
|
|
|
void pikaFree(void* mem, uint32_t size);
|
|
void* pikaMalloc(uint32_t size);
|
|
uint16_t pikaMemNow(void);
|
|
uint16_t pikaMemMax(void);
|
|
void pikaMemMaxReset(void);
|
|
#endif
|