mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
21 lines
603 B
C
21 lines
603 B
C
#include "MimiObj.h"
|
|
#include "uart.h"
|
|
extern DMEM_STATE DMEMS;
|
|
void MemoryChecker_size(MimiObj *self)
|
|
{
|
|
char buff[256] = {0};
|
|
sprintf(buff, "memory loop size = %0.2f kB\r\n", DMEM_TOTAL_SIZE / 1024.0);
|
|
uart1_sendStr(buff);
|
|
}
|
|
void MemoryChecker_max(MimiObj *self)
|
|
{
|
|
char buff[256] = {0};
|
|
sprintf(buff, "memory used max = %0.2f kB\r\n", DMEMS.maxNum * DMEM_BLOCK_SIZE / 1024.0);
|
|
uart1_sendStr(buff);
|
|
}
|
|
void MemoryChecker_now(MimiObj *self)
|
|
{
|
|
char buff[256] = {0};
|
|
sprintf(buff, "memory used now = %0.2f kB\r\n", DMEMS.blk_num * DMEM_BLOCK_SIZE / 1024.0);
|
|
uart1_sendStr(buff);
|
|
} |