19 lines
344 B
C
Raw Normal View History

2021-09-08 21:25:52 +08:00
#ifndef __MEMORY_H__
#define __MEMORY_H__
#include <stdint.h>
#include <stdio.h>
#include <string.h>
2021-09-10 17:49:56 +08:00
typedef struct {
uint32_t heapUsed;
uint32_t heapUsedMax;
2021-09-08 21:25:52 +08:00
} PikaMemInfo;
2021-09-10 17:49:56 +08:00
void pikaFree(void* mem, uint32_t size);
void* pikaMalloc(uint32_t size);
2021-09-08 21:25:52 +08:00
uint16_t pikaMemNow(void);
uint16_t pikaMemMax(void);
void pikaMemMaxReset(void);
#endif